/* ========================================
   SABAH WEDDING E-INVITE - STYLE.CSS
   ======================================== */

:root {
    --primary-font: 'Montserrat', sans-serif;
    --secondary-font: 'Playfair Display', serif;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --beach-primary: #00B4D8;
    --beach-sand: #F4D35E;
    --rainforest-green: #2D6A4F;
    --rainforest-moss: #52B788;
    --luxury-gold: #D4AF37;
    --luxury-cream: #FDF5E6;
    --garden-sage: #9CAF88;
    --garden-terracotta: #C77D63;
    --chapel-white: #F8F9FA;
    --chapel-silver: #B8B8B8;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ========================================
   ACCESSIBILITY: Focus Visible States
   ======================================== */
*:focus-visible {
    outline: 2px solid var(--luxury-gold);
    outline-offset: 2px;
}

/* Remove default outline for legacy :focus (keep for browsers without :focus-visible support) */
.btn-primary:focus,
.btn-secondary:focus,
.form-group input:focus {
    outline: none;
}

/* Enhanced focus for keyboard navigation */
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 2px solid var(--luxury-gold);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.2);
}

.form-group input:focus-visible {
    outline: 2px solid var(--luxury-gold);
    outline-offset: 0;
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

/* Focus states for bento items */
.bento-item:focus-visible {
    outline: 3px solid var(--luxury-gold);
    outline-offset: 3px;
}

/* Focus states for modal close buttons */
.close-button:focus-visible,
.close-compare:focus-visible,
.close-preview:focus-visible {
    outline: 2px solid var(--luxury-gold);
    outline-offset: 2px;
    background-color: rgba(212, 175, 55, 0.1);
}

/* Focus states for package cards */
.package-card:focus-visible {
    outline: 3px solid var(--luxury-gold);
    outline-offset: 3px;
}

/* Focus states for links */
a:focus-visible {
    outline: 2px solid var(--luxury-gold);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Focus states for checkboxes */
input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--luxury-gold);
    outline-offset: 2px;
}

/* Focus states for WhatsApp FAB */
.whatsapp-fab:focus-visible {
    outline: 3px solid var(--luxury-gold);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px rgba(212, 175, 55, 0.3);
}

body {
    background-color: #f8f9fa;
    font-family: var(--primary-font);
    padding: 40px 20px;
    color: #333;
    line-height: 1.6;
}

/* ========================================
   HEADER - Variable Typography
   ======================================== */
header {
    text-align: center;
    margin-bottom: 50px;
    padding: 20px 0;
}

header h1 {
    font-weight: 200;
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: -1px;
    margin-bottom: 10px;
    transition: var(--transition);
}

header h1 span {
    font-weight: 800;
    display: block;
    margin-top: 10px;
}

header p {
    font-weight: 300;
    font-size: 1.1rem;
    color: #666;
    letter-spacing: 2px;
}

/* ========================================
   MARKETING BANNER
   ======================================== */
.marketing-banner {
    background: linear-gradient(135deg, #D4AF37 0%, #F4D35E 100%);
    color: white;
    text-align: center;
    padding: 12px 20px;
    border-radius: 12px;
    max-width: 1100px;
    margin: 0 auto 30px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.marketing-banner p {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.compare-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 20px;
}

/* ========================================
   WHATSAPP FLOATING ACTION BUTTON
   ======================================== */
.whatsapp-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    color: white;
    padding: 12px 20px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    animation: pulse-green 3s infinite;
}

.whatsapp-fab i {
    font-size: 1.5rem;
}

.whatsapp-fab:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #128C7E;
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Adaptive UI: Shrink on Mobile */
@media (max-width: 600px) {
    .whatsapp-fab {
        bottom: 20px;
        right: 20px;
        padding: 12px;
        border-radius: 50%;
    }
    
    .fab-text {
        display: none;
    }
}

/* Hide FAB when any modal is open to prevent blocking the UI */
body.modal-open .whatsapp-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px) scale(0.9);
}

/* ========================================
   BUTTON HIERARCHY (Primary/Secondary)
   ======================================== */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
    width: 100%;
}

/* Side-by-side on larger screens */
@media (min-width: 600px) {
    .button-group {
        flex-direction: row;
    }
    .btn-primary, 
    .btn-secondary {
        flex: 1;
    }
}

/* Base Button Styles (Shared) */
.btn-primary, 
.btn-secondary {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    text-align: center;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 2px solid transparent;
}

/* Primary Button: High Visual Weight */
.btn-primary {
    background-color: #2C5F2D;
    color: #FFFFFF;
    border-color: #2C5F2D;
    box-shadow: 0 4px 6px rgba(44, 95, 45, 0.15);
}

.btn-primary:hover, 
.btn-primary:focus {
    background-color: #1E4620;
    border-color: #1E4620;
    box-shadow: 0 6px 12px rgba(44, 95, 45, 0.25);
    transform: translateY(-1px);
    outline: none;
}

/* Secondary Button: Low Visual Weight (Outline Style) */
.btn-secondary {
    background-color: transparent;
    color: #2C5F2D;
    border-color: #2C5F2D;
}

.btn-secondary:hover, 
.btn-secondary:focus {
    background-color: rgba(44, 95, 45, 0.05);
    color: #1E4620;
    border-color: #1E4620;
    outline: none;
}

/* Disabled State */
.btn-primary:disabled {
    background-color: #A0B2A1;
    border-color: #A0B2A1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary:disabled {
    background-color: transparent;
    color: #A0B2A1;
    border-color: #A0B2A1;
    cursor: not-allowed;
}

.preview-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255,255,255,0.9);
    color: #333;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.template-icon {
    font-size: 5rem;
    color: rgba(255,255,255,0.9);
}

.template-info {
    padding: 25px;
}

.template-info h3 {
    font-family: var(--secondary-font);
    font-weight: 600;
    font-size: 1.4rem;
    color: #333;
    margin-bottom: 10px;
}

.template-info p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.template-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

/* Unused .tag class removed - was polluting global namespace */

/* ========================================
   BENTO GRID - Asymmetrical Visual Hierarchy
   Premium Apple-like Aesthetics
   ======================================== */

/* --- Base Grid Layout (Desktop First) --- */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1300px;
    margin: 0 auto;
}

.bento-item {
    position: relative;
    border: none;
    border-radius: 24px;
    overflow: hidden;
    cursor: pointer;
    background-color: #f4f4f4;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.bento-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 20px 40px rgba(107, 112, 92, 0.1);
}

/* --- Grid Span Classes for Visual Hierarchy --- */

/* Featured: Large 2x2 Vertical Block (Botanical Sketch & Custom Bespoke) */
.featured,
.featured-bespoke {
    grid-column: span 2;
    grid-row: span 2;
}

/* Explicit positioning for Custom Bespoke (bottom-right) */
.featured-bespoke {
    grid-column: 3 / 5;
    grid-row: 3 / 5;
}

/* Standard items: 1x2 blocks (to match diagram stacking on right) */
.rainforest,
.garden,
.luxury,
.chapel {
    grid-column: span 2;
    grid-row: span 1;
}

/* --- Botanical Sketch Styling --- */
.botanical-sketch {
    position: relative;
    overflow: hidden;
    background-color: #fdfbf7;
    border: 1px solid rgba(107, 112, 92, 0.15);
}

.botanical-sketch .overlay {
    position: relative;
    z-index: 3;
}

.botanical-sketch h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #1e1e1e;
    margin-bottom: 0.5rem;
}

.botanical-sketch p {
    color: #6b705c;
    font-weight: 500;
}

/* --- Custom Bespoke Styling --- */
.featured-bespoke {
    background: linear-gradient(145deg, #1e1e1e, #2d2d2d);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.featured-bespoke h2 {
    color: #cb997e;
}

.featured-bespoke .btn-bespoke {
    margin-top: 15px;
    padding: 12px 24px;
    background: #d4af37;
    color: #000;
    border-radius: 50px;
    font-weight: 600;
    display: inline-block;
}

/* --- Background Images with Zoom Effect --- */
.bento-item {
    position: relative;
    overflow: hidden;
}

.bento-item-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.bento-item:hover .bento-item-image {
    transform: scale(1.08);
}

/* --- Glassmorphism Overlay --- */
.bento-item .overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px 24px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
    transition: background 0.4s ease;
}

.bento-item:hover .overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.4) 60%, rgba(0,0,0,0.1) 100%);
}

/* --- Typography & Text Reveal --- */
.bento-item .overlay h2,
.bento-item .overlay p {
    color: #ffffff;
    margin: 0;
    transform: translateY(15px);
    opacity: 0.9;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.bento-item .overlay h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
    transition-delay: 0.05s;
}

.bento-item .overlay p {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #e0e0e0;
    transition-delay: 0.1s;
}

.bento-item:hover .overlay h2,
.bento-item:hover .overlay p {
    transform: translateY(0);
    opacity: 1;
}

/* --- Badge Styles --- */
.bento-item .badge {
    align-self: flex-start;
    margin-bottom: auto;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.bento-item .badge.gold {
    background: rgba(212, 175, 55, 0.8);
    border-color: #D4AF37;
}

/* --- Bespoke CTA Button --- */
.btn-bespoke {
    display: inline-block;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D35E 100%);
    color: #1a1a1a;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 12px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-bespoke:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.6);
    background: linear-gradient(135deg, #F4D35E 0%, #D4AF37 100%);
}

/* --- Tablet Layout (992px and below) --- */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 1.25rem;
        padding: 1.5rem;
    }

    /* Reset explicit positioning to let them flow naturally in 2 columns */
    .featured,
    .featured-bespoke {
        grid-column: span 2;
        grid-row: span 2;
    }
}

/* --- Mobile Layout (600px and below) --- */
@media (max-width: 600px) {
    .bento-grid {
        display: flex; /* Switch to flex for easier stacking control */
        flex-direction: column;
        grid-auto-rows: auto; /* Reset grid rows */
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .bento-item {
        width: 100%;
        min-height: 280px; /* Ensures a good visual height for mobile cards */
        /* Reset any grid spans inherited from desktop */
        grid-column: auto !important;
        grid-row: auto !important;
    }

    /* Set the specific vertical order */
    .botanical-sketch { order: 1; }
    .rainforest      { order: 2; }
    .garden          { order: 3; }
    
    /* Ensuring Bespoke is the final "Call to Action" */
    .featured-bespoke { 
        order: 4; 
        min-height: 350px; /* Give the VIP service more presence */
    }

    /* Ensure the 2x2 typography scales down for mobile */
    .botanical-sketch h2 {
        font-size: 1.8rem;
    }
}

/* ========================================
   SCROLL REVEAL ANIMATION
   Hardware-Accelerated Choreographed Entry
   ======================================== */

/* --- Scroll Reveal Base State --- */
.bento-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* --- Active State (Triggered by JS) --- */
.bento-item.reveal-active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Optional: Staggered Delays for Desktop --- */
@media (min-width: 993px) {
    .bento-item:nth-child(1) { transition-delay: 0.1s; }
    .bento-item:nth-child(2) { transition-delay: 0.2s; }
    .bento-item:nth-child(3) { transition-delay: 0.3s; }
    .bento-item:nth-child(4) { transition-delay: 0.4s; }
}

/* ========================================
   THEME-SPECIFIC STYLES (Removed - Now handled in bento grid section)
   ======================================== */

/* ========================================
   ABOUT SECTION
   ======================================== */
.about-section {
    padding: 80px 20px;
    background: #ffffff;
    max-width: 1100px;
    margin: 0 auto 80px;
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.about-container {
    max-width: 1000px;
    margin: 0 auto;
}

.variable-title {
    font-weight: 200;
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-align: center;
    margin-bottom: 40px;
    font-family: var(--secondary-font);
}

.variable-title span {
    font-weight: 900;
    color: var(--luxury-gold);
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-stat {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 10px;
}

.about-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 20px;
    font-weight: 300;
    text-align: justify;
}

.about-text strong {
    font-weight: 600;
    color: #333;
}

/* --- About Section Feature List with Interactive Hover --- */
.about-features {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    perspective: 1000px;
}

.about-features li {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 12px;
    border-radius: 12px;
    transition: var(--transition);
    cursor: default;
}

/* The Hover State: Subtle Lift & Background Tint */
.about-features li:hover {
    background-color: rgba(212, 175, 55, 0.04);
    transform: translateX(8px);
}

.about-features i {
    font-size: 1.6rem;
    color: var(--luxury-gold);
    margin-top: 0.1rem;
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* Icon "Pop" Effect */
.about-features li:hover i {
    transform: scale(1.2) rotate(-5deg);
    color: #b8860b;
}

.about-features div {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    text-align: justify;
}

.about-features strong {
    color: #1a1a1a;
    display: block;
    margin-bottom: 2px;
    transition: color 0.3s ease;
}

/* Highlight the theme name on hover */
.about-features li:hover strong {
    color: var(--luxury-gold);
}

/* --- Read More Toggle Styles --- */
.read-more-btn {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    background: none;
    border: 1px solid var(--luxury-gold);
    color: var(--luxury-gold);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: rgba(212, 175, 55, 0.1);
}

/* --- Expandable Content --- */
.expandable-content {
    position: relative;
}

/* --- Text Fade Overlay --- */
.fade-overlay {
    display: none;
}

/* --- Caret Bounce Animation --- */
@keyframes caretBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.read-more-btn i {
    transition: transform 0.3s ease;
    animation: caretBounce 2s infinite ease-in-out;
}

.read-more-btn.active i {
    animation: none;
    transform: rotate(180deg);
}

.read-more-btn:hover i {
    animation-duration: 0.8s;
}

.stat-number {
    display: block;
    font-size: 8rem;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(135deg, #D4AF37 0%, #F4D35E 50%, #D4AF37 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
    font-family: var(--secondary-font);
    text-shadow: 0 10px 30px rgba(212, 175, 55, 0.3);
    animation: statGlow 3s ease-in-out infinite;
}

@keyframes statGlow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(212, 175, 55, 0.4)); }
    50% { filter: drop-shadow(0 0 40px rgba(212, 175, 55, 0.8)); }
}

.stat-label {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #555;
    font-weight: 700;
    text-align: center;
    display: block;
    margin-top: 16px;
    padding: 8px 16px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50px;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* ========================================
   MODAL - Mobile Optimized
   ======================================== */
   
/* Background Scroll Lock Class (Added via JS) */
body.modal-open {
    overflow: hidden;
    /* Prevent iOS Safari from bouncing the background */
    touch-action: none;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    
    /* Center the modal box */
    align-items: center;
    justify-content: center;
    
    /* Prevent scroll bleed on the overlay itself */
    overscroll-behavior: contain;
}

.modal-content {
    background-color: #ffffff;
    width: 100%;
    max-width: 900px; /* Increased for desktop two-column layout */

    /* Use dvh to prevent modal from hiding under mobile browser bars */
    max-height: 90dvh;

    /* Essential for mobile: Allow FORM to scroll, not the page */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    margin: 20px;
    padding: 40px 32px 32px 32px;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;

    /* Smooth entrance animation */
    animation: modalSlideUp 0.3s cubic-bezier(0.25, 1, 0.5, 1);

    /* Hide scrollbar for cleaner appearance */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Hide scrollbar for Chrome/Safari/Opera */
.modal-content::-webkit-scrollbar {
    display: none;
}

/* ========================================
   BOOKING MODAL TWO-COLUMN LAYOUT
   ======================================== */
.booking-modal-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.package-column {
    /* Left column: Package selection */
}

.form-column {
    /* Right column: Form fields */
}

/* Desktop: Two columns side by side */
@media (min-width: 768px) {
    .booking-modal-layout {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    
    .package-selector {
        position: sticky;
        top: 0;
    }
}

/* Tablet and below: Stack vertically */
@media (max-width: 767px) {
    .booking-modal-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .modal-content {
        max-width: 500px;
        padding: 40px 24px 32px 24px;
    }
}

/* Close Button Positioning */
.close-button {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #f4f4f4;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.close-button:hover {
    background: #e0e0e0;
}

/* Keyframe for smooth entrance */
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    text-align: center;
    margin-bottom: 30px;
}

.modal-header h2 {
    font-family: var(--secondary-font);
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.modal-header p {
    color: #888;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #333;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--luxury-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    margin-bottom: 20px;
}

.booking-contact-info {
    text-align: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

.booking-contact-info p {
    margin: 0;
    font-size: 0.875rem;
    color: #495057;
}

.booking-contact-info a {
    color: var(--beach-primary, #00B4D8);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.booking-contact-info a:hover {
    color: var(--rainforest-green, #2D6A4F);
    text-decoration: underline;
}

.booking-contact-info i {
    margin-right: 6px;
    vertical-align: middle;
}

button {
    flex: 1;
    padding: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    font-family: var(--primary-font);
}

/* ========================================
   FLOATING PRICE SUMMARY FOOTER
   ======================================== */
.price-summary-footer {
    position: sticky;
    bottom: -32px;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: white;
    padding: 16px 24px;
    margin: 0 -32px -32px -32px; /* Updated for wider modal padding */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 2px solid var(--luxury-gold);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUpFooter 0.4s ease-out;
}

@keyframes slideUpFooter {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Desktop: Footer spans full width */
@media (min-width: 768px) {
    .price-summary-footer {
        margin: 0 -32px -32px -32px;
        padding: 16px 32px;
    }
}

.price-label {
    font-size: 0.85rem;
    color: #ccc;
    font-weight: 400;
}

.price-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--luxury-gold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-total {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
}

/* Mobile: Stack footer vertically */
@media (max-width: 600px) {
    .price-summary-footer {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 12px 20px;
        bottom: -28px;
        margin: 0 -20px -28px -20px;
    }
    
    .price-total {
        font-size: 1.3rem;
    }
}

.btn-sheet {
    background: #f0f0f0;
    color: #333;
}

.btn-sheet:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-sheet:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background: #20BA5A;
    transform: translateY(-2px);
}

/* ========================================
   TERMS CHECKBOX GROUP
   ======================================== */
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8rem;
    margin-top: 15px;
}

.terms-group input {
    width: auto;
    margin-top: 3px;
    accent-color: var(--luxury-gold);
}

.terms-group label {
    font-weight: 400;
    color: #666;
    line-height: 1.4;
}

.terms-group a {
    color: var(--luxury-gold);
    text-decoration: none;
    font-weight: 600;
}

.terms-group a:hover {
    text-decoration: underline;
}

/* ========================================
   PACKAGE SELECTOR - Radio Cards
   Premium Touch-Responsive Design
   ======================================== */

/* --- Package Grid Layout --- */
.package-selector {
    margin-bottom: 24px;
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.package-selector label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1a1a1a;
}

.compare-link {
    font-size: 0.75rem;
    color: var(--luxury-gold);
    cursor: pointer;
    text-decoration: underline;
    font-weight: 500;
}

.compare-link:hover {
    color: #b89628;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 12px;
    perspective: 1000px;
}

/* Desktop: Better spacing for wider layout */
@media (min-width: 768px) {
    .package-grid {
        gap: 10px;
    }
    
    .package-card {
        padding: 20px 12px;
        min-height: 130px;
    }
}

/* Tablet: Adjust for medium screens */
@media (max-width: 767px) {
    .package-grid {
        gap: 12px;
    }
}

/* On small phones, stack them vertically for better readability */
@media (max-width: 600px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
}

/* --- The Individual Package Card: Glassmorphism --- */
.package-card {
    position: relative;
    /* Glass Effect: Semi-transparent background */
    background: rgba(255, 255, 255, 0.6);

    /* Subtle "Glass" Border */
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 24px 16px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    min-height: 120px;
    justify-content: center;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.07);
}

/* --- Hover State: Scaling & Depth --- */
.package-card:hover {
    transform: translateY(-8px) scale(1.03);
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 15px 45px rgba(139, 115, 85, 0.15);
    border-color: var(--luxury-gold);
}

/* --- Active/Selected State: Gold Highlight --- */
.package-card.active {
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid var(--luxury-gold);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    transform: translateY(-4px) scale(1.05);
}

/* --- Typography Inside the Card --- */
.p-name {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.package-card.active .p-name {
    color: var(--luxury-gold);
}

.p-desc {
    font-size: 0.8rem;
    color: #666666;
    margin-bottom: 8px;
}

.mini-feature-list {
    font-size: 0.7rem;
    color: var(--luxury-gold);
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}

.mini-feature-list span {
    background: rgba(212, 175, 55, 0.1);
    padding: 3px 8px;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.p-price {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #111;
    margin-top: 8px;
}

/* --- The 'Most Popular' Badge --- */
.p-badge {
    position: absolute;
    top: -10px;
    background-color: #D4AF37;
    color: #FFFFFF;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Success Checkmark Styles --- */
.success-check {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--luxury-gold);
    font-size: 1.5rem;
    opacity: 0;
    transform: scale(0);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 10;
}

/* --- The Animation Trigger --- */
.package-card.active .success-check {
    opacity: 1;
    transform: scale(1);
    animation: checkPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes checkPop {
    0% { transform: scale(0); }
    70% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* --- Confetti Burst for Custom Package --- */
.confetti-wrapper {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.particle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    opacity: 0;
}

.confetti-active .particle {
    animation: confettiBurst 0.8s ease-out forwards;
}

@keyframes confettiBurst {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(var(--x), var(--y)) rotate(var(--r)) scale(0);
        opacity: 0;
    }
}

/* ========================================
   LEGAL MODAL STYLES
   ======================================== */
.legal-content {
    max-height: 80vh;
    overflow-y: auto;
}

.legal-body {
    margin-top: 20px;
}

.legal-body h3 {
    font-family: var(--secondary-font);
    color: var(--luxury-gold);
    margin-bottom: 15px;
    font-weight: 600;
}

.legal-body h4 {
    font-size: 0.9rem;
    color: #333;
    margin: 20px 0 8px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legal-body p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 10px;
}

.legal-body strong {
    color: #333;
}

/* ========================================
   PACKAGE COMPARISON MODAL
   ======================================== */
.compare-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 3000;
    justify-content: center;
    align-items: center;
}

.compare-content {
    background: white;
    padding: 30px;
    border-radius: 20px;
    width: 95%;
    max-width: 700px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: zoomIn 0.3s ease-out;
}

@keyframes zoomIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.close-compare {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
    line-height: 1;
    z-index: 100;
    background: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.close-compare:hover {
    color: #333;
    transform: rotate(90deg);
}

/* Sticky table header for better UX */
.table-wrapper {
    max-height: 60vh;
    overflow-y: auto;
    overflow-x: auto;
    border-radius: 10px;
    position: relative;
    /* Hide scrollbar but keep functionality */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

/* Hide scrollbar for Chrome/Safari/Opera */
.table-wrapper::-webkit-scrollbar {
    display: none;
}

/* Allow borders to show properly for highlighting */
.table-wrapper .compare-table {
    border-collapse: collapse; /* Changed back to collapse for proper sticky */
    width: 100%;
    min-width: 600px; /* Ensure table doesn't squish on mobile */
}

.compare-table thead th {
    position: sticky;
    top: 0;
    background: #fff;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 16px 12px;
    text-align: center; /* Center align all headers */
}

/* Feature column - left align */
.compare-table thead th:first-child {
    text-align: left;
}

/* Bespoke header - no sticky, scrolls with content normally */
.compare-table th.highlight-luxe {
    position: static;
    background-color: #fffcf0;
    border: 2px solid var(--luxury-gold);
    border-radius: 12px;
    z-index: auto;
}

/* Highlight Bespoke Column Body Cells */
.compare-table td.highlight-luxe {
    background-color: #fffcf0;
    border-left: 2px solid var(--luxury-gold);
    border-right: 2px solid var(--luxury-gold);
    font-weight: 700;
    color: #b8860b;
}

/* Bottom border for last row cell with curve */
.compare-table tr:last-child td.highlight-luxe {
    border-bottom: 2px solid var(--luxury-gold);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* Table cell styling */
.compare-table td {
    padding: 14px 12px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
    color: #333;
}

/* Sales Funnel: Highlight the selected package column */
.compare-table td.active-col,
.compare-table th.active-col {
    background-color: rgba(45, 106, 79, 0.08);
    border-left: 2px solid var(--rainforest-green);
    border-right: 2px solid var(--rainforest-green);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    animation: highlightPulse 2s ease-in-out;
}

/* Subtle pulse animation when column is highlighted */
@keyframes highlightPulse {
    0%, 100% {
        background-color: rgba(45, 106, 79, 0.08);
    }
    50% {
        background-color: rgba(45, 106, 79, 0.15);
    }
}

/* Package switch hint toast notification */
.package-switch-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(45, 106, 79, 0.95) 0%, rgba(82, 183, 136, 0.95) 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    margin-top: 12px;
    box-shadow: 0 4px 12px rgba(45, 106, 79, 0.3);
    animation: slideInDown 0.3s ease-out;
    transition: opacity 0.3s ease;
}

.package-switch-hint i {
    font-size: 1rem;
    flex-shrink: 0;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile optimization */
@media (max-width: 600px) {
    .table-wrapper {
        max-height: 50vh;
    }

    .table-wrapper td.highlight-luxe {
        padding: 12px 8px;
        font-size: 0.85rem;
    }

    .compare-table td {
        padding: 12px 8px;
        font-size: 0.85rem;
    }

    /* Mobile: Smaller hint toast */
    .package-switch-hint {
        padding: 8px 12px;
        font-size: 0.8rem;
        margin-top: 10px;
    }

    .package-switch-hint i {
        font-size: 0.9rem;
    }
}

.compare-title {
    font-family: var(--secondary-font);
    font-weight: 700;
    font-size: 1.8rem;
    color: #1a1a1a;
    margin-bottom: 20px;
    text-align: center;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid #eee;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    text-align: left;
    min-width: 500px;
}

thead {
    background: #f8f9fa;
}

th {
    padding: 14px 12px;
    border-bottom: 2px solid #eee;
    font-weight: 800;
    color: #1a1a1a;
    font-family: var(--secondary-font);
}

th:nth-child(2) {
    background: #fef9e7;
}

th:nth-child(3) {
    background: #fffaf0;
    color: var(--luxury-gold);
}

th:nth-child(4) {
    background: #fef9e7;
}

td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    color: #555;
}

tr:hover td {
    background: #fffcf5;
}

td:first-child {
    font-weight: 600;
    color: #333;
}

td:nth-child(2),
td:nth-child(3),
td:nth-child(4) {
    text-align: center;
}

.btn-got-it {
    width: 100%;
    margin-top: 20px;
    background: #1a1a1a;
    color: white;
    border: none;
    padding: 14px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--primary-font);
    transition: var(--transition);
}

.btn-got-it:hover {
    background: #333;
    transform: translateY(-2px);
}

/* ========================================
   TEMPLATE PREVIEW MODAL
   ======================================== */
.preview-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 3500;
    justify-content: center;
    align-items: center;
}

.preview-content {
    background: white;
    padding: 40px;
    border-radius: 24px;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-preview {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: var(--transition);
    line-height: 1;
}

.close-preview:hover {
    color: #333;
    transform: rotate(90deg);
}

.preview-header {
    text-align: center;
    margin-bottom: 30px;
}

.preview-header h2 {
    font-family: var(--secondary-font);
    font-weight: 700;
    font-size: 2rem;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.preview-header p {
    color: #666;
    font-size: 0.95rem;
}

.preview-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
}

.btn-preview-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: var(--luxury-gold);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-preview-primary:hover {
    background: #b89628;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3);
}

.btn-preview-primary i {
    font-size: 1.2rem;
}

.btn-preview-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 24px;
    background: white;
    color: #333;
    border: 2px solid #eee;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition);
}

.btn-preview-secondary:hover {
    border-color: #333;
    transform: translateY(-2px);
}

.preview-info {
    margin-bottom: 30px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 0.85rem;
    color: #555;
}

.info-item i {
    font-size: 1.2rem;
    color: var(--luxury-gold);
}

.preview-packages {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #fef9e7 0%, #fffaf0 100%);
    border-radius: 16px;
    border: 1px solid #f0e6d2;
}

.preview-packages h3 {
    font-family: var(--secondary-font);
    font-weight: 700;
    font-size: 1.3rem;
    color: #1a1a1a;
    margin-bottom: 20px;
}

.mini-packages {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.mini-pkg {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px 10px;
    background: white;
    border-radius: 12px;
    border: 2px solid #eee;
    position: relative;
    transition: var(--transition);
}

.mini-pkg.featured {
    border-color: var(--luxury-gold);
    background: #fffaf0;
    transform: scale(1.05);
}

.mini-pkg-name {
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #333;
    margin-bottom: 5px;
}

.mini-pkg-price {
    font-weight: 700;
    font-size: 1rem;
    color: var(--luxury-gold);
    font-family: var(--secondary-font);
}

.mini-pkg-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--luxury-gold);
    color: white;
    font-size: 0.5rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Mobile Adjustment */
@media (max-width: 600px) {
    .preview-content {
        padding: 30px 20px;
    }
    
    .preview-actions {
        flex-direction: column;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .mini-packages {
        flex-direction: column;
    }
    
    .mini-pkg.featured {
        transform: scale(1);
    }
}

/* Mobile Adjustment for Comparison Table */
@media (max-width: 600px) {
    .compare-content {
        padding: 20px;
        max-height: 95vh;
    }
    
    .compare-title {
        font-size: 1.4rem;
    }
    
    .table-wrapper {
        margin-left: -10px;
        margin-right: -10px;
        border-radius: 0;
        border: none;
    }
    
    th, td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
}

/* ========================================
   SUCCESS OVERLAY - Celebratory Animations
   Hardware-Accelerated Keyframes
   ======================================== */

/* --- The Success Overlay Background --- */
.success-overlay {
    display: none; /* Controlled via JS */
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000; /* Must sit above everything else */
    align-items: center;
    justify-content: center;
    padding: 20px;
    
    /* Fade in the dark background */
    animation: fadeInBg 0.4s ease forwards;
}

/* --- The Success Card --- */
.success-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    padding: 40px 32px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
    
    /* The "Spring" effect */
    animation: popInCard 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* --- The Confetti/Sparkle Icon --- */
.confetti-icon {
    font-size: 4rem;
    margin-bottom: 16px;
    display: inline-block;
    
    /* A gentle, continuous floating animation */
    animation: floatIcon 3s ease-in-out infinite;
}

/* --- Typography inside the Success Card --- */
#successHeader {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: #2C5F2D; /* Rainforest Green */
    margin-bottom: 12px;
}

.success-card p {
    font-family: 'Montserrat', sans-serif;
    color: #444;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 8px;
}

.success-card .sub-text {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 32px;
}

/* --- The Close Button --- */
.btn-close-success {
    background-color: #f4f4f4;
    color: #333;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
}

.btn-close-success:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* --- Keyframe Animations --- */
@keyframes fadeInBg {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popInCard {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Confetti Container for Success Animation --- */
.confetti-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -20px;
    opacity: 0;
}

.confetti-active .confetti-piece {
    animation: confettiFall 1.5s ease-out forwards;
}

@keyframes confettiFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(400px) rotate(720deg) scale(0.5);
        opacity: 0;
    }
}

@keyframes floatIcon {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0) rotate(0deg); }
}

/* ========================================
   ADAPTIVE UI - Responsive Breakpoints
   ======================================== */

/* Tablet (2 columns) */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-stat {
        order: -1;
    }
}

/* Mobile (1 column) */
@media (max-width: 600px) {
    body {
        padding: 20px 15px;
    }

    .section-title {
        font-size: 2rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .marketing-banner {
        padding: 10px 15px;
        margin-bottom: 20px;
    }

    .marketing-banner p {
        font-size: 0.85rem;
    }

    /* Stack buttons on mobile */
    .button-group {
        flex-direction: column;
    }

    .success-card {
        padding: 30px 20px;
    }

    .stat-number {
        font-size: 4rem;
        line-height: 1.3;
    }

    .stat-label {
        font-size: 0.9rem;
        margin-top: 12px;
        padding: 6px 14px;
    }

    .terms-group {
        font-size: 0.75rem;
    }

    /* --- About Section Mobile Readability --- */
    .about-text p,
    .about-features li div {
        text-align: left;
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .about-features {
        gap: 1.5rem;
    }

    .about-features li {
        padding: 0;
    }

    /* --- Read More Toggle Mobile Styles --- */
    .read-more-btn {
        display: flex;
    }

    .expandable-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0, 1, 0, 1);
    }

    .expandable-content.expanded {
        max-height: 1000px;
        transition: max-height 1s ease-in-out;
    }

    /* --- Fade Overlay Mobile --- */
    .fade-overlay {
        display: block;
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 60px;
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
        pointer-events: none;
        transition: opacity 0.3s ease;
        z-index: 5;
    }

    .expandable-content.expanded .fade-overlay {
        opacity: 0;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    header h1 {
        font-size: 1.8rem;
    }

    .variable-title {
        font-size: 1.8rem;
    }

    .success-card {
        padding: 20px 15px;
    }

    .confetti-icon {
        font-size: 3rem;
    }
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    margin-top: 60px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-copyright {
    color: #6c757d;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.footer-contact {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-contact p {
    color: #495057;
    font-size: 0.875rem;
    margin: 0;
}

.footer-contact a {
    color: var(--beach-primary, #00B4D8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--rainforest-green, #2D6A4F);
    text-decoration: underline;
}

@media (max-width: 600px) {
    .site-footer {
        margin-top: 40px;
        padding: 30px 15px;
    }

    .footer-contact {
        flex-direction: column;
        gap: 8px;
    }
}
