/* =========================================
   MARRIAGE PAGE STYLES - FINAL RESPONSIVE FIX
   (Fixed Tablet Overlap + Mobile Buttons + Permanent Shine)
========================================= */

/* --- 1. HERO SECTION (With Moving Dots) --- */
.marriage-hero {
    position: relative;
    padding: 100px 0 80px 0;
    background-color: var(--astro-primary); /* Maroon Background */
    color: white;
    overflow: hidden; 
    border-bottom: 5px solid var(--astro-accent); /* Gold Border */
    z-index: 1; 
}

/* THE MOVING DOTS PATTERN (Sharpened but Lightened) */
.mandala-bg {
    position: absolute;
    top: 50%; left: 50%;
    width: 200vw; height: 200vw;
    
    /* SHARP GOLD DOTS: Logic from your hint file */
    background-image: radial-gradient(circle, var(--astro-accent) 2px, transparent 2.5px);
    background-size: 30px 30px; 
    
    transform: translate(-50%, -50%);
    
    /* FIX: Opacity lowered to 0.1 to make them very light and subtle */
    opacity: 0.1; 
    
    animation: spin-dots 120s linear infinite; /* Clockwise rotation */
    z-index: -1; 
}

/* Ensure Text sits ON TOP of the dots */
.marriage-hero .container {
    position: relative;
    z-index: 5; 
}

@keyframes spin-dots {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Typography */
.hero-badge-gold {
    display: inline-block; background: var(--astro-accent);
    color: var(--astro-primary); padding: 5px 15px;
    border-radius: 20px; font-weight: 800; font-size: 0.85rem;
    margin-bottom: 15px; letter-spacing: 2px;
}
.marriage-title {
    font-size: 3.5rem; font-weight: 900; color: #fff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4);
    margin-bottom: 15px;
}
.marriage-sub {
    font-size: 1.2rem; color: #ddd; max-width: 700px; margin: 0 auto;
    font-style: italic;
}

/* --- 2. MAIN LAYOUT & BILINGUAL TEXT --- */

.marriage-wrapper {
    padding: 80px 0;
    position: relative;
    background: url('images/marriage-bg.jpg') center/cover fixed;
}

.marriage-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.78); /* adjust here */
    z-index: 1;
}

.marriage-wrapper > * {
    position: relative;
    z-index: 2;
}

/* PERMANENT CONTINUOUS SHINING CARD */
.bilingual-box {
    /* 1. LIGHTER PERMANENT SHINE: Metallic ivory gradient */
    background: linear-gradient(110deg, #ffffff 30%, #fffdf0 45%, #ffffff 55%, #fffdf0 70%, #ffffff 100%);
    background-size: 200% 100%;
    
    border-left: 6px solid var(--astro-accent);
    padding: 40px;
    border-radius: 12px;
    
    /* Permanent Golden Glow Shadow */
    box-shadow: 0 10px 40px rgba(255, 215, 0, 0.2);
    
    margin-bottom: 40px;
    position: relative;
    overflow: hidden; 
    
    /* Shimmering animation */
    animation: continuous-shine 8s linear infinite;
}

/* 2. BREATHING GLOW EFFECT */
.bilingual-box::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    /* Soft gold radial glow in the center */
    background: radial-gradient(circle at 50% 50%, rgba(255, 215, 0, 0.1), transparent 75%);
    animation: breathe 4s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes continuous-shine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

@keyframes breathe {
    0% { opacity: 0.3; }
    100% { opacity: 0.8; }
}

/* TEXT COLORS (High Contrast & Readability) */
.english-text {
    font-size: 1.6rem; font-weight: 800; 
    color: #3a0000; /* Darker Maroon */
    margin-bottom: 15px; line-height: 1.5;
    letter-spacing: 0.05rem;
    text-transform: uppercase;
}
.divider-small {
    height: 7px; width: 150px; background: var(--astro-accent);
    margin: 15px auto; opacity: 0.7;
}
.hindi-text {
    font-size: 1.8rem; font-weight: 600; 
    color: #111; /* Sharp Black */
    margin-top: 15px;
    letter-spacing: 0.05rem;
}

/* Hook Headings */
.hook-heading {
    color: var(--astro-primary); font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px;
    font-size: 1.88rem;
}
.hook-sub { 
    font-size: 1.35rem; color: #000; 
    margin-top: 10px; font-weight: 700; 
    letter-spacing: 0.05rem;
}

/* --- 3. THE MARRIAGE FORM CARD --- */
.marriage-card {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(92, 0, 0, 0.12);
    position: relative;
    border-top: 6px solid var(--astro-accent);
    margin-top: 70px; 
    z-index: 2;
}

/* FEES BADGE (Base Desktop Style) */
.fees-pill {
    position: absolute;
    top: -28px; left: 50%;
    transform: translateX(-50%);
    background: var(--astro-primary);
    color: var(--astro-accent);
    padding: 12px 40px;
    border-radius: 50px;
    font-weight: 900; font-size: 1.4rem;
    box-shadow: 0 8px 20px rgba(92, 0, 0, 0.3);
    border: 4px solid white;
    z-index: 100;
    white-space: nowrap;
}

/* Column Headers */
.col-header {
    padding: 25px; text-align: center;
    font-weight: 800; letter-spacing: 1px;
    font-size: 1.1rem; border-bottom: 1px solid rgba(0,0,0,0.08);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}
.boy-header { background: #f0f4f8; color: #2c3e50; }
.girl-header { background: #f8f0f0; color: #c0392b; }

/* Form Inputs */
.form-label { font-size: 0.85rem; font-weight: 700; color: #333; margin-bottom: 6px; }
.form-control {
    border: 2px solid #e1e1e1; padding: 12px 15px;
    font-weight: 600; border-radius: 8px;
    background: #fdfdfd; color: #000;
}
.form-control:focus {
    border-color: var(--astro-primary);
    box-shadow: 0 0 0 4px rgba(92, 0, 0, 0.1);
}

/* Match Button (Base Desktop Style) */
.btn-match {
    background: linear-gradient(135deg, var(--astro-primary) 0%, #4a0000 100%);
    color: white; padding: 18px 60px;
    font-size: 1.2rem; font-weight: 800;
    border: none; border-radius: 50px;
    box-shadow: 0 10px 25px rgba(92, 0, 0, 0.3);
    transition: all 0.3s ease;
}
.btn-match:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(92, 0, 0, 0.4);
}

/* --- 4. MODAL STYLES --- */
.bg-maroon { background-color: var(--astro-primary) !important; }
.modal-content { border-radius: 15px; border: none; overflow: hidden; }

.btn-payment {
    background: #28a745; /* Your green color */
    color: white;
    font-weight: 800; 
    padding: 15px;
    border-radius: 10px; 
    font-size: 1.1rem;
    border: none;
    transition: all 0.3s ease; /* Smooth transition for hover */
}

/* ADD THIS HOVER CLASS */
.btn-payment:hover {
    background: #218838; /* A slightly darker green for hover */
    color: white !important; /* Forces text to stay white */
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3); /* Optional: Green glow */
    transform: translateY(-2px); /* Optional: Slight lift effect */
}

/* --- 5. RESPONSIVE TWEAKS (TABLETS & MOBILE FIXED) --- */

/* TABLETS (577px to 991px) */
@media (max-width: 991px) {
    .boy-col { border-bottom: 4px solid #eee; }
    .marriage-title { font-size: 2.8rem; }
    
    /* Bilingual Box Scaling */
    .bilingual-box { padding: 30px; }
    .english-text { font-size: 1.4rem; }
    .hindi-text { font-size: 1.6rem; }
    .divider-small { width: 100px; height: 5px; }

    /* FIX 1: FEES OVERLAP ON TABLETS */
    .fees-pill {
        top: -35px; /* Lifted higher */
        font-size: 1.2rem;
        padding: 10px 35px;
    }
    .marriage-card {
        margin-top: 75px; /* Increased margin to prevent cut-off */
    }

    /* FIX 2: COMPATIBILITY BUTTON ON TABLETS */
    .btn-match {
        padding: 14px 40px; 
        font-size: 1.1rem;
        max-width: 350px; /* Constrain width */
        width: 100%;
    }
}

/* MOBILE (576px and below) */
@media (max-width: 576px) {
    /* Bilingual Box Scaling */
    .bilingual-box { padding: 25px 15px; margin-bottom: 30px; }
    .english-text { font-size: 1.1rem; margin-bottom: 10px; }
    .hindi-text { font-size: 1.25rem; margin-top: 10px; }
    .divider-small { width: 80px; height: 4px; margin: 10px auto; }

    /* FIX 1: FEES OVERLAP ON MOBILE */
    .fees-pill { 
        font-size: 1.1rem; 
        padding: 10px 30px; 
        top: -35px; /* Lifted higher */
    }
    .marriage-card { 
        margin-top: 80px; /* Max margin for safe area */
    }

    /* FIX 2: COMPATIBILITY BUTTON ON MOBILE */
    .btn-match {
        padding: 12px 20px; 
        font-size: 1rem;
        width: 100%;
        max-width: 300px;
    }

    .marriage-title { font-size: 2.2rem; }
    .hook-heading { font-size: 1.3rem; }
    .hook-sub { font-size: 1rem; }
}


/* =========================================
   SPECIFIC CALL BUTTON FIX (FORCED SIZE)
========================================= */
#direct-call-link {
    border: 3px solid var(--astro-primary) !important;
    color: var(--astro-primary) !important;
    background: transparent !important;
    font-weight: 900 !important;
    padding: 10px 50px !important; /* Forced extra-large for big screens */
    border-radius: 50px !important;
    text-decoration: none !important;
    font-size: 1.2rem !important;    /* Forced extra-large text */
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 5px !important;
    transition: all 0.3s ease;
}

#direct-call-link:hover {
    background-color: var(--astro-primary) !important;
    color: var(--astro-accent) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(92, 0, 0, 0.25);
}

/* THE RINGING ICON ANIMATION */
.ring-icon {
    display: inline-block;
    animation: ring-vibrate 0.5s ease-in-out infinite;
}

@keyframes ring-vibrate {
    0% { transform: rotate(0); }
    25% { transform: rotate(15deg); }
    50% { transform: rotate(-15deg); }
    75% { transform: rotate(15deg); }
    100% { transform: rotate(0); }
}

/* Mobile Tweak - Ensures it stays responsive on small screens */
@media (max-width: 576px) {
    #direct-call-link {
        width: 100% !important;
        max-width: 320px !important;
        padding: 5px 8px !important;
        font-size: 1rem !important;
        letter-spacing: 1px;
    }
}

