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

:root {
    --brand-primary: #004954;
    --brand-primary-dark: #003942;
    --brand-primary-deep: #171715;
    --brand-accent: #54c4e8;
    --brand-highlight: #ecb600;
    --brand-success: #004954;
    --text-primary: #171715;
    --text-secondary: #55585d;
    --surface: #ffffff;
    --surface-soft: #ede6da;
    --surface-sky: #eef9fd;
    --border: #d8d2c8;
}

body {
    font-family: 'DM Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--surface);
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 400;
}

h2 {
    font-size: 2rem;
    color: var(--text-primary);
}

/* Center section headings (excluding hero) */
section h2 {
    text-align: center;
}

@media (min-width: 769px) {
    section > .container > h2 {
        font-size: 2.5rem;
        line-height: 1.15;
    }
}

h3 {
    font-size: 1.5rem;
    color: var(--brand-primary-deep);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

/* Header */
.header {
    background: var(--surface);
    box-shadow: 0 2px 14px rgba(23, 23, 21, 0.08);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.85rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-link {
    display: flex;
    align-items: center;
    width: min(255px, 52vw);
}

.logo img {
    display: block;
    width: 100%;
    height: auto;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--brand-primary);
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--brand-primary);
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-primary-dark));
    color: white !important;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'DM Sans', sans-serif;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--brand-primary-dark), var(--brand-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 73, 84, 0.28);
}

.cta-button.large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--surface-soft);
    padding: 96px 64px 72px;
    margin-top: 80px;
    border-bottom: 1px solid var(--border);
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    width: 320px;
    height: 320px;
    background: url('icon.svg') center/contain no-repeat;
    opacity: 0.06;
    pointer-events: none;
}

.hero::before {
    left: -180px;
    top: 88px;
}

.hero::after {
    right: -170px;
    bottom: 24px;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    gap: 72px;
    align-items: center;
}

.hero-content {
    min-width: 0;
}

.hero-kicker {
    display: inline-flex;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 24px;
    padding: 9px 12px;
    border: 1px solid rgba(0, 73, 84, 0.24);
    border-radius: 4px;
    background: var(--surface);
}

.hero-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(38px, 4.5vw, 60px);
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 26px;
    line-height: 1.05;
    max-width: 760px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 0;
    line-height: 1.7;
    max-width: 640px;
}

.hero-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    margin-top: 28px;
    margin-bottom: 30px;
}

.hero-features .feature {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.feature i {
    color: var(--brand-highlight);
    font-size: 1.15rem;
}

.hero-media {
    aspect-ratio: 16 / 11;
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border);
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

/* Section Styles */
section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top:30px;
}

/* Requirements Section */
.requirements {
    background: var(--surface);
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.requirement-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.requirement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(23, 23, 21, 0.08);
}

.requirement-icon {
    background: var(--surface-sky);
    color: var(--brand-primary);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.requirement-card h3 {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 600;
}

/* Offer Section */
.offer {
    background: var(--surface-soft);
}

.offer-list {
    list-style-type: none;
    padding-left: 0;
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: left;
}

.offer-list li {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.offer-list li::before {
    content: '\f058'; /* check-circle */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900; /* solid */
    color: var(--brand-highlight);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Audience Section */
.audience {
    background: var(--surface);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.audience-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid var(--brand-primary);
}

.audience-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 73, 84, 0.12);
}

.audience-icon {
    background: var(--surface-sky);
    color: var(--brand-primary);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
}

.audience-card h3 {
    font-family: 'DM Sans', sans-serif;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 500;
}

/* FAQ Section */
.faq {
    background: var(--surface-sky);
}

.faq h2 {
    margin-bottom: 3rem;
}

.faq-category {
    margin-top: 5rem;
    margin-bottom: 3rem;
}

.faq-category h3 {
    font-family: 'DM Sans', sans-serif;
    text-align: left;
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 16px;
    font-weight: 600;
}

.faq-list {
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface);
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.faq-question {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--surface);
}

.faq-question h3,
.faq-question h4 {
    font-family: 'DM Sans', sans-serif;
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-primary);
    line-height: 1.4;
    font-weight: 500;;
}

.faq-question i {
    color: var(--brand-primary);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: var(--surface);
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 200px;
    background: var(--surface);
}

/* Contact Form */
.contact {
    background: var(--surface);
}

.form-container {
    max-width: 1000px;
    margin: 3rem auto 0;
    background: var(--surface-soft);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-family: 'DM Sans', sans-serif;
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

.form-group input,
.form-group select {
    height: 50px;
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-color: var(--surface);
    background-image: linear-gradient(45deg, transparent 50%, var(--brand-primary) 50%),
        linear-gradient(135deg, var(--brand-primary) 50%, transparent 50%);
    background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    padding-right: 40px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin: 0;
    border-radius: 0;
    accent-color: var(--brand-primary);
    position: relative;
    top: 3px;
}

.form-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: var(--surface);
    border-radius: 8px;
    border: 1px solid var(--border);
}

.form-section h3,
.form-section h4 {
    font-family: 'DM Sans', sans-serif;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 1.1rem;
}

.add-parent-button {
    background: linear-gradient(135deg, var(--text-secondary), var(--brand-primary-deep));
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
}

.add-parent-button:hover {
    background: linear-gradient(135deg, var(--brand-primary-deep), var(--brand-primary));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 73, 84, 0.18);
}

.add-parent-button i {
    font-size: 1.1rem;
}

#addSecondParentContainer {
    margin-top: 1rem;
}

.second-parent-section {
    animation: slideDown 0.3s ease-out;
    overflow: hidden;
}

.second-parent-section.expanded {
    display: block !important;
    max-height: 500px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        max-height: 500px;
        padding-top: 2rem;
        padding-bottom: 2rem;
        transform: translateY(0);
    }
}

#addSecondParentContainer.hidden {
    display: none;
}

/* Footer */
.footer {
    background: var(--brand-primary-deep);
    color: white;
    padding: 3rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.footer-section h3,
.footer-section h4 {
    font-family: 'DM Sans', sans-serif;
    color: white;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.footer-logo {
    display: block;
    width: min(250px, 100%);
    height: auto;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #bdc3c7;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.footer-section i {
    margin-right: 0.5rem;
    color: var(--brand-highlight);
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--brand-highlight);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 1rem;
    text-align: center;
}

.footer-bottom p {
    color: #95a5a6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 1rem 20px;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 0.75rem 0;
        text-align: left;
        width: 100%;
    }
    
    .nav .cta-button {
        text-align: center;
        margin: 0.5rem 0 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero {
        padding: 46px 24px;
        margin-top: 75px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-features {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .requirements-grid,
    .offer-grid,
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem; /* 28px */
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero-features {
        align-items: flex-start;
    }
    .hero-features .feature {
        width: 100%;
    }
    .cta-button {
        width: 100%;
        text-align: center;
    }
    .faq-category h3 {
        text-align: center;
    }
    .faq {
        padding-bottom: 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2.1rem;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .requirement-card,
    .offer-card,
    .audience-card {
        padding: 1.5rem;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading animation for form submission */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid var(--surface-soft);
    border-top: 2px solid var(--brand-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 




/* Ensure form-note is styled */
.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* Adjust section heading spacing */
section h2 {
    margin-bottom: 1.5rem;
}

/* Improve CTA visibility in hero */
.hero .cta-button {
    margin-top: 1rem;
}

/* SEO keyword-rich headings (hidden visually) */
#requirements h2::after {
    content: " - Parent Boost Visa insurance";
    font-size: 0;
}
#offer h2::after {
    content: " - Immigration NZ compliant cover";
    font-size: 0;
}
#audience h2::after {
    content: " - Parent Boost Visa insurance";
    font-size: 0;
}
#faq h2::after {
    content: " - Immigration NZ compliant cover";
    font-size: 0;
}

/* Image alt text for SEO without visual clutter */
.hero img[alt], .audience img[alt], .requirements img[alt], .offer img[alt] {
    font-size: 0; /* hide alt visually */
}
.form-confirmation {
    text-align: center;
    padding: 2rem;
    background: var(--surface-sky);
    border-radius: 8px;
    border: 1px solid var(--brand-accent);
}

.form-confirmation h3 {
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.form-confirmation p {
    color: var(--brand-primary);
    margin: 0;
}
.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 200px; /* Adjust as needed */
}

/* Form Messages */
.success-message {
    display: none;
    background: var(--surface-sky);
    border: 1px solid var(--brand-accent);
    color: var(--brand-primary);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.error-message, .captcha-error {
    display: none;
    background: #f8efef;
    border: 1px solid #e5c0c0;
    color: #8a2f2f;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.captcha-error {
    background: #fff8df;
    border: 1px solid var(--brand-highlight);
    color: var(--brand-primary-deep);
}

/* reCAPTCHA container */
.g-recaptcha {
    margin: 1rem 0;
    display: flex;
    justify-content: flex-start;
}

@media (max-width: 768px) {
    .g-recaptcha {
        transform: scale(0.77);
        transform-origin: 0 0;
    }
}

/* Privacy Policy Styles */
.main-content {
    margin-top: 80px;
}

.privacy-policy {
    background: var(--surface);
    padding: 60px 0 80px;
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.policy-header h1 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.policy-dates {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin: 0;
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.policy-section {
    margin-bottom: 3rem;
    padding: 2rem;
    background: var(--surface-soft);
    border-radius: 12px;
    border: 1px solid var(--border);
}

.policy-section h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: left;
}

.policy-section p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.policy-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-section li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.contact-info {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.contact-info i {
    color: var(--brand-primary);
    margin-right: 0.5rem;
    width: 20px;
}

.contact-info a {
    color: var(--brand-primary);
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.disclosure-content a,
.policy-section a {
    color: var(--brand-primary);
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .brand-link {
        width: min(220px, 68vw);
    }

    .policy-header h1 {
        font-size: 2rem;
    }
    
    .policy-section {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .policy-section h2 {
        font-size: 1.3rem;
    }
    
    .main-content {
        margin-top: 70px;
    }
    
    .privacy-policy {
        padding: 40px 0 60px;
    }
}
