/* --- Contact Page Specific Styles (Option 5 Layout + Form Logic) --- */
:root { 
    --brand-purple: #6d275f; /* Pulled from your original hover state */
    --bg-color: #f3f2ef; 
    --font-heading: 'Playfair Display', serif;
}

body { 
    background-color: var(--bg-color); 
}

/* Base Grid Layout */
.opt-5 {
    padding-top: 4rem; /* Accounts for fixed nav */
}

.opt-5 .contact-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 10%; 
    padding: 4rem 2rem 0 2rem; 
    max-width: 1200px; 
    margin: 0 auto; 
}

.opt-5 .form-title { 
    font-family: var(--font-heading); 
    font-size: 4rem; 
    margin-bottom: 3rem; 
    color: #000; 
    letter-spacing: -1px; 
}

/* Form Inputs */
.opt-5 .form-group { 
    position: relative; 
    margin-bottom: 2.5rem; 
}

.opt-5 .form-group input, 
.opt-5 .form-group textarea, 
.opt-5 .custom-dropdown-trigger { 
    width: 100%; 
    padding: 15px 0; 
    border: none; 
    border-bottom: 1px solid #d1d1d1; 
    background: transparent; 
    font-size: 0.8rem; 
    letter-spacing: 1.5px; 
    transition: 0.4s ease-out; 
    color: #050505;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
}

.opt-5 .form-group input::placeholder, 
.opt-5 .form-group textarea::placeholder { 
    color: rgba(5, 5, 5, 0.5); 
}

.opt-5 .form-group input:focus, 
.opt-5 .form-group textarea:focus { 
    outline: none; 
    border-bottom: 1px solid var(--brand-purple); 
    padding-left: 10px; 
}

/* Custom Dropdowns */
.opt-5 .custom-dropdown-wrapper { 
    position: relative; 
    cursor: pointer; 
}

.opt-5 .custom-dropdown-trigger { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.opt-5 .custom-dropdown-options {
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: #fff;
    border: 1px solid #eaeaea; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    opacity: 0; 
    visibility: hidden; 
    transform: translateY(-10px);
    transition: all 0.3s ease; 
    z-index: 20; 
    list-style: none; 
    padding: 0; 
    margin: 0;
}

.opt-5 .custom-dropdown-wrapper.open .custom-dropdown-options {
    opacity: 1; 
    visibility: visible; 
    transform: translateY(0);
}

.opt-5 .custom-option {
    padding: 15px 20px; 
    font-size: 0.8rem; 
    letter-spacing: 1px;
    transition: background 0.2s, color 0.2s; 
    color: #555;
}

.opt-5 .custom-option:hover { 
    background: var(--brand-purple); 
    color: #fff; 
}

/* Data Consent Checkbox */
.opt-5 .consent-wrapper { 
    display: flex; 
    align-items: flex-start; 
    gap: 1rem; 
    margin: 2rem 0; 
}

.opt-5 .consent-wrapper input[type="checkbox"] {
    appearance: none; 
    -webkit-appearance: none; 
    width: 18px; 
    height: 18px;
    border: 1px solid rgba(5, 5, 5, 0.4); 
    border-radius: 2px;
    background-color: transparent; 
    cursor: pointer; 
    position: relative;
    flex-shrink: 0; 
    margin-top: 3px; 
    transition: all 0.3s ease;
}

.opt-5 .consent-wrapper input[type="checkbox"]:checked {
    background-color: var(--brand-purple); 
    border-color: var(--brand-purple);
}

.opt-5 .consent-wrapper input[type="checkbox"]:checked::after {
    content: '✔'; 
    position: absolute; 
    color: #ffffff; 
    font-size: 12px; 
    left: 3px; 
    top: 0px;
}

.opt-5 .consent-wrapper label { 
    font-size: 0.8rem; 
    color: #555; 
    line-height: 1.5; 
    cursor: pointer; 
    text-transform: none; 
    letter-spacing: 0; 
}

/* Submit Button */
.opt-5 .btn-primary { 
    background: #000; 
    color: #fff; 
    padding: 18px 45px; 
    border: none; 
    cursor: pointer; 
    font-size: 0.85rem; 
    letter-spacing: 2px; 
    text-transform: uppercase; 
    transition: 0.3s; 
    font-family: inherit;
}

.opt-5 .btn-primary:hover { 
    background: var(--brand-purple); 
}

/* Success Message Overlay */
.form-success-msg {
    position: absolute; 
    inset: 0; 
    background: var(--bg-color);
    display: flex; 
    align-items: center; 
    justify-content: center;
    opacity: 0; 
    visibility: hidden; 
    transition: opacity 0.5s ease;
    z-index: 10;
}

.form-success-msg p { 
    font-size: 1.5rem; 
    color: var(--brand-purple); 
    font-family: var(--font-heading); 
    font-style: italic; 
    text-align: center;
}

/* Right Column (Info) */
.opt-5 .contact-info-container { 
    padding-top: 15rem; 
    margin-left: 25%; /* Pushes the entire column to the right */
}

.opt-5 .info-item { 
    margin-bottom: 4rem; 
}

.opt-5 .info-item.offset { 
    margin-left: 20%; 
}

.opt-5 .info-item h4 { 
    font-family: var(--font-heading); 
    font-size: 1.5rem; 
    color: var(--brand-purple); 
    margin-bottom: 1rem; 
    font-style: italic; 
}

.opt-5 .info-item p { 
    font-size: 1.05rem; 
    line-height: 1.8; 
    color: #444; 
}

.opt-5 .social-links {
    display: flex;
    gap: 0.8rem;
}

/* Mapbox Implementation */
.edge-to-edge-map {
    width: 100%; 
    height: 50vh; 
    min-height: 400px;
    background-color: #e0deda; 
    margin-top: 6rem;
}

.mapboxgl-ctrl-bottom-right { 
    bottom: 20px; 
    right: 20px; 
}

/* --- Heading Dash & Sub-heading Styles (Black) --- */
.sub-heading {
    display: block;
    color: #000000; /* Forces text to remain black */
    font-size: 0.85em; /* Scales proportionately with the 4rem parent heading */
    font-weight: 400;
}

.title-dash {
    display: inline-block;
    width: 80px;
    height: 4px;
    background-color: #000000; /* Forces dash to remain black */
    margin-bottom: 0.2em;
    margin-right: 20px;
    vertical-align: middle;
}

.title-accent {
    color: #000000; /* Forces the accent dot to remain black */
}

/* Responsive adjustment for the dash */
@media (max-width: 768px) {
    .title-dash {
        width: 50px;
        margin-bottom: 0.3em;
    }
}

/* Mobile Responsive */
@media (max-width: 900px) {
    .opt-5 .contact-grid { 
        grid-template-columns: 1fr; 
        gap: 3rem; 
        padding-top: 2rem; 
    }
    .opt-5 .contact-info-container { 
        padding-top: 2rem; 
    }
    .opt-5 .info-item.offset { 
        margin-left: 0; 
    }
}