/* Override Storefront default layout constraints to make the contact page full-width */
main.page-template-template-contact {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Force dark theme for the entire page body and main wrappers */
body.page-template-template-contact,
.page-template-template-contact {
    background-color: #0B0E13 !important;
    background-image: none !important;
    color: #ffffff;
    font-family: 'Inter', sans-serif;
}

#page, .site {
    background-color: #0B0E13 !important;
}

/* Contact Hero/Titles */
.contact-hero-subtitle {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #BE9666;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-hero-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 4rem;
    font-weight: 400;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.text-muted {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Glassmorphism Cards */
.glassmorphism {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* Contact Form Styling - Ensure completely dark and sleek */
.contact-form-wrapper {
    width: 100%;
}

.contact-form-wrapper form {
    margin: 0;
}

.contact-form-wrapper input[type="text"],
.contact-form-wrapper input[type="email"],
.contact-form-wrapper input[type="tel"],
.contact-form-wrapper textarea,
.contact-form-wrapper select {
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(0, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #ffffff !important;
    padding: 18px 25px !important;
    border-radius: 10px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 1rem !important;
    transition: all 0.3s ease !important;
    margin-bottom: 0.5rem !important;
    box-sizing: border-box !important;
}

.contact-form-wrapper input[type="text"]:focus,
.contact-form-wrapper input[type="email"]:focus,
.contact-form-wrapper input[type="tel"]:focus,
.contact-form-wrapper textarea:focus,
.contact-form-wrapper select:focus {
    background: rgba(0, 0, 0, 0.7) !important;
    border-color: #BE9666 !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(190, 150, 102, 0.15) !important;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.4) !important;
}

.contact-form-wrapper label {
    font-family: 'Outfit', sans-serif;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.8rem;
    display: block;
    width: 100%;
}

.contact-form-wrapper input[type="submit"],
.contact-form-wrapper button[type="submit"],
.contact-form-wrapper .btn-primary {
    background: #BE9666 !important;
    color: #0B0E13 !important;
    border: 1px solid #BE9666 !important;
    padding: 18px 40px !important;
    font-family: 'Outfit', sans-serif !important;
    text-transform: uppercase !important;
    letter-spacing: 2.5px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    cursor: pointer !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
    width: 100% !important;
    margin-top: 1.5rem !important;
}

.contact-form-wrapper input[type="submit"]:hover,
.contact-form-wrapper button[type="submit"]:hover,
.contact-form-wrapper .btn-primary:hover {
    background: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateY(-4px) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4) !important;
}

/* Custom Form Success/Error states can be styled here */

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

.omid-animate[data-animate="fade-up"] {
    animation: fadeUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Override any default theme white backgrounds on forms */
.wpcf7 {
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
}

p {
    margin-bottom: 1.5rem;
}

/* --- Containerless Rework --- */
.contact-form-card.glassmorphism {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0 !important;
}

/* --- Light Header Override for Dark Theme Contact Page --- */
body.page-template-template-contact .site-header .logo,
body.page-template-template-contact .site-header .logo em,
body.page-template-template-contact .site-header .nav a {
    color: #FBF7EF !important; /* Cream color */
}

body.page-template-template-contact .site-header .logo span {
    color: rgba(251, 247, 239, 0.5) !important;
}

body.page-template-template-contact .site-header .btn-header-primary {
    background: #FBF7EF !important; /* Cream button */
    color: #0B0E13 !important; /* Dark text */
    border: none !important;
}

body.page-template-template-contact .site-header .btn-header-primary:hover {
    background: #BE9666 !important; /* Gold on hover */
    color: #0B0E13 !important;
}

body.page-template-template-contact .site-header.is-scrolled {
    background: rgba(11, 14, 19, 0.95) !important; /* Dark header when scrolled */
    backdrop-filter: blur(16px) saturate(1.1) !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) !important;
}

/* Hamburger menu button toggle on mobile */
body.page-template-template-contact .site-header .menu-toggle span,
body.page-template-template-contact .site-header .menu-toggle span::before,
body.page-template-template-contact .site-header .menu-toggle span::after {
    background: #FBF7EF !important;
}

body.page-template-template-contact .site-header .menu-toggle {
    border-color: rgba(251, 247, 239, 0.2) !important;
}
