/* ==========================================================================
   CONTACT PAGE LAYOUT & INPUT STYLING
   ========================================================================== */

.contact-section {
    padding: 120px 0;
    background-color: var(--bg-main, #fcfbfa);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 80px;
    align-items: start;
}

/* Make it side-by-side on desktop screens */
@media (min-width: 992px) {
    .contact-grid {
        grid-template-columns: 2fr 3fr;
        gap: 100px;
    }
}

/* Info Side Specifics */
.info-block {
    margin-bottom: 48px;
}
.info-block h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    color: var(--text-main, #1c1c1c);
    margin: 8px 0 20px 0;
}
.info-label {
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.75rem;
    color: var(--gold, #e5b842);
    font-weight: 600;
    display: block;
}
.studio-address {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #555;
}
.info-detail a {
    font-size: 1.25rem;
    color: var(--text-main, #1c1c1c);
    text-decoration: none;
    transition: color 0.3s ease;
}
.info-detail a:hover {
    color: var(--gold, #e5b842);
}

/* Hours List Layout */
.hours-list {
    list-style: none;
    padding: 0;
    margin: 16px 0 0 0;
}
.hours-list li {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #e8e6e1;
    font-size: 0.95rem;
    color: #555;
}

/* Form Container Side */
.contact-form-panel h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    margin: 8px 0 12px 0;
}
.form-subtext {
    color: #666;
    margin-bottom: 40px;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Clean Input Field Architecture */
.luxury-form .form-group {
    margin-bottom: 24px;
}
.luxury-form .form-row-split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 24px;
}
@media (min-width: 576px) {
    .luxury-form .form-row-split {
        grid-template-columns: 1fr 1fr;
    }
}

.luxury-form label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

.luxury-form input[type="text"],
.luxury-form input[type="email"],
.luxury-form input[type="tel"],
.luxury-form select,
.luxury-form textarea {
    width: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #dcdad4;
    border-radius: 0px; /* Minimalist strict geometric edges */
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #222;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Focus and Active States */
.luxury-form input:focus,
.luxury-form select:focus,
.luxury-form textarea:focus {
    outline: none;
    border-color: var(--gold, #e5b842);
    box-shadow: 0 4px 12px rgba(229, 184, 66, 0.05);
}

/* Premium Accent Form Button */
.submit-btn {
    background: var(--text-main, #1c1c1c);
    color: #ffffff;
    border: none;
    padding: 16px 32px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin-top: 10px;
}
.submit-btn:hover {
    background: var(--gold, #e5b842);
    transform: translateY(-2px);
}
.submit-btn svg {
    transition: transform 0.3s ease;
}
.submit-btn:hover svg {
    transform: translateX(4px);
}


/* ==========================================================================
   CONTACT PAGE: THEME-AWARE STYLING
   ========================================================================== */

.contact-section {
    padding: 100px 0;
    /* Use variable so it flips to dark navy automatically */
    background-color: var(--bg-main); 
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin-top: 40px;
}

@media (min-width: 992px) {
    .contact-grid { grid-template-columns: 2fr 3fr; gap: 100px; }
}

/* Text Colors: Using variables ensures visibility on both themes */
.info-block h2, 
.contact-form-panel h2 {
    font-family: 'Playfair Display', serif;
    color: var(--text-main);
    margin-bottom: 20px;
}

.studio-address, .form-subtext, .hours-list li {
    color: var(--text-main);
    opacity: 0.8;
}

.info-detail a {
    color: var(--gold);
    font-weight: 600;
    text-decoration: none;
}

/* --- LUXURY FORM INPUTS --- */
.luxury-form label {
    color: var(--text-main);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: block;
}

.luxury-form input, 
.luxury-form select, 
.luxury-form textarea {
    width: 100%;
    padding: 14px;
    /* These variables must change in your main.css for dark mode */
    background: var(--bg-input, #ffffff); 
    border: 1px solid var(--border-color, #dcdad4);
    color: var(--text-main);
    transition: all 0.3s ease;
}

/* --- DARK MODE SPECIFIC OVERRIDES --- */
[data-theme="dark"] .luxury-form input,
[data-theme="dark"] .luxury-form select,
[data-theme="dark"] .luxury-form textarea {
    background: rgba(255, 255, 255, 0.05); /* Slight transparent tint */
    border-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* Native <select> dropdown options: the open popup is painted by the OS on a
   solid surface, so it needs its own explicit colors or the white-inheriting
   text is invisible on a white popup (and vice-versa). */
.luxury-form select option {
    background: var(--bg-surface);
    color: var(--text-main);
}
[data-theme="dark"] .luxury-form select option {
    background: #0F2746; /* var(--bg-surface) in dark */
    color: #EDEFF4;      /* var(--text-main) in dark */
}

[data-theme="dark"] .hours-list li {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .submit-btn {
    background: var(--gold);
    color: #1c1c1c;
}

/* Enquiry flash messages */
.form-flash{
    display:flex; align-items:flex-start; gap:12px;
    padding:16px 18px; border-radius:10px; margin-bottom:28px;
    font-size:0.92rem; line-height:1.5;
}
.form-flash svg{ width:20px; height:20px; flex-shrink:0; margin-top:1px; }
.form-flash.ok{
    background:rgba(46,139,87,0.1); border:1px solid rgba(46,139,87,0.35); color:#2E8B57;
}
.form-flash.err{
    background:rgba(192,57,43,0.08); border:1px solid rgba(192,57,43,0.3); color:#C0392B;
}
[data-theme="dark"] .form-flash.ok{ color:#5fd49a; }
[data-theme="dark"] .form-flash.err{ color:#e8857a; }

/* Focus state for both themes */
.luxury-form input:focus,
.luxury-form select:focus,
.luxury-form textarea:focus {
    outline: none;
    border-color: var(--gold);
}
/* Keep the dark tint on focus in dark mode — never flip to white,
   which would hide the white text being typed. */
[data-theme="dark"] .luxury-form input:focus,
[data-theme="dark"] .luxury-form select:focus,
[data-theme="dark"] .luxury-form textarea:focus {
    background: rgba(255, 255, 255, 0.08);
}