/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: url('sailboats.png') no-repeat center center fixed;
    background-size: cover;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section with Fixed Background */
.hero {
    position: relative;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 60px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
}

.hero .container {
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    max-width: 300px;
    height: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    display: block;
    margin: 0 auto 35px;
}

.hero-content {
    background: rgba(255, 255, 255, 0.75);
    padding: 20px 40px 20px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    margin: 0 auto;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #1a5490 0%, #2c7bb6 50%, #1a5490 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.4rem;
    font-weight: 900;
    margin-bottom: 25px;
    text-align: center;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(26, 84, 144, 0.1);
}

.intro-text p {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #2c2c2c;
    font-weight: 600;
}

.intro-text p strong {
    font-family: 'Playfair Display', serif;
    background: linear-gradient(135deg, #9E8E63 0%, #b8a678 50%, #9E8E63 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    display: inline-block;
    text-shadow: 0 1px 3px rgba(158, 142, 99, 0.3);
}

/* Reasons Section */
.reasons-section {
    background: linear-gradient(135deg, rgba(26, 84, 144, 0.7) 0%, rgba(44, 123, 182, 0.7) 100%);
    padding: 60px 20px;
    color: white;
}

.reasons-section h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reasons-list {
    list-style: none;
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 15px;
}

.reasons-list li {
    padding: 15px 15px 15px 40px;
    position: relative;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.reasons-list li:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.2);
}

.reasons-list li::before {
    content: "✓";
    position: absolute;
    left: 15px;
    color: #ffd700;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Contact CTA Section */
.contact-cta {
    background: #f8f9fa;
    padding: 60px 20px;
    text-align: center;
}

.contact-cta h2 {
    color: #1a5490;
    font-size: 2rem;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
}

.contact-item svg {
    color: #1a5490;
}

.contact-item a {
    color: #1a5490;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #2c7bb6;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #1a5490 0%, #2c7bb6 100%);
    color: white;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 84, 144, 0.3);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 84, 144, 0.4);
}

/* Certifications Section */
.certifications {
    background: white;
    padding: 40px 20px;
}

.certifications h3 {
    text-align: center;
    color: #1a5490;
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.certifications-scroll {
    overflow: hidden;
    position: relative;
}

.cert-track {
    display: flex;
    gap: 40px;
    animation: scroll 30s linear infinite;
}

.cert-track img {
    height: 100px;
    width: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.cert-track img:hover {
    filter: grayscale(0%);
    transform: scale(1.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Footer */
footer {
    background: #1a5490;
    color: white;
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

/* Contact Form Page Styles */
.contact-page {
    min-height: 100vh;
    background: url('sailboats.png') no-repeat center center fixed;
    background-size: cover;
    position: relative;
}

.contact-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 0;
}

.contact-page > * {
    position: relative;
    z-index: 1;
}

.contact-page header {
    background: rgba(255, 255, 255, 0.95);
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 40px;
}

.contact-page .logo {
    max-width: 250px;
    display: block;
    margin: 0 auto;
}

.back-link {
    display: inline-block;
    color: #1a5490;
    text-decoration: none;
    margin-bottom: 20px;
    font-weight: 600;
    transition: color 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 5px;
}

.back-link:hover {
    color: #2c7bb6;
    background: rgba(255, 255, 255, 1);
}

.back-link::before {
    content: "← ";
}

.form-container {
    background: rgba(255, 255, 255, 0.75);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 1000px;
    margin: 0 auto 40px;
    backdrop-filter: blur(10px);
}

.form-container h1 {
    color: #1a5490;
    text-align: center;
    margin-bottom: 10px;
    font-size: 2rem;
}

.form-container > p {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 500;
}

/* Form Styles */
.secure-form {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-group-half {
    width: calc(50% - 10px);
}

.form-group-third {
    width: calc(33.333% - 14px);
}

.form-group-quarter {
    width: calc(25% - 15px);
}

.form-group-two-thirds {
    width: calc(66.666% - 7px);
}

.form-group-new-row {
    margin-left: 0 !important;
}

.form-group-new-row::before {
    content: '';
    flex-basis: 100%;
    height: 0;
    order: -1;
}

.form-group label {
    color: #1a5490;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.95rem;
}

.required {
    color: #d32f2f;
}

.form-control {
    padding: 10px 12px;
    border: 2px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.form-control:focus {
    outline: none;
    border-color: #2c7bb6;
    box-shadow: 0 0 0 3px rgba(44, 123, 182, 0.1);
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
}

/* Radio Buttons */
.radio-inline {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 5px;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-check-input {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2c7bb6;
}

.form-check-label {
    cursor: pointer;
    color: #333;
    font-weight: normal;
}

/* Repeating Section */
.repeating-section {
    width: 100%;
    margin-top: 20px;
    padding: 20px;
    background: rgba(26, 84, 144, 0.05);
    border-radius: 8px;
}

.repeating-section-header h4 {
    color: #1a5490;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.repeating-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.repeating-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.repeating-item-header h5 {
    color: #1a5490;
    font-size: 1.1rem;
}

.remove-item {
    background: #d32f2f;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.remove-item:hover {
    background: #b71c1c;
}

.repeating-section-controls {
    margin-top: 15px;
}

.add-repeating-item {
    background: #1a5490;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.add-repeating-item:hover {
    background: #2c7bb6;
    transform: translateY(-2px);
}

/* Submit Button */
.btn-primary {
    background: linear-gradient(135deg, #1a5490 0%, #2c7bb6 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(26, 84, 144, 0.3);
    width: 100%;
    margin-top: 10px;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(26, 84, 144, 0.4);
}

/* Turnstile */
.cf-turnstile {
    margin: 20px auto;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.8rem;
    }

    .intro-text p {
        font-size: 1rem;
    }

    .reasons-list {
        grid-template-columns: 1fr;
    }

    .contact-info {
        flex-direction: column;
        gap: 20px;
    }

    .logo {
        max-width: 200px;
    }

    .cert-track img {
        height: 60px;
    }

    .form-container {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .hero-content {
        padding: 20px;
    }

    .hero-content h1 {
        font-size: 1.5rem;
    }

    .reasons-section h2,
    .contact-cta h2 {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}
