/* Mithila Vivah - Based on Mr&Mrs Template Design */

/* Color Variables - Using Mr&Mrs Original Colors */
:root {
    --bs-primary: #fd5d5d;
    --bs-secondary: #fd5d5d;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-white: #ffffff;
    --mithila-gold: #FFD700;
    --mithila-brown: #8B4513;
}

/* Spinner Styles */
#spinner {
    opacity: 0;
    visibility: hidden;
    transition: opacity .8s ease-out, visibility 0s linear .5s;
    z-index: 99999;
}

#spinner.show {
    transition: opacity .8s ease-out, visibility 0s linear .0s;
    visibility: visible;
    opacity: 1;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    width: 45px;
    height: 45px;
    align-items: center;
    justify-content: center;
    transition: 0.5s;
    z-index: 99;
}

/* Button Styles */
.btn {
    font-weight: 600;
    transition: .5s;
}

.btn-square {
    width: 32px;
    height: 32px;
}

.btn-sm-square {
    width: 34px;
    height: 34px;
}

.btn-md-square {
    width: 44px;
    height: 44px;
}

.btn-lg-square {
    width: 56px;
    height: 56px;
}

.btn-square,
.btn-sm-square,
.btn-md-square,
.btn-lg-square {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: normal;
}

.btn-primary-outline-0 {
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-primary);
}

.btn-light-outline-0 {
    color: var(--bs-primary) !important;
    border: 1px solid var(--bs-light);
}

.btn-primary-outline-0:hover {
    background: var(--bs-secondary) !important;
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-primary);
}

.btn-light-outline-0:hover {
    background: var(--bs-primary) !important;
    color: var(--bs-white) !important;
    border: 1px solid var(--bs-secondary);
}

/* Image Border */
.img-border {
    border-color: var(--bs-secondary);
    border-style: double;
}

/* Typography */
/* Enhanced Display Typography */
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6 {
    font-family: 'Great Vibes', 'Dancing Script', cursive, serif !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
}

/* Carousel Typography */
.carousel-caption h1 {
    font-family: 'Great Vibes', 'Dancing Script', cursive, serif !important;
    font-weight: 400 !important;
    font-size: 3.5rem !important;
    line-height: 1.1 !important;
    letter-spacing: 2px !important;
}

.carousel-caption h4 {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.2rem !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
}

/* Section Headings */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Great Vibes', 'Dancing Script', cursive, serif !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    letter-spacing: 1px !important;
}

/* Body Text */
p, span, div {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
}

/* Contact Section Fixes */
.contact-form-container {
    margin-top: 30px !important;
    padding-top: 40px !important;
    position: relative !important;
}

.contact-header {
    position: absolute !important;
    top: -15px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    background: #ffffff !important;
    padding: 10px 20px !important;
    border: 2px solid #fd5d5d !important;
    border-style: double !important;
    border-radius: 5px !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    z-index: 10 !important;
    max-width: 80% !important;
    width: auto !important;
}

.contact-header h4 {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
    font-size: 1.1rem !important;
    color: #fd5d5d !important;
    margin: 0 !important;
    padding: 0 !important;
    white-space: nowrap !important;
    text-align: center !important;
    line-height: 1.3 !important;
}

/* Contact Form Styling */
.contact-form-container form {
    margin-top: 20px !important;
}

.contact-form-container .form-group {
    margin-bottom: 20px !important;
}

.contact-form-container .form-label {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    color: #212529 !important;
    margin-bottom: 8px !important;
}

.contact-form-container .form-control {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 1rem !important;
    border: 2px solid #e9ecef !important;
    border-radius: 8px !important;
    transition: all 0.3s ease !important;
    background-color: #ffffff !important;
}

.contact-form-container .form-control:focus {
    border-color: #fd5d5d !important;
    box-shadow: 0 0 0 0.2rem rgba(253, 93, 93, 0.25) !important;
    outline: none !important;
}

/* Contact Info Boxes */
.contact-form-container + .mt-5 .p-4 {
    border: 2px solid #fd5d5d !important;
    border-style: double !important;
    border-radius: 10px !important;
    transition: all 0.3s ease !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

.contact-form-container + .mt-5 .p-4:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(253, 93, 93, 0.2) !important;
    border-color: #6c757d !important;
}

.contact-form-container + .mt-5 h4 {
    font-family: 'Great Vibes', 'Dancing Script', cursive, serif !important;
    font-size: 1.5rem !important;
    color: #fd5d5d !important;
    margin-bottom: 10px !important;
}

.contact-form-container + .mt-5 a,
.contact-form-container + .mt-5 p {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 500 !important;
    color: #212529 !important;
    text-decoration: none !important;
}

.contact-form-container + .mt-5 a:hover {
    color: #fd5d5d !important;
    text-decoration: underline !important;
}

/* Mobile Responsive Contact Section */
@media (max-width: 768px) {
    .contact-header {
        max-width: 90% !important;
        padding: 8px 15px !important;
    }
    
    .contact-header h4 {
        font-size: 1rem !important;
        white-space: normal !important;
        line-height: 1.2 !important;
    }
    
    .contact-form-container {
        margin-top: 20px !important;
        padding-top: 30px !important;
    }
    
    .contact-form-container .form-control {
        font-size: 0.9rem !important;
        padding: 12px 15px !important;
    }
    
    .contact-form-container + .mt-5 .p-4 {
        margin-bottom: 15px !important;
        padding: 20px 15px !important;
    }
    
    .contact-form-container + .mt-5 h4 {
        font-size: 1.3rem !important;
    }
    
    /* Mobile Brand Adjustments */
    .navbar-brand {
        margin-left: 10px !important;
        padding-left: 5px !important;
    }
    
    .navbar-brand h4 {
        font-size: 2rem !important;
        padding: 0 0 0 15px !important;
        letter-spacing: 1px !important;
        word-spacing: 5px !important;
    }
}

/* Mr&Mrs Template Colors - Exact Match */
:root {
    --bs-primary: #fd5d5d;
    --bs-secondary: #6c757d;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --bs-white: #ffffff;
}

/* Global fixes for perfect alignment and no gaps */
* {
    box-sizing: border-box;
}

body {
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden;
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 16px;
    line-height: 1.6;
}

.container-fluid {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Enhanced Font Loading and Fallbacks */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes:wght@400&family=Open+Sans:wght@300;400;500;600;700&family=Petit+Formal+Script&family=Dancing+Script:wght@400;500;600;700&display=swap');

/* Font Family Definitions with Fallbacks */
.font-great-vibes {
    font-family: 'Great Vibes', 'Dancing Script', cursive, serif !important;
}

.font-petit-formal {
    font-family: 'Petit Formal Script', 'Dancing Script', cursive, serif !important;
}

.font-open-sans {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Enhanced Header & Navbar Styles - Perfect Alignment & Full Coverage */
.sticky-top {
    transition: all 0.5s ease;
    background: linear-gradient(135deg, #fd5d5d 0%, #6c757d 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    border-bottom: 3px solid #ffffff;
    position: relative;
    overflow: hidden;
    width: 100vw !important;
    margin: 0 !important;
    padding: 0 !important;
    left: 0 !important;
    right: 0 !important;
}

/* Full width header container - No gaps */
.container-fluid.sticky-top {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: none !important;
}

.container-fluid.sticky-top .container-fluid {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: none !important;
}

.container-fluid.sticky-top .container {
    padding: 0 !important;
    margin: 0 !important;
    width: 100vw !important;
    max-width: none !important;
}

/* Navbar alignment fix */
.navbar {
    padding: 15px 0 !important;
    align-items: center !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    width: 100% !important;
}

/* Clean Mr&Mrs style header */

/* Mr&Mrs Brand Styling - Enhanced Positioning */
.navbar-brand {
    transition: all 0.3s ease;
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    line-height: 1.2 !important;
    margin-left: 15px !important;
    padding-left: 10px !important;
    position: relative !important;
}

.navbar-brand:hover {
    transform: scale(1.02);
}

/* Mr&Mrs Brand Typography - Enhanced Font Loading */
.navbar-brand h4 {
    font-family: 'Great Vibes', 'Dancing Script', cursive, serif !important;
    font-size: 2.5rem !important;
    font-weight: 400 !important;
    color: #ffffff !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    margin: 0 !important;
    padding: 0 0 0 20px !important;
    line-height: 1.1 !important;
    display: flex !important;
    align-items: center !important;
    letter-spacing: 2px !important;
    word-spacing: 8px !important;
    text-align: left !important;
    position: relative !important;
}

.navbar-brand h4:hover {
    color: #f8f9fa !important;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.4);
}

.navbar-brand strong {
    color: #f8f9fa !important;
    transition: all 0.3s ease;
    line-height: 1.2 !important;
    margin-left: 5px !important;
    font-size: 0.9em !important;
}

.navbar-brand:hover strong {
    color: #ffffff !important;
}

/* Removed decorative elements for clean brand name */

/* Mr&Mrs Navigation Links - Perfect Alignment */
.navbar .navbar-nav {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

.navbar .navbar-nav .nav-link {
    padding: 12px 15px !important;
    font-family: 'Petit Formal Script', 'Dancing Script', cursive, serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    color: #ffffff !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    transition: 0.5s;
    display: flex !important;
    align-items: center !important;
    line-height: 1.2 !important;
    height: auto !important;
    letter-spacing: 0.5px;
}

.navbar .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link.active,
.sticky-top .navbar .navbar-nav .nav-link:hover,
.sticky-top .navbar .navbar-nav .nav-link.active {
    color: #f8f9fa !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Mr&Mrs Button Styles - Perfect Alignment */
.navbar .btn {
    font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: 0.5s;
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #fd5d5d !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: auto !important;
    line-height: 1.2 !important;
    padding: 10px 20px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.navbar .btn:hover {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: #6c757d !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

/* Mr&Mrs Primary Button Colors */
.btn-primary {
    background-color: #fd5d5d !important;
    border-color: #fd5d5d !important;
    color: #ffffff !important;
}

.btn-primary:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: #ffffff !important;
}

.btn-primary-outline-0 {
    color: #ffffff !important;
    border: 1px solid #fd5d5d !important;
    background: transparent !important;
}

.btn-primary-outline-0:hover {
    background: #6c757d !important;
    color: #ffffff !important;
    border: 1px solid #fd5d5d !important;
}

/* Mr&Mrs Mobile Menu - Gradient Header */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.95);
        margin-top: 10px;
        padding: 20px;
        border-radius: 10px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        color: #fd5d5d !important;
        text-shadow: none !important;
        margin: 5px 0;
        padding: 12px 20px !important;
        border-radius: 8px;
        background: rgba(253, 93, 93, 0.05);
    }
    
    .navbar-nav .nav-link:hover {
        color: #6c757d !important;
        background: rgba(108, 117, 125, 0.1);
    }
}

@media (min-width: 1200px) {
    .navbar .navbar-collapse .border-top {
        border-top: none !important;
    }
}

/* Mr&Mrs Carousel Styles - Exact Template Colors */
.carousel-item {
    position: relative;
    min-height: 100vh;
    height: 100%;
}

.carousel-item .carousel-caption {
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0.4));
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mr&Mrs Carousel Indicators */
#carouselId .carousel-indicators li {
    border-top: 10px solid #ffffff;
    border-bottom: 10px solid #ffffff;
    border-right: 5px solid #ffffff;
    border-left: 5px solid #ffffff;
    margin-right: 10px;
    transition: 0.5s;
}

#carouselId .carousel-indicators li.active {
    background: #fd5d5d;
    border-color: #fd5d5d;
    border-right: 15px solid #fd5d5d;
    border-left: 15px solid #fd5d5d;
}

/* Mr&Mrs Section Colors */
.text-primary {
    color: #fd5d5d !important;
}

.text-secondary {
    color: #6c757d !important;
}

.bg-primary {
    background-color: #fd5d5d !important;
}

.bg-secondary {
    background-color: #6c757d !important;
}

.carousel-item img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-header .carousel-item .carousel-caption {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0.4));
    background-size: cover;
}

.carousel-control-prev,
.carousel-control-next {
    opacity: 0;
}

.carousel-control-prev .carousel-control-prev-icon,
.carousel-control-next .carousel-control-next-icon {
    background: transparent;
}

#carouselId .carousel-indicators {
    padding-bottom: 30px;
}

#carouselId .carousel-indicators li {
    border-top: 10px solid var(--bs-white);
    border-bottom: 10px solid var(--bs-white);
    border-right: 5px solid var(--bs-white);
    border-left: 5px solid var(--bs-white);
    margin-right: 10px;
    transition: 0.5s;
}

#carouselId .carousel-indicators li.active {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    border-right: 15px solid var(--bs-primary);
    border-left: 15px solid var(--bs-primary);
}

/* Wedding Story Styles */
.story .story-timeline,
.story .story-timeline .row {
    position: relative;
}

.story .story-timeline::before,
.story .story-timeline .row::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 100%;
    background: var(--bs-secondary);
    left: 50%;
    top: 0;
    transform: translateX(-50%);
}

.story .story-timeline .row::before {
    display: none;
}

.story .story-timeline .row:last-child::before {
    display: block;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* Ensure content is above decorative images */
.auth-form-wrapper > *,
.bg-white > *,
.bg-light > * {
    position: relative;
    z-index: 2;
}

/* Exclude form elements from decorative background images */
.form-control,
input,
textarea,
select,
.form-label,
.form-check-input,
.form-check-label,
.btn,
.nav-link {
    position: relative;
    z-index: 3;
}

.form-control::before,
.form-control::after,
input::before,
input::after,
textarea::before,
textarea::after,
select::before,
select::after {
    display: none !important;
    background-image: none !important;
}

/* Additional decorative images for About section and other white backgrounds */
/* Exclude gallery section from decorative images */
.container-fluid.position-relative:not(.gallery) {
    position: relative;
}

.container-fluid.position-relative:not(.gallery)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('Images/the-general-characteristics-of-madhubani-paintings-an-indian-folk-art.jpg'),
        url('Images/WhatsApp Image 2025-11-07 at 6.19.21 PM (1).jpeg'),
        url('Images/WhatsApp Image 2025-11-08 at 12.29.38 PM.jpeg');
    background-size: 80px 80px, 70px 70px, 75px 75px;
    background-position: 
        8% 12%, 
        92% 18%, 
        15% 78%, 
        88% 82%,
        50% 48%,
        25% 28%,
        80% 58%,
        12% 88%;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

/* Feature items decorative images will be added to existing .feature-item definition */

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-img {
    position: relative;
    overflow: hidden;
}

.gallery-img img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-img img {
    transform: scale(1.05);
}

.hover-style {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(253, 93, 93, 0.8), rgba(253, 93, 93, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .hover-style {
    opacity: 1;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .search-icon {
    opacity: 1;
}

.gallery-overlay {
    background: #fff;
    border-radius: 0 0 15px 15px;
    position: relative;
    z-index: 1;
}

.gallery-overlay::before,
.gallery-overlay::after {
    display: none !important;
    background-image: none !important;
}

.gallery-overlay h5,
.gallery-overlay p {
    position: relative;
    z-index: 2;
}

.gallery-overlay h5 {
    color: var(--bs-primary);
    font-weight: 600;
}

/* Feature Items */
.feature-item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('Images/WhatsApp Image 2025-11-07 at 6.19.20 PM (1).jpeg'),
        url('Images/WhatsApp Image 2025-11-08 at 12.29.38 PM.jpeg');
    background-size: 60px 60px, 55px 55px;
    background-position: 
        90% 10%, 
        10% 90%;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    opacity: 0.3;
    z-index: 0;
    pointer-events: none;
    border-radius: 15px;
}

.feature-item > * {
    position: relative;
    z-index: 1;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.feature-icon {
    color: var(--bs-primary);
}

/* Form Styles */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(253, 93, 93, 0.25);
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-secondary) 100%);
    color: #fff;
}

.footer-item h4 {
    color: var(--mithila-gold);
}

.btn-link {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.btn-link:hover {
    color: var(--mithila-gold);
}

/* Copyright */
.copyright {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
}

/* Tab Styles */
.tab-class {
    background: var(--bs-primary);
    border-radius: 15px;
    padding: 2rem;
    position: relative;
}

.tab-class::before,
.tab-class::after,
.tab-pane::before,
.tab-pane::after {
    display: none !important;
}

/* Remove background images from buttons */
.btn::before,
.btn::after,
.nav-link::before,
.nav-link::after {
    display: none !important;
    background-image: none !important;
}

/* Remove background images from Find Bride and Find Groom buttons */
.tab-class .nav-link,
.tab-class .nav-link.bg-white,
.tab-class .nav-link.active,
.tab-class a.bg-white {
    background-image: none !important;
    background: #fff !important;
}

.tab-class .nav-link::before,
.tab-class .nav-link::after,
.tab-class .nav-link.bg-white::before,
.tab-class .nav-link.bg-white::after,
.tab-class a.bg-white::before,
.tab-class a.bg-white::after {
    display: none !important;
    background-image: none !important;
}

/* Remove background images from form controls */
.form-control::before,
.form-control::after,
input::before,
input::after,
textarea::before,
textarea::after,
select::before,
select::after,
.form-label::before,
.form-label::after,
.form-check-input::before,
.form-check-input::after,
.form-check-label::before,
.form-check-label::after {
    display: none !important;
    background-image: none !important;
}

/* Ensure form controls don't inherit background images from parents */
.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
textarea,
select {
    background-image: none !important;
    background: #f8f9fa !important;
}

/* Remove background images from gallery section */
.gallery::before,
.gallery::after,
.gallery-item::before,
.gallery-item::after {
    display: none !important;
    background-image: none !important;
}

.form-control:focus,
input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="tel"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    background-image: none !important;
    background: #ffffff !important;
}

.tab-class .nav-link {
    background: #fff !important;
    background-image: none !important;
    color: var(--bs-primary);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 3;
}

.tab-class .nav-link::before,
.tab-class .nav-link::after {
    display: none !important;
    background-image: none !important;
}

.tab-class .nav-link.active {
    background: var(--mithila-gold) !important;
    background-image: none !important;
    color: var(--bs-primary);
}

.tab-class .nav-link.active::before,
.tab-class .nav-link.active::after {
    display: none !important;
    background-image: none !important;
}

.tab-class .nav-link:hover {
    background: var(--mithila-gold);
    color: var(--bs-primary);
}

/* Animation Classes */
.wow {
    visibility: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .carousel-item {
        height: 70vh;
        min-height: 400px;
    }
    
    .carousel-caption h1 {
        font-size: 2.5rem;
    }
    
    .carousel-caption h4 {
        font-size: 1rem;
    }
    
    .feature-item {
        margin-bottom: 2rem;
    }
    
    .gallery-img img {
        height: 200px;
    }
}

@media (max-width: 576px) {
    .carousel-caption h1 {
        font-size: 2rem;
    }
    
    .carousel-caption h4 {
        font-size: 0.9rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--bs-secondary), var(--bs-primary));
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

/* Mithila Cultural Elements */
.mithila-decoration {
    position: absolute;
    opacity: 0.1;
    z-index: 1;
}

.mithila-decoration.top-left {
    top: 20px;
    left: 20px;
    width: 100px;
    height: 100px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="%23FFD700" stroke-width="2"/><circle cx="50" cy="50" r="20" fill="none" stroke="%23FFD700" stroke-width="1"/><path d="M20,50 L80,50 M50,20 L50,80" stroke="%23FFD700" stroke-width="1"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

.mithila-decoration.bottom-right {
    bottom: 20px;
    right: 20px;
    width: 120px;
    height: 120px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M10,10 L90,10 L90,90 L10,90 Z" fill="none" stroke="%23FFD700" stroke-width="2"/><path d="M30,30 L70,30 L70,70 L30,70 Z" fill="none" stroke="%23FFD700" stroke-width="1"/><circle cx="50" cy="50" r="15" fill="none" stroke="%23FFD700" stroke-width="1"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
}

/* Success Stories Styling */
.gallery-overlay {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border: 2px solid var(--mithila-gold);
    border-radius: 0 0 15px 15px;
}

.gallery-overlay h5 {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.gallery-overlay p {
    color: var(--bs-secondary);
    font-weight: 500;
}

/* Contact Form Styling */
.RSVP-form {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
}

.RSVP-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="contact-pattern" patternUnits="userSpaceOnUse" width="20" height="20"><circle cx="10" cy="10" r="2" fill="rgba(253, 93, 93, 0.05)"/><path d="M5,5 L15,5 L15,15 L5,15 Z" fill="none" stroke="rgba(253, 93, 93, 0.05)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23contact-pattern)"/></svg>');
    opacity: 0.5;
    z-index: 1;
}

.RSVP-form .container {
    position: relative;
    z-index: 2;
}

/* Footer Social Icons */
.footer .btn-md-square {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.footer .btn-md-square:hover {
    background: var(--mithila-gold);
    color: var(--bs-primary);
    border-color: var(--mithila-gold);
    transform: translateY(-3px);
}

/* Mithila Cultural Typography */
.mithila-title {
    font-family: 'Great Vibes', cursive;
    color: var(--bs-primary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.mithila-subtitle {
    font-family: 'Petit Formal Script', cursive;
    color: var(--bs-secondary);
}

/* Mithila Cultural Phrases Styling */
.mithila-phrase {
    font-family: 'Great Vibes', cursive;
    color: var(--bs-primary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mithila-phrase:hover {
    transform: scale(1.05);
    color: var(--bs-secondary);
}

.mithila-phrase-translation {
    color: var(--bs-secondary);
    font-style: italic;
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Enhanced Mithila Cultural Elements */
.mithila-cultural-border {
    border: 3px solid var(--bs-primary);
    border-style: double;
    border-radius: 15px;
    position: relative;
    background: linear-gradient(135deg, rgba(253, 93, 93, 0.05), rgba(253, 93, 93, 0.02));
    transition: all 0.3s ease;
}

.mithila-cultural-border:hover {
    border-color: var(--bs-secondary);
    background: linear-gradient(135deg, rgba(253, 93, 93, 0.1), rgba(253, 93, 93, 0.05));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(253, 93, 93, 0.2);
}

.mithila-cultural-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--mithila-gold);
    border-radius: 18px;
    z-index: -1;
    opacity: 0.3;
}

/* Mithila Phrase Animation */
@keyframes mithilaGlow {
    0% { text-shadow: 1px 1px 2px rgba(253, 93, 93, 0.3); }
    50% { text-shadow: 1px 1px 8px rgba(253, 93, 93, 0.6), 0 0 10px rgba(253, 93, 93, 0.3); }
    100% { text-shadow: 1px 1px 2px rgba(253, 93, 93, 0.3); }
}

.mithila-phrase-animated {
    animation: mithilaGlow 3s ease-in-out infinite;
}

/* Cultural Heart Symbol */
.mithila-heart {
    color: var(--bs-primary);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.mithila-heart:hover {
    color: var(--bs-secondary);
    transform: scale(1.2);
    animation: heartbeat 1s ease-in-out;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Cultural Border Styles */
.cultural-border {
    border: 3px solid var(--mithila-gold);
    border-style: double;
    border-radius: 15px;
    position: relative;
}

.cultural-border::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border: 1px solid var(--bs-primary);
    border-radius: 18px;
    z-index: -1;
}

/* Mithila Pattern Overlay */
.mithila-pattern-overlay {
    position: relative;
}

.mithila-pattern-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="overlay-pattern" patternUnits="userSpaceOnUse" width="40" height="40"><circle cx="20" cy="20" r="2" fill="rgba(255,215,0,0.1)"/><path d="M10,10 L30,10 L30,30 L10,30 Z" fill="none" stroke="rgba(255,215,0,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23overlay-pattern)"/></svg>');
    opacity: 0.3;
    z-index: 1;
    pointer-events: none;
}

/* Team Section Styles */
.team-item {
    position: relative;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.team-item:hover {
    transform: translateY(-10px);
}

.team-img {
    position: relative;
    overflow: hidden;
}

.team-img-main img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.team-item:hover .team-img-main img {
    transform: scale(1.05);
}

.team-content {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    color: #fff;
    padding: 1.5rem;
}

.team-content h5 {
    color: #fff;
    font-weight: 700;
}

.team-social {
    position: absolute;
    top: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.team-item:hover .team-social {
    opacity: 1;
}

/* Wedding Date Section */
.wedding-date-bg {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    position: relative;
    overflow: hidden;
}

.wedding-date {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    position: relative;
    z-index: 2;
}

.wedding-date-content h1 {
    color: var(--bs-primary);
    font-family: 'Great Vibes', cursive;
}

/* Timeline Section */
.wedding-timeline {
    background: linear-gradient(135deg, var(--bs-secondary), var(--bs-primary));
    position: relative;
    overflow: hidden;
}

.wedding-timeline .border {
    border-color: var(--bs-primary) !important;
}

.wedding-timeline .text-primary {
    color: var(--bs-primary) !important;
}

.wedding-timeline .text-dark {
    color: #fff !important;
}

/* Heart Circle Animation */
.heart-circle {
    animation: heartbeat 2s ease-in-out infinite;
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Mithila Cultural Enhancements */
.mithila-theme {
    font-family: 'Open Sans', sans-serif;
}

.mithila-theme .display-1,
.mithila-theme .display-2,
.mithila-theme .display-3,
.mithila-theme .display-4,
.mithila-theme .display-5,
.mithila-theme .display-6 {
    font-family: 'Great Vibes', cursive;
    color: var(--bs-primary);
}

.mithila-theme .navbar-brand h4 {
    font-family: 'Great Vibes', cursive;
    color: var(--bs-primary);
}

.mithila-theme .navbar-brand strong {
    color: var(--bs-secondary);
}

/* Enhanced Button Styles */
.btn-primary {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: var(--bs-secondary);
    border-color: var(--bs-secondary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(253, 93, 93, 0.3);
}

/* Enhanced Form Styles */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(253, 93, 93, 0.25);
    transform: translateY(-2px);
}

/* Enhanced Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

/* Enhanced Feature Styles */
.feature-item {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(253, 93, 93, 0.1), rgba(253, 93, 93, 0.05));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.feature-item:hover::before {
    opacity: 1;
}

.feature-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border-color: var(--bs-primary);
}

.feature-icon {
    color: var(--bs-primary);
    transition: all 0.3s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.1);
    color: var(--bs-secondary);
}

/* Decorative Blurred Images for White Backgrounds */
/* Exclude buttons, form elements, tab elements, and gallery overlays from decorative images */
.bg-white:not(.btn):not(.nav-link):not(.tab-pane):not(.tab-class):not(.form-control):not(input):not(textarea):not(select):not(.form-label):not(.form-check-input):not(.form-check-label):not(.gallery-overlay)::before,
.bg-light:not(.btn):not(.nav-link):not(.tab-pane):not(.tab-class):not(.form-control):not(input):not(textarea):not(select):not(.form-label):not(.form-check-input):not(.form-check-label):not(.gallery-overlay)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url('Images/the-general-characteristics-of-madhubani-paintings-an-indian-folk-art.jpg'),
        url('Images/WhatsApp Image 2025-11-07 at 6.19.20 PM (1).jpeg'),
        url('Images/WhatsApp Image 2025-11-07 at 6.19.21 PM (1).jpeg'),
        url('Images/WhatsApp Image 2025-11-08 at 12.29.38 PM.jpeg');
    background-size: 120px 120px, 100px 100px, 110px 110px, 90px 90px;
    background-position: 
        10% 15%, 
        85% 25%, 
        20% 70%, 
        75% 80%,
        50% 45%,
        30% 90%,
        90% 10%,
        5% 50%;
    background-repeat: no-repeat;
    filter: brightness(0.7);
    opacity: 0.35;
    z-index: 0;
    pointer-events: none;
}

/* Additional decorative images for different white backgrounds */
/* Exclude buttons, form elements, tab elements, and gallery overlays from decorative images */
.bg-white:not(.btn):not(.nav-link):not(.tab-pane):not(.tab-class):not(.form-control):not(input):not(textarea):not(select):not(.form-label):not(.form-check-input):not(.form-check-label):not(.gallery-overlay),
.bg-light:not(.btn):not(.nav-link):not(.tab-pane):not(.tab-class):not(.form-control):not(input):not(textarea):not(select):not(.form-label):not(.form-check-input):not(.form-check-label):not(.gallery-overlay) {
    position: relative;
    overflow: hidden;
}

.bg-white:not(.btn):not(.nav-link):not(.tab-pane):not(.tab-class):not(.form-control):not(input):not(textarea):not(select):not(.form-label):not(.form-check-input):not(.form-check-label):not(.gallery-overlay)::after,
.bg-light:not(.btn):not(.nav-link):not(.tab-pane):not(.tab-class):not(.form-control):not(input):not(textarea):not(select):not(.form-label):not(.form-check-input):not(.form-check-label):not(.gallery-overlay)::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: url('Images/WhatsApp Image 2025-11-07 at 6.19.22 PM (1).jpeg');
    background-size: cover;
    background-position: center;
    filter: brightness(0.7);
    opacity: 0.3;
    border-radius: 50%;
    top: 60%;
    right: 15%;
    z-index: 0;
    pointer-events: none;
}

/* Auth Form Container Styles */
.auth-form-container {
    background: linear-gradient(135deg, #fd5d5d 0%, #6c757d 50%, #fd5d5d 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    min-height: 100vh;
    position: relative;
    overflow-y: auto;
}

.auth-form-container::before {
    display: none;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 450px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.98) 100%);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    border: 3px solid var(--bs-primary);
    border-style: double;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.auth-form-wrapper::before {
    display: none;
}

.auth-tabs {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 2rem;
}

.auth-tabs .nav-pills {
    gap: 0.5rem;
}

.auth-tabs .nav-link {
    background: transparent;
    color: var(--bs-secondary);
    border: 2px solid transparent;
    border-radius: 10px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.auth-tabs .nav-link:hover {
    background: rgba(253, 93, 93, 0.1);
    color: var(--bs-primary);
    border-color: rgba(253, 93, 93, 0.3);
}

.auth-tabs .nav-link.active {
    background: var(--bs-primary);
    color: #ffffff;
    border-color: var(--bs-primary);
    box-shadow: 0 4px 15px rgba(253, 93, 93, 0.3);
}

.auth-form h3 {
    font-family: 'Great Vibes', cursive;
    font-size: 2rem;
    color: var(--bs-primary);
    margin-bottom: 1.5rem;
}

.auth-form {
    position: relative;
    z-index: 2;
}

.auth-form .form-label {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--bs-dark);
    margin-bottom: 0.5rem;
}

.auth-form .form-control {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-family: 'Open Sans', sans-serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.auth-form .form-control:focus {
    background: #ffffff;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(253, 93, 93, 0.25);
    outline: none;
}

.auth-form .form-check-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    color: var(--bs-dark);
}

.auth-form .form-check-input {
    border: 2px solid #e9ecef;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.auth-form .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.auth-form .btn-primary {
    font-family: 'Open Sans', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.auth-form .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(253, 93, 93, 0.4);
}

.auth-form a {
    text-decoration: none;
    transition: all 0.3s ease;
}

.auth-form a:hover {
    text-decoration: underline;
}

/* Carousel adjustments for split layout */
.carousel-header .row {
    margin: 0;
}

.carousel-header .carousel-item {
    min-height: 100vh;
    height: 100%;
}

.carousel-header .carousel-item img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.carousel-header .carousel-caption {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0.4));
}

/* Responsive Design for Auth Form */
@media (max-width: 991.98px) {
    .auth-form-container {
        min-height: auto;
        padding: 2rem 1rem;
        order: -1;
    }
    
    .auth-form-wrapper {
        max-width: 100%;
        padding: 2rem 1.5rem;
    }
    
    .carousel-header .row {
        flex-direction: column;
    }
    
    .carousel-header .col-lg-8 {
        min-height: 60vh;
    }
    
    .carousel-header .carousel-item {
        min-height: 60vh;
    }
}

@media (max-width: 576px) {
    .auth-form-wrapper {
        padding: 1.5rem 1rem;
        border-radius: 15px;
    }
    
    .auth-form h3 {
        font-size: 1.5rem;
    }
    
    .auth-tabs .nav-link {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .auth-form .form-control {
        padding: 0.6rem 0.9rem;
        font-size: 0.9rem;
    }
}