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

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    color: #2c3e50;
}

/* Center section headings (excluding hero) */
section h2 {
    text-align: center;
}

h3 {
    font-size: 1.5rem;
    color: #34495e;
}

p {
    margin-bottom: 1rem;
    color: #555;
}

/* Header */
.header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 1.5rem;
    color: #3498db;
    margin: 0;
}

.nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav a {
    text-decoration: none;
    color: #555;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #3498db;
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #555;
}

/* CTA Button */
.cta-button {
    background: linear-gradient(135deg, #3498db, #2980b9);
    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;
}

.cta-button:hover {
    background: linear-gradient(135deg, #2980b9, #1f5f8b);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.cta-button.large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.65)), url('family.jpg');
    background-size: cover;
    background-position: center 15%;
    padding: 100px 0 100px;
    margin-top: 80px;
    color: white;
}

.hero .container {
    text-align: center;
    max-width: 1560px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.125rem; /* 66px */
    color: white;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: #f8f9fa;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
    margin-bottom: 3rem;
    justify-content: center;
}

.hero-features .feature {
    flex: 0 0 45%; /* two per row, wider */
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 20px;
}

.feature i {
    color: #27ae60;
    font-size: 1.5rem;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-placeholder {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 3rem;
    border-radius: 12px;
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.image-placeholder i {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.image-placeholder p {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
    color: white;
}

/* Section Styles */
section {
    padding: 80px 0;
    scroll-margin-top: 80px;
}

.section-intro {
    text-align: center;
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 4rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    margin-top:30px;
}

/* Requirements Section */
.requirements {
    background: #fff;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.requirement-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.requirement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.requirement-icon {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    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 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Offer Section */
.offer {
    background: #f8f9fa;
}

.offer-list {
    list-style-type: none;
    padding-left: 0;
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: left;
}

.offer-list li {
    background: white;
    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: #27ae60;
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Audience Section */
.audience {
    background: #fff;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.audience-card {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

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

.audience-icon {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    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 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.4;
    font-weight: 500;
}

/* FAQ Section */
.faq {
    background: #f8f9fa;
}

.faq h2 {
    margin-bottom: 3rem;
}

.faq-category {
    margin-top: 5rem;
    margin-bottom: 3rem;
}

.faq-category h3 {
    text-align: left;
    color: #2c3e50;
    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: white;
    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: white;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: white;
}

.faq-question h3,
.faq-question h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #2c3e50;
    line-height: 1.4;
    font-weight: 500;;
}

.faq-question i {
    color: #3498db;
    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: white;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem 1.5rem;
    max-height: 200px;
    background: white;
}

/* Contact Form */
.contact {
    background: #fff;
}

.form-container {
    max-width: 1000px;
    margin: 3rem auto 0;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-row .full-width {
	grid-column: 1 / -1;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: inherit;
}

/* Tweak select dropdown arrow position */
.form-group select {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%233498db' d='M1.41.59L6 5.17 10.59.59 12 2l-6 6-6-6z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center; /* move arrow inward */
	background-size: 12px 8px;
	padding-right: 40px; /* keep text from overlapping the arrow */
}

/* Hide default arrow in IE */
.form-group select::-ms-expand {
	display: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

/* Make date picker icon clickable */
input[type="date"]::-webkit-calendar-picker-indicator {
	cursor: pointer;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
}

.form-section {
    margin: 2rem 0;
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.form-section h3,
.form-section h4 {
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 1.1rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    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 {
    color: white;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.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: #3498db;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #3498db;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    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;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        padding: 1rem 0;
    }
    
    .nav.active {
        display: flex;
    }
    
    .nav a {
        padding: 0.75rem 20px;
        text-align: left;
    }
    
    .nav .cta-button {
        text-align: center;
        margin: 0.5rem 20px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .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;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem; /* 28px */
    }
    
    section {
        padding: 60px 0;
    }
    
    .hero {
        padding: 60px 0;
    }
    .hero-features {
        flex-direction: column;
        align-items: flex-start;
    }
    .hero-features .feature {
        flex-basis: 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: 1.8rem;
    }
    
    .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 #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 




/* Added CSS updates for hero alignment, form styling, and SEO */
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

@media (max-width: 768px) {
    .hero .container {
        padding: 0 15px;
        align-items: center;
    }
    .hero-content {
        text-align: center;
    }
}

/* Ensure form-note is styled */
.form-note {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #555;
    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: #eaf7ff;
    border-radius: 8px;
    border: 1px solid #bce8f1;
}

.form-confirmation h3 {
    color: #31708f;
    margin-bottom: 1rem;
}

.form-confirmation p {
    color: #31708f;
    margin: 0;
}
.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
    max-height: 200px; /* Adjust as needed */
}

/* Form Messages */
.success-message {
    display: none;
    background: #eaf7ff;
    border: 1px solid #bce8f1;
    color: #31708f;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.error-message, .captcha-error {
    display: none;
    background: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
}

.captcha-error {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

/* 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: #fff;
    padding: 60px 0 80px;
}

.policy-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e9ecef;
}

.policy-header h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 2.5rem;
}

.policy-dates {
    color: #666;
    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: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.policy-section h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    text-align: left;
}

.policy-section p {
    margin-bottom: 1.5rem;
    color: #555;
    font-size: 1rem;
}

.policy-section ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-section li {
    margin-bottom: 0.75rem;
    color: #555;
}

.contact-info {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 1rem;
}

.contact-info p {
    margin-bottom: 0.75rem;
    color: #555;
}

.contact-info i {
    color: #3498db;
    margin-right: 0.5rem;
    width: 20px;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.logo a:hover {
    text-decoration: none;
}

@media (max-width: 768px) {
    .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;
    }
}

/* Add Second Parent Button */
.add-parent-button {
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    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;
}

.add-parent-button:hover {
    background: linear-gradient(135deg, #7f8c8d, #6c7a7a);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(127, 140, 141, 0.3);
}

.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;
}