/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Poppins:wght@300;400;500;600&family=Mukta:wght@400;500;600&display=swap');

:root {
    /* Theme Colors extracted from Reference Image */
    --primary-color: #A62C2B;
    /* Deep Red/Maroon (Buttons, Headings) */
    --primary-dark: #800000;
    --secondary-color: #F4A460;
    /* Sandy Brown/Gold */
    --footer-bg: #F39C12;
    /* Bright Orange/Yellow for Footer */
    --body-bg: #FFFDF5;
    /* Cream/Antique White Background */
    --text-dark: #2C3E50;
    --text-light: #5d5d5d;
    --white: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);

    /* Spacing & Layout */
    --container-width: 1200px;
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--body-bg);
    color: var(--text-dark);
    line-height: 1.6;
    /* Subtle Pattern Background - Simulating the texture in image */
    background-image: radial-gradient(#E8DCC0 1px, transparent 1px);
    background-size: 40px 40px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
}

/* Header - Clean White Bar */
header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}

.logo img {
    height: 60px;
    /* Adjusted to fit the 70px nav height */
    width: auto;
    object-fit: contain;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: #DAA520;
    display: flex;
    align-items: center;
}

.logo-text span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.mobile-menu-btn {
    display: none;
    background: #f8f9fa;
    border: 1px solid #eee;
    color: var(--primary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.mobile-menu-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.nav-links a {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

/* HOME PAGE SECTIONS */

/* 1. Hero Banner */
.main-hero {
    position: relative;
    height: 70vh;
    /* Responsive height based on viewport */
    min-height: 400px;
    max-height: 700px;
    background-color: #000;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), visibility 1.2s;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: transform 8s linear;
    /* Slow zoom for Ken Burns effect */
}

.slide.active img {
    transform: scale(1.1);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.5) 100%);
    z-index: 3;
}

/* Decorative top garland */
.main-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: url('../images/garland-decoration.png') repeat-x top center;
    background-size: contain;
    z-index: 10;
    pointer-events: none;
    opacity: 0.8;
}

/* Navigation Arrows */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
    transition: all 0.3s ease;
}

.slider-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.slider-btn.prev {
    left: 30px;
}

.slider-btn.next {
    right: 30px;
}

/* Slider Dots */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 20;
    background: rgba(0, 0, 0, 0.2);
    padding: 10px 20px;
    border-radius: 30px;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.dot.active {
    background-color: var(--white);
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.dot:hover {
    background-color: #800000;
}

/* Mobile Tweaks for Hero */
@media (max-width: 768px) {
    .main-hero {
        height: 50vh;
        min-height: 300px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .slider-btn.prev {
        left: 15px;
    }

    .slider-btn.next {
        right: 15px;
    }

    .slider-dots {
        bottom: 15px;
        padding: 5px 15px;
    }
}

/* 2. Intro Section ("Mangalya Dharana") */
.section-intro {
    padding: 80px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Background handled inline/HTML */
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 50px;
    max-width: 1000px;
    margin: 0 auto;
}

.intro-img img {
    max-width: 350px;
    border-radius: 50%;
    border: 5px solid #fff;
    box-shadow: var(--card-shadow);
}

.intro-text h2 {
    color: #F39C12;
    /* Golden Orange Title */
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* 3. Steps Section ("Finding your dream partner") */
.section-steps {
    padding: 80px 0;
    /* Background handled inline/HTML */
    text-align: center;
}

.section-steps h2 {
    font-size: 2.2rem;
    color: var(--text-dark);
    margin-bottom: 60px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.step-card {
    background: var(--white);
    padding: 40px 20px;
    border-radius: 25px;
    /* Round corner */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
    /* Orange top border */
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
}

.step-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.2rem;
    color: var(--text-dark);
    margin-bottom: 10px;
}

/* 4. Features Section */
.section-features {
    padding: 80px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-box {
    background: #FFF;
    padding: 30px;
    border: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.feature-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.5rem;
}

.feature-box h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-box p {
    font-size: 0.9rem;
    color: #666;
}


/* 5. FAQ Section */
.section-faq {
    padding: 60px 0;
    margin: 0;
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.faq-header {
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    color: var(--primary-color);
}

.faq-body {
    padding: 0 20px 20px;
    display: none;
    color: #555;
    font-size: 0.95rem;
}

.faq-item.active .faq-body {
    display: block;
}

.faq-item.active .faq-header {
    background: #fff5f5;
}


/* 6. Why Choose Us (Temple Image) */
.section-why {
    padding: 80px 0;
    background: #FFF;
}

.why-container {
    display: flex;
    align-items: center;
    gap: 50px;
    /* Background handled in HTML */
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

.why-img {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.why-img img {
    width: 100%;
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.why-text {
    flex: 1;
}


/* 7. Bottom CTA (Diya Banner) */
.section-cta {
    padding: 60px 0;
    background: url('../images/diya-pattern.png') repeat-x bottom center;
    background-color: var(--white);
    text-align: center;
    position: relative;
    border-top: 1px solid #eee;
}

/* Two Diyas on sides */
.diya-left,
.diya-right {
    position: absolute;
    bottom: -20px;
    width: 150px;
    height: 100px;
    background: url('../images/diya.png') no-repeat center/contain;
}

.diya-left {
    left: 5%;
}

.diya-right {
    right: 5%;
    transform: scaleX(-1);
}

.cta-content h2 {
    color: #A04000;
    font-size: 1.8rem;
    max-width: 700px;
    margin: 0 auto 30px;
    line-height: 1.5;
}

/* Footer - Deep Dark Red */
footer {
    background-color: #8B0000 !important;
    /* DarkRed hex code */
    color: #ffffff !important;
    padding: 60px 0 20px;
}

.footer-col h4 {
    color: #ffcc00 !important;
    /* Gold */
    text-shadow: none;
    margin-bottom: 20px;
}

.footer-col ul li {
    color: #ffffff !important;
    margin-bottom: 10px;
}

.footer-col p {
    color: #ffffff !important;
    line-height: 1.6;
}

.footer-col a {
    color: #ffffff !important;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #ffcc00 !important;
    text-decoration: underline;
}

.footer-col i {
    color: #ffcc00 !important;
    margin-right: 10px;
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff !important;
    margin-top: 30px;
    padding-top: 20px;
}

/* Responsive */
/* Responsive */
@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 15px 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eee;
        z-index: 1000;
        animation: menuSlideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes menuSlideDown {
        from {
            opacity: 0;
            transform: translateY(-15px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        padding: 15px 25px;
        width: 100%;
        display: block;
        border-bottom: 1px solid #f5f5f5;
        font-size: 1.05rem;
        font-weight: 500;
        transition: all 0.2s ease;
    }

    .nav-links a:hover {
        background: #fff5f5;
        padding-left: 35px;
        color: var(--primary-color);
    }

    .nav-links a.btn {
        margin: 15px 25px;
        width: calc(100% - 50px);
        text-align: center;
        padding: 12px;
        border-radius: 8px;
        font-weight: 600;
    }

    .nav-links a.btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    /* Stack Into/Why Content */
    .intro-content,
    .why-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    /* Stack Grids */
    .steps-grid,
    .features-grid {
        grid-template-columns: 1fr;
        /* Force single column */
    }

    /* Footer Stack */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }

    .auth-box {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
    }

    /* Ensure images in stacked columns don't overflow */
    .intro-img img,
    .why-img img {
        max-width: 100%;
    }
}

/* =========================================
   FORM STYLES (NEW - INTEGRATED)
   ========================================= */

.auth-container {
    min-height: 80vh;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Align top for long forms */
}

/* We use .glass-panel for the auth box to keep it consistent with the theme */
.auth-box {
    width: 100%;
    max-width: 900px;
    padding: 40px;
    border-top: 5px solid var(--primary-color);
    /* The nice maroon top border */
}

.page-title {
    text-align: left;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 15px;
}

.page-title h2 {
    font-size: 1.8rem;
    color: var(--primary-color);
    /* Match theme */
    margin: 0;
}

.page-title span {
    display: block;
    color: var(--text-light);
    font-size: 1rem;
    font-family: 'Mukta', sans-serif;
    /* Keep the clean font for form labels */
    margin-top: 5px;
}

/* Progress Bar */
.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
    padding: 0 10px;
}

.step-indicator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    transform: translateY(-50%);
}

.step-indicator::after {
    /* Dynamic width controlled by JS */
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    height: 3px;
    background: var(--primary-color);
    z-index: 1;
    transform: translateY(-50%);
    width: 0%;
    transition: width 0.3s ease;
}

.step-dot {
    width: 35px;
    height: 35px;
    background: var(--bg-color);
    /* Cream bg */
    border: 2px solid #ccc;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    transition: var(--transition);
}

.step-dot.active,
.step-dot.completed {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    box-shadow: 0 0 10px rgba(128, 0, 0, 0.2);
}

/* Form Fields */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-family: 'Mukta', sans-serif;
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    /* Slightly softer corners than the sharp 4px */
    font-family: 'Mukta', sans-serif;
    font-size: 0.95rem;
    transition: var(--transition);
    background-color: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(128, 0, 0, 0.1);
    background-color: #fff;
}

.input-group {
    display: flex;
    gap: 10px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Animations included */
.form-step {
    display: none;
    animation: fadeIn 0.4s ease-in-out;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Dashboard & Footer (Restored) */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.sidebar {
    width: 250px;
    background: var(--white);
    border-right: 1px solid #eee;
    padding: 20px 0;
}

.sidebar-menu a {
    display: block;
    padding: 15px 25px;
    color: var(--text-light);
    font-weight: 500;
    border-left: 3px solid transparent;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #fff5f5;
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.main-content {
    flex: 1;
    padding: 30px;
}

footer {
    background: var(--text-dark);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .auth-box {
        padding: 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-container {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        border-right: none;
    }
}