/* =========================================
   CONTACT PAGE STYLES (Final Polish)
========================================= */

/* --- 1. HERO SECTION (Fixed Mandala Size) --- */
.contact-hero {
    position: relative; 
    padding: 100px 0 80px 0;
    background-color: var(--astro-primary); 
    color: white;
    overflow: hidden; 
    border-bottom: 5px solid var(--astro-accent);
}

.mandala-bg {
    position: absolute; 
    top: 50%; 
    left: 50%; 
    /* INCREASED SIZE TO COVER FULL HEADER */
    width: 1500px; 
    height: 1500px;
    background-image: url('images/mandala.png'); 
    background-size: contain; 
    background-repeat: no-repeat; 
    background-position: center;
    transform: translate(-50%, -50%); 
    opacity: 0.1; /* Subtle effect */
    animation: spin-mandala 60s linear infinite; 
    z-index: 1;
}

.mandala-bg:empty {
    background: radial-gradient(circle, var(--astro-accent) 2px, transparent 2.5px);
    background-size: 30px 30px;
}

@keyframes spin-mandala {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.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; position: relative; z-index: 2;
}

.contact-title {
    font-size: 3.5rem; font-weight: 900; color: #fff;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.4); margin-bottom: 15px;
    position: relative; z-index: 2;
}

.contact-sub {
    font-size: 1.2rem; color: #ddd; max-width: 600px; margin: 0 auto;
    position: relative; z-index: 2;
}

/* --- 2. MAIN LAYOUT (Updated with Background) --- */
.contact-wrapper {
    /* --- 1. KEPT: Your Layout Logic --- */
    padding: 80px 0;
    position: relative;
    overflow: hidden;

    /* --- 2. NEW: Background Image moved here --- */
    background: url('images/marriage-bg.jpg') center/cover fixed;
}

/* Background Overlay Layer */
.contact-wrapper::before {
    content: '';
    position: absolute;
    /* This covers the whole area */
    top: 0; left: 0; right: 0; bottom: 0; 
    
    /* --- 3. NEW: The White Overlay (0.86 opacity) --- */
    background: rgba(255, 255, 255, 0.78); 
    
    /* Ensures it sits between image and text */
    z-index: 1; 
}

/* --- 4. CRITICAL: Lifts the content above the white layer --- */
.contact-wrapper > * {
    position: relative;
    z-index: 2;
}


.contact-card-shadow {
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    border-radius: 20px; overflow: hidden;
    background: white; border: 1px solid rgba(0,0,0,0.05);
}

/* --- 3. LEFT COLUMN (Image Top, Info Bottom) --- */
.contact-info-col {
    background: var(--astro-primary); color: white;
    display: flex; flex-direction: column; position: relative;
    border-right: 5px solid var(--astro-accent);
}

/* Image on Top */
.contact-image-box {
    width: 100%; height: 300px; position: relative;
    overflow: hidden; border-bottom: 4px solid var(--astro-accent);
}
.contact-side-img {
    width: 100%; height: 100%; object-fit: cover;
    display: block; transition: transform 0.5s ease;
}
.contact-info-col:hover .contact-side-img { transform: scale(1.05); }

.image-overlay-gradient {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 50%;
    background: linear-gradient(to top, rgba(92, 0, 0, 0.9), transparent);
}

/* Info Content */
.info-content { padding: 40px; flex-grow: 1; }
.info-title { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.info-desc { color: rgba(255,255,255,0.8); margin-bottom: 30px; font-size: 0.95rem; }

.contact-item { display: flex; align-items: center; margin-bottom: 25px; }
.icon-box {
    width: 50px; height: 50px; background: rgba(255, 215, 0, 0.2);
    color: var(--astro-accent); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; margin-right: 20px; flex-shrink: 0;
}
.text-box .label {
    display: block; font-size: 0.8rem; text-transform: uppercase;
    color: var(--astro-accent); font-weight: 700; letter-spacing: 1px;
}
.text-box p { margin: 0; font-size: 1.1rem; font-weight: 500; }

.social-connect {
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 20px; display: flex; align-items: center; gap: 15px;
    font-weight: 600; font-size: 0.9rem;
}
.social-icons { display: flex; gap: 10px; }
.social-icons a {
    width: 35px; height: 35px; border-radius: 50%;
    background: white; color: var(--astro-primary);
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s;
}
.social-icons a:hover { background: var(--astro-accent); transform: translateY(-3px); }

/* --- 4. RIGHT COLUMN (Shiny Form) --- */
.contact-form-col {
    background: linear-gradient(135deg, #ffffff 0%, #fffbf2 100%);
    padding: 50px; position: relative; overflow: hidden; /* Important for shine */
}

/* 1. Static Glow (Background) */
.shine-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(255, 215, 0, 0.1), transparent 60%);
    pointer-events: none; z-index: 1;
}

/* 2. MOVING Shine Animation */
.shine-moving {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite; 
    z-index: 1; pointer-events: none;
}

@keyframes shine {
    0% { left: -100%; }
    20% { left: 200%; } 
    100% { left: 200%; } 
}

/* Form Elements */
.form-title {
    color: var(--astro-primary); font-weight: 800;
    margin-bottom: 30px; font-size: 1.8rem; position: relative; z-index: 2;
}

.form-floating > .form-control, .form-floating > .form-select {
    border: 1px solid #e0e0e0; border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px); transition: all 0.3s ease;
}

.form-floating > .form-control:focus, .form-floating > .form-select:focus {
    border-color: var(--astro-primary);
    box-shadow: 0 0 15px rgba(92, 0, 0, 0.1);
    background-color: white; transform: translateY(-2px);
}
.form-floating > label { color: #888; }

.btn-submit {
    background: var(--astro-primary); color: white;
    padding: 15px; font-size: 1rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1px;
    border-radius: 8px; border: none; transition: 0.3s;
    box-shadow: 0 10px 20px rgba(92, 0, 0, 0.2);
    position: relative; z-index: 2;
}

.btn-submit:hover {
    background: var(--astro-accent); color: var(--astro-primary);
    transform: translateY(-2px); box-shadow: 0 15px 30px rgba(92, 0, 0, 0.3);
}

/* --- BUTTON SUBMITTING STATE --- */
.btn-submit:disabled {
    background: var(--astro-primary) !important;
    color: white !important;
    opacity: 0.8; /* Slightly faded to show it's working */
    cursor: not-allowed;
    transform: none; /* Prevents jumping while sending */
    box-shadow: none;
}

/* --- RESPONSIVE --- */
@media (max-width: 991px) {
    .contact-card-shadow { margin: 0 15px; }
    .contact-form-col { padding: 30px; }
    .contact-info-col { border-right: none; border-bottom: 5px solid var(--astro-accent); }
    .contact-image-box { height: 250px; }
}
@media (max-width: 768px) {
    .contact-title { font-size: 2.5rem; }
    .contact-image-box { height: 200px; }
    /* Mobile: Reduce mandala size slightly so it doesn't overflow weirdly */
    .mandala-bg { width: 800px; height: 800px; }
}