/* Family Lotto Australia - Unique Family-Friendly Theme CSS */
/* Using CSS Grid + Transform architecture for maximum uniqueness */

/* Family-friendly Typography & Variables */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700;800&family=Quicksand:wght@300;400;500;600;700&family=Comfortaa:wght@300;400;500;600;700&family=Poppins:wght@300;400;500;600;700&display=swap');

/* Family Color Palette */
:root {
    --family-blue: #3B82F6;
    --family-cyan: #06B6D4;
    --family-pink: #F472B6;
    --family-green: #34D399;
    --family-purple: #A855F7;
    --family-orange: #FB923C;
    --family-yellow: #FBBF24;
    --family-text: #334155;
    --family-light: #F8FAFC;
    --family-cream: #FFFBEB;
    --family-soft-blue: #E0F2FE;
    --family-soft-pink: #FCE7F3;
    --family-soft-green: #ECFDF5;
    --family-shadow: rgba(59, 130, 246, 0.1);
}

/* Enhanced Typography */
body {
    font-family: 'Nunito', sans-serif;
    background: linear-gradient(135deg, #E8F4FD 0%, #F0F9FF 30%, #FDF2F8 60%, #F0FDF4 100%);
    background-attachment: fixed;
    color: var(--family-text);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: 70px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Comfortaa', cursive;
    font-weight: 600;
    color: var(--family-blue);
}

/* Popup Styles - Family-Friendly */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(59, 130, 246, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(8px);
}

.popup-content {
    background: linear-gradient(135deg, var(--family-light) 0%, var(--family-cream) 100%);
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
    max-width: 90%;
    width: 500px;
    box-shadow:
        0 25px 50px rgba(59, 130, 246, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    border: 4px solid var(--family-pink);
    animation: familyPopupSlideIn 0.7s ease-out;
    position: relative;
    transform: translateZ(0);
}

.popup-content::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--family-blue);
    border-radius: 20px;
    pointer-events: none;
}

@keyframes familyPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-60px) scale(0.8) rotateY(-10deg);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1) rotateY(0deg);
    }
}

.popup-content h2 {
    color: var(--family-blue);
    margin-bottom: 2rem;
    font-family: 'Comfortaa', cursive;
    font-size: 2rem;
}

/* Cookie Banner - Family Style */
.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--family-green) 0%, var(--family-cyan) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: 25px;
    max-width: 400px;
    z-index: 9999;
    box-shadow:
        0 20px 40px rgba(52, 211, 153, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 3px solid var(--family-pink);
    animation: cookieFamilySlideIn 0.7s ease-out;
    transform: translateZ(0);
}

@keyframes cookieFamilySlideIn {
    from {
        opacity: 0;
        transform: translateX(120%) rotate(10deg);
    }
    to {
        opacity: 1;
        transform: translateX(0) rotate(0deg);
    }
}

/* Enhanced Button Styles */
.btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #EC4899, #BE185D);
    box-shadow:
        0 12px 30px rgba(236, 72, 153, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #10B981, #047857);
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
}

/* Family Values Section - CSS Grid + Transform */
.family-values {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--family-soft-blue) 0%, var(--family-soft-pink) 100%);
    position: relative;
    overflow: hidden;
}

.family-values::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 25% 25%, rgba(244, 114, 182, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.family-values h2 {
    text-align: center;
    color: var(--family-blue);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 4rem;
    font-family: 'Comfortaa', cursive;
    text-shadow: 2px 2px 4px var(--family-shadow);
    position: relative;
    z-index: 1;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

.value-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--family-light) 100%);
    padding: 3rem;
    border-radius: 30px;
    text-align: center;
    box-shadow:
        0 20px 40px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 3px solid transparent;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, var(--family-pink), var(--family-blue), var(--family-green));
    border-radius: 30px 30px 0 0;
}

.value-card:hover {
    transform: translateY(-15px) scale(1.02) rotateX(5deg);
    box-shadow:
        0 30px 60px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    border-color: var(--family-pink);
}

.value-card:nth-child(2):hover {
    transform: translateY(-15px) scale(1.02) rotateX(-5deg);
}

.value-card:nth-child(3):hover {
    transform: translateY(-15px) scale(1.02) rotateY(5deg);
}

.value-icon {
    font-size: 4.5rem;
    margin-bottom: 2rem;
    filter: drop-shadow(2px 2px 4px rgba(59, 130, 246, 0.2));
}

.value-card h3 {
    color: var(--family-blue);
    font-size: 2rem;
    margin-bottom: 2rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 600;
}

.value-card p {
    color: var(--family-text);
    font-size: 1.2rem;
    line-height: 1.8;
    font-style: italic;
    max-width: 100%;
}

/* Family Draws Section - Unique Grid Layout */
.family-draws {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--family-blue) 0%, var(--family-cyan) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.family-draws::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.05) 3px,
            rgba(255, 255, 255, 0.05) 6px
        );
    pointer-events: none;
}

.family-draws h2 {
    text-align: center;
    color: white;
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
    font-family: 'Comfortaa', cursive;
    position: relative;
    z-index: 1;
}

.draws-intro {
    text-align: center;
    font-size: 1.4rem;
    margin-bottom: 4rem;
    color: var(--family-cream);
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.draws-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 4rem;
    position: relative;
    z-index: 1;
}

/* Family Ticket Design */
.family-ticket {
    background: linear-gradient(135deg, var(--family-light) 0%, var(--family-cream) 100%);
    padding: 3rem;
    border-radius: 25px;
    text-align: center;
    border: 4px solid var(--family-pink);
    transition: all 0.5s ease;
    position: relative;
    box-shadow:
        0 15px 30px rgba(244, 114, 182, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: translateZ(0);
}

.family-ticket::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 2px solid var(--family-blue);
    border-radius: 20px;
    pointer-events: none;
}

.family-ticket:hover {
    transform: translateY(-10px) scale(1.03) rotateZ(2deg);
    border-color: var(--family-green);
    box-shadow:
        0 25px 50px rgba(244, 114, 182, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.family-ticket:nth-child(2):hover {
    transform: translateY(-10px) scale(1.03) rotateZ(-2deg);
}

.family-ticket:nth-child(3):hover {
    transform: translateY(-10px) scale(1.03) rotateZ(1deg);
}

.ticket-day {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--family-pink);
    margin-bottom: 0.5rem;
    font-family: 'Quicksand', sans-serif;
}

.ticket-name {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--family-blue);
    margin-bottom: 0.5rem;
    font-family: 'Comfortaa', cursive;
}

.ticket-time {
    font-size: 1.1rem;
    color: var(--family-text);
    margin-bottom: 1rem;
    font-style: italic;
}

.ticket-prize {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--family-green);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(52, 211, 153, 0.3);
    font-family: 'Poppins', sans-serif;
}

.safety-badge {
    background: linear-gradient(45deg, var(--family-green), #10B981);
    color: white;
    padding: 0.8rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
    box-shadow: 0 6px 15px rgba(52, 211, 153, 0.3);
}

.ticket-btn {
    width: 80%;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    padding: 1.2rem 2rem;
}

/* Family Stories Section */
.family-stories {
    padding: 6rem 0;
    background: linear-gradient(45deg, var(--family-soft-green) 0%, var(--family-soft-pink) 100%);
    position: relative;
}

.family-stories h2 {
    text-align: center;
    color: var(--family-blue);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 4rem;
    font-family: 'Comfortaa', cursive;
}

.stories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-top: 4rem;
}

.story-card {
    background: linear-gradient(135deg, #ffffff 0%, var(--family-light) 100%);
    padding: 3rem;
    border-radius: 25px;
    box-shadow:
        0 20px 40px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-left: 8px solid var(--family-pink);
    transition: all 0.5s ease;
    position: relative;
    transform: translateZ(0);
}

.story-card:hover {
    transform: translateY(-12px) scale(1.02) rotateY(2deg);
    box-shadow:
        0 30px 60px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.story-card:nth-child(2):hover {
    transform: translateY(-12px) scale(1.02) rotateY(-2deg);
}

.story-card:nth-child(3):hover {
    transform: translateY(-12px) scale(1.02) rotateX(2deg);
}

.family-avatar {
    font-size: 4rem;
    text-align: center;
    margin-bottom: 1.5rem;
    filter: drop-shadow(2px 2px 4px rgba(59, 130, 246, 0.2));
}

.story-stars {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-align: center;
    filter: drop-shadow(1px 1px 2px rgba(255, 193, 7, 0.3));
}

.story-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--family-text);
    margin-bottom: 2rem;
    font-style: italic;
    position: relative;
    quotes: """ """;
    text-align: center;
}

.story-card p::before {
    content: open-quote;
    font-size: 3rem;
    color: var(--family-pink);
    line-height: 0;
    position: absolute;
    left: -20px;
    top: 10px;
}

.story-card p::after {
    content: close-quote;
    font-size: 3rem;
    color: var(--family-pink);
    line-height: 0;
    position: absolute;
    right: -20px;
    bottom: -10px;
}

.story-author {
    font-weight: 700;
    color: var(--family-blue);
    font-size: 1.1rem;
    text-align: center;
    font-family: 'Quicksand', sans-serif;
}

/* Disclaimer Section - Family Safe Style */
.disclaimer {
    padding: 5rem 0;
    background: linear-gradient(135deg, #FEF3C7 0%, #FED7AA 100%);
    color: var(--family-text);
    position: relative;
}

.disclaimer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 4px,
            rgba(251, 146, 60, 0.1) 4px,
            rgba(251, 146, 60, 0.1) 8px
        );
    pointer-events: none;
}

.disclaimer-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.disclaimer h3 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    color: var(--family-orange);
    font-family: 'Comfortaa', cursive;
}

.disclaimer p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.8;
}

.help-resources {
    background: rgba(255, 255, 255, 0.7);
    padding: 2.5rem;
    border-radius: 20px;
    margin: 3rem 0;
    border: 3px solid var(--family-orange);
    backdrop-filter: blur(5px);
}

.org-logos {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    justify-items: center;
    align-items: center;
    margin-top: 3rem;
}

.org-logo {
    height: 80px;
    width: auto;
    transition: all 0.4s ease;
    filter: brightness(1.1) drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.1));
    border-radius: 15px;
    background: rgba(0, 0, 0, 0.25);
    padding: 1rem;
    border: 2px solid var(--family-pink);
    transform: translateZ(0);
    max-width: 300px;
}

.org-logo:hover {
    transform: scale(1.2) rotateZ(5deg);
    filter: brightness(1.3) drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.2));
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.3);
}

.age-restriction {
    background: linear-gradient(45deg, var(--family-orange), #EA580C);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.5rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid white;
    box-shadow: 0 6px 20px rgba(251, 146, 60, 0.4);
    font-family: 'Poppins', sans-serif;
}

/* Footer - Family Style */
footer {
    background: linear-gradient(135deg, var(--family-blue) 0%, var(--family-purple) 100%);
    color: white;
    padding: 4rem 0 3rem;
    position: relative;
}

.footer-content {
    text-align: center;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-items: center;
    margin-bottom: 3rem;
}

.footer-btn {
    color: white;
    text-decoration: none;
    padding: 1rem 2rem;
    border: 2px solid var(--family-pink);
    border-radius: 30px;
    transition: all 0.4s ease;
    font-size: 1rem;
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    transform: translateZ(0);
}

.footer-btn:hover {
    background: var(--family-pink);
    color: white;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.4);
}

.footer-orgs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    justify-items: center;
    margin-bottom: 3rem;
    
    @media (max-width: 700px) {
      grid-template-columns: 1fr
    }
}

.footer-org-logo {
    height: 50px;
    width: auto;
    transition: all 0.3s ease;
    filter: brightness(1.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.45);
    padding: 0.5rem;
    border: 1px solid var(--family-pink);
    transform: translateZ(0);
}

.footer-org-logo:hover {
    transform: scale(1.15) rotateY(10deg);
    box-shadow: 0 6px 20px rgba(244, 114, 182, 0.4);
}

.footer-age {
    background: var(--family-pink);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
}

.footer-copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    padding-top: 2rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    font-style: italic;
}

/* Hidden class for popups */
.hidden {
    display: none !important;
}

/* Desktop Media Queries - CSS Grid Responsive */
@media (min-width: 768px) {
    .values-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .draws-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .stories-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }

    .org-logos {
        grid-template-columns: repeat(5, 1fr);
        gap: 3rem;
    }
}

@media (min-width: 900px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .draws-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .stories-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-links {
        grid-template-columns: repeat(5, 1fr);
        gap: 3rem;
    }

    .popup-content {
        width: 600px;
    }

    .cookie-banner {
        max-width: 450px;
    }
}

/* Enhanced animations for desktop */
@media (min-width: 900px) {
    .value-card:hover {
        transform: translateY(-20px) scale(1.05) rotateX(8deg);
    }

    .family-ticket:hover {
        transform: translateY(-15px) scale(1.05) rotateZ(3deg);
    }

    .story-card:hover {
        transform: translateY(-15px) scale(1.03) rotateY(5deg);
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .value-card:hover,
    .family-ticket:hover,
    .story-card:hover {
        transform: none !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .btn {
        border: 3px solid currentColor;
    }

    .value-card,
    .family-ticket,
    .story-card {
        border: 3px solid var(--family-blue);
    }
}

/* ========================================= */
/* CONTACT PAGE STYLES - FAMILY THEME */
/* ========================================= */

.contact-hero {
    padding: 5rem 0;
    text-align: center;
    background: linear-gradient(135deg, var(--family-soft-blue) 0%, var(--family-soft-pink) 100%);
    position: relative;
}

.contact-hero h1 {
    color: var(--family-blue);
    font-size: clamp(2.5rem, 6vw, 4rem);
    margin-bottom: 1.5rem;
    font-family: 'Comfortaa', cursive;
}

.contact-hero h2 {
    color: var(--family-text);
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-family: 'Quicksand', sans-serif;
    font-weight: 500;
}

.family-contact {
    padding: 6rem 0;
    background: linear-gradient(45deg, var(--family-soft-green) 0%, var(--family-cream) 100%);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 5rem;
    margin-top: 4rem;
}

.contact-info h2 {
    color: var(--family-blue);
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 3rem;
    font-family: 'Comfortaa', cursive;
}

.contact-method-family {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 3rem;
    padding: 5px;
    background: linear-gradient(135deg, #ffffff 0%, var(--family-light) 100%);
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.1);
    border-left: 6px solid var(--family-pink);
    transition: all 0.4s ease;
    transform: translateZ(0);
}

.contact-method-family:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

.method-icon {
    font-size: 3.5rem;
    flex-shrink: 0;
    filter: drop-shadow(2px 2px 4px rgba(59, 130, 246, 0.2));
}

.method-details h3 {
    color: var(--family-blue);
    margin-bottom: 1rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.6rem;
    font-weight: 600;
}

.method-details p {
    margin-bottom: 0.8rem;
    line-height: 1.7;
    color: var(--family-text);
}

.method-details a {
    color: var(--family-blue);
    text-decoration: none;
    font-weight: 600;
}

.method-details a:hover {
    text-decoration: underline;
}

/* Family Form Styles */
.family-form-section {
    background: linear-gradient(135deg, var(--family-blue) 0%, var(--family-cyan) 100%);
    padding: 2rem;
    border-radius: 30px;
    color: white;
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
}

.family-form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 3px,
            rgba(255, 255, 255, 0.05) 3px,
            rgba(255, 255, 255, 0.05) 6px
        );
    pointer-events: none;
}

.family-form-section h2 {
    color: white;
    margin-bottom: 1.5rem;
    font-family: 'Comfortaa', cursive;
    font-size: 2.5rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

.family-form-section p {
    text-align: center;
    margin-bottom: 3rem;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.2rem;
    position: relative;
    z-index: 1;
    color: var(--family-cream);
}

.family-form {
    position: relative;
    z-index: 1;
}

.form-group-family {
    margin-bottom: 2.5rem;
}

.form-label-family {
    display: block;
    margin-bottom: 1rem;
    color: white;
    font-weight: 600;
    font-family: 'Nunito', sans-serif;
    font-size: 1.2rem;
}

.form-input-family, .form-textarea-family {
    width: 100%;
    padding: 1.5rem 2rem;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    font-size: 1.1rem;
    transition: all 0.4s ease;
    background: rgba(255, 255, 255, 0.95);
    color: var(--family-text);
    font-family: 'Nunito', sans-serif;
    box-shadow: inset 0 2px 8px rgba(59, 130, 246, 0.1);
    transform: translateZ(0);
}

.form-input-family:focus, .form-textarea-family:focus {
    outline: none;
    border-color: var(--family-pink);
    box-shadow:
        0 0 0 4px rgba(244, 114, 182, 0.3),
        inset 0 2px 8px rgba(59, 130, 246, 0.1);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-3px) scale(1.01);
}

.form-input-family[style*="border: 2px solid #EF4444"] {
    border-color: #EF4444 !important;
    background: rgba(239, 68, 68, 0.1);
    animation: familyShake 0.6s ease-in-out;
}

@keyframes familyShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}

.form-textarea-family {
    min-height: 140px;
    resize: vertical;
    font-family: 'Nunito', sans-serif;
}

.family-consent {
    margin: 3rem 0;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    border: 3px solid rgba(244, 114, 182, 0.3);
    backdrop-filter: blur(5px);
}

.consent-label-family {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1.6;
    color: white;
    font-family: 'Nunito', sans-serif;
}

.consent-checkbox-family {
    margin-top: 0.3rem;
    transform: scale(1.4);
    accent-color: var(--family-pink);
}

.form-buttons-family {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 3rem;
}

.family-submit {
    font-size: 1.3rem;
    font-weight: 700;
    font-family: 'Quicksand', sans-serif;
    padding: 1.5rem 3rem;
    border: none;
    border-radius: 30px;
    background: linear-gradient(45deg, var(--family-pink), #EC4899);
    color: white;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(244, 114, 182, 0.4);
    transform: translateZ(0);
}

.family-submit:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(244, 114, 182, 0.5);
}

.family-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Family FAQ Section */
.family-faq {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--family-soft-pink) 0%, var(--family-soft-blue) 100%);
}

.family-faq h2 {
    text-align: center;
    color: var(--family-blue);
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 4rem;
    font-family: 'Comfortaa', cursive;
}

.faq-grid-family {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 4rem;
}

.faq-item-family {
    background: linear-gradient(135deg, #ffffff 0%, var(--family-light) 100%);
    padding: 3rem;
    border-radius: 25px;
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.1);
    border-left: 8px solid var(--family-green);
    transition: all 0.4s ease;
    transform: translateZ(0);
}

.faq-item-family:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.15);
}

.faq-item-family h3 {
    color: var(--family-blue);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-family: 'Quicksand', sans-serif;
    font-size: 1.5rem;
}

.faq-item-family p {
    line-height: 1.8;
    color: var(--family-text);
    font-size: 1.1rem;
}

.faq-item-family a {
    color: var(--family-blue);
    text-decoration: underline;
    font-weight: 600;
}

/* Desktop responsive for Contact page */
@media (min-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }

    .family-form-section {
        max-width: none;
    }

    .method-icon {
        font-size: 4rem;
    }

    .form-buttons-family {
        flex-direction: row;
    }

    .faq-grid-family {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .contact-method-family {
        padding: 3rem;
    }

    .family-form-section {
        padding: 5rem;
    }
}

/* Print styles */
@media print {
    .popup-overlay,
    .cookie-banner,
    .btn,
    header {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}