/* --- CONTACT HERO & CARDS --- */
.contact-container { 
    padding: 160px 4rem 100px; 
    max-width: 1600px; 
    margin: 0 auto; 
    min-height: 90vh; 
}

.hero-title {
    font-family: "neue-haas-grotesk-display"; 
    font-weight: 400;
    font-size: clamp(2.5rem, 7.5vw, 9rem); 
    line-height: 1; 
    text-transform: uppercase; 
    margin-top: 5rem;
    margin-bottom: 5rem;
    text-align: center;
}
.hero-title span { 
    color: var(--maroon); 
    font-style: italic; 
    font-family: "playfair-display";
    align-items: baseline !important; 
}

.contact-options { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 1rem; 
}

.option-card {
    background: var(--glass); 
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 30px; 
    padding: 4rem 2.5rem 4rem 2.5rem; 
    display: flex; 
    justify-content: space-between;
    text-decoration: none; 
    color: inherit; 
    cursor: pointer; 
    transition: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    margin-bottom: 0;
}

.option-card:hover {
    background: white;
    transform: translateY(-8px);
    border-color: rgba(134, 4, 4, 0.1);
    box-shadow: 0 20px 40px rgba(134, 4, 4, 0.05);
}

.option-card .label { 
    font-size: 0.7rem; 
    font-weight: 800; 
    opacity: 0.4; 
    letter-spacing: 1px; 
    margin-bottom: 1rem; 
    display: block;
}
.option-card h3 { 
    font-size: 2.25rem; 
    font-weight: 700; 
    max-width: 300px; 
    line-height: 1.2; 
}

/* --- HERO TITLE WORD ANIMATION --- */
.hero-title {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.3em; 
    overflow: hidden;
    font-size: clamp(2.5rem, 7.5vw, 9rem); 
    align-items: baseline !important; 
}

.word-map {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.1em; 
    padding-right: 0.2em; 
    padding-left: 0.05em;
    padding-top: 0.15em;
    margin-right: -0.12em; 
}

.word-inner {
    display: inline-block;
    transform: translateY(130%); 
    will-change: transform;
    transition: color 0.4s ease;
}

.word-inner.tm {
    position: relative;
    top: -0.01em; 
}

.tm { color: var(--maroon) !important; font-family: "playfair-display", serif; font-style: italic !important; }
.tw { 
    color: #000000 !important; 
    font-family: "neue-haas-grotesk-display" !important; 
    font-style: normal !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.1); 
} 

.option-card {
    opacity: 0;
    transform: translateY(40px);
}

.arrow-box {
    width: 60px; height: 100%; 
    background: #eee; 
    border-radius: 20px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.5rem; 
    transition: 0.3s ease;
}
.option-card:hover .arrow-box { background: var(--maroon); color: white; }

/* --- FORM OVERLAY SYSTEM --- */
.form-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000; display: none; align-items: center; justify-content: center;
}

.overlay-close-area { 
    position: absolute; width: 100%; height: 100%; 
    background: rgba(0,0,0,0.1); 
    backdrop-filter: blur(30px); 
}

.close-x {
    position: absolute; left: 3rem; top: 50%; transform: translateY(-50%);
    width: 60px; height: 60px; background: rgba(255, 255, 255, 0.226); border: none; border-radius: 20px;
    font-size: 1.2rem; cursor: pointer; z-index: 10; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.close-x:hover { background: white; }

.dialogue-window {
    width: 90%; max-width: 1200px; height: 700px;
    background: white; border-radius: 40px; display: flex;
    overflow: hidden; position: relative; 
    box-shadow: 0 50px 100px rgba(0,0,0,0.1);
}

/* Side Progress Bars */
.step-bar {
    width: 80px; background: #f9f9f9; border-right: 1px solid #eee;
    display: flex; flex-direction: column; align-items: center;
    padding: 2rem 0; cursor: pointer; transition: 0.3s;
}
.step-bar:hover { background: #f0f0f0; }

.step-dot {
    width: 30px; height: 30px; background: #ddd; color: white;
    border-radius: 50%; display: flex; align-items: center; 
    justify-content: center; font-size: 0.8rem;
}
.completed-bar .step-dot { background: var(--maroon); }

.bar-txt { 
    writing-mode: vertical-rl; margin-top: auto; 
    font-size: 0.7rem; font-weight: 800; letter-spacing: 2px; opacity: 0.3; 
}

/* Panels & Steps */
.step-panel { flex: 1; padding: 5rem; display: none; flex-direction: column; }
.step-panel.active { display: flex; }

.panel-head { display: flex; gap: 2rem; margin-bottom: 4rem; align-items: flex-start; }
.panel-head .num { font-family: 'Agdasima'; font-size: 4rem; color: #eee; line-height: 1; }
.panel-head p { font-size: 1.5rem; color: #444; padding-top: 10px; }

/* Form Elements */
.field { margin-bottom: 2.5rem; border-bottom: 1px solid #eee; position: relative; }
.field input, .field textarea {
    width: 100%; border: none; padding: 1rem 0; font-size: 2rem;
    font-family: 'Manrope'; outline: none; background: transparent;
}
.field label { position: absolute; bottom: -15px; left: 0; font-size: 0.6rem; font-weight: 800; color: #aaa; }
.input-row { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }

/* Custom Native File Input Refinements */
.file-field-wrapper input[type="file"] {
    font-size: 1.1rem !important;
    padding: 1.5rem 0 0.5rem !important;
    cursor: pointer;
}
.file-field-wrapper input[type="file"]::file-selector-button {
    background: #f0f0f0;
    border: 1px solid #eee;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    margin-right: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.3s;
    cursor: pointer;
}
.file-field-wrapper input[type="file"]::file-selector-button:hover {
    background: var(--dark);
    color: white;
}

/* Navigation Buttons */
.nav-btn {
    align-self: flex-end; margin-top: auto; 
    padding: 1rem 1.5rem 1rem 2.5rem;
    border-radius: 60px; border: 1px solid #eee; background: #fdfdfd;
    font-weight: 800; cursor: pointer; transition: 0.3s;
    display: flex; align-items: center; gap: 15px;
}

.circle-icon {
    width: 40px; height: 40px; background: #eee;
    color: var(--dark); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: 0.3s ease;
}

.nav-btn:hover { background: var(--dark); color: white; }
.nav-btn:hover .circle-icon { transform: translateX(5px); background: white; color: var(--dark); }

.submit-style { background: var(--maroon); color: white; border: none; }
.submit-style .circle-icon { background: rgba(255,255,255,0.2); color: white; }

/* Choice Cards */
.choice-grid { display: grid; gap: 1rem; }
.choice-card input { display: none; }
.choice-content {
    padding: 2rem; border: 1px solid #eee; border-radius: 20px;
    font-size: 1.5rem; font-weight: 700; cursor: pointer; transition: 0.3s;
}
.choice-card input:checked + .choice-content { background: var(--maroon); color: white; border-color: var(--maroon); }

/* --- SUCCESS SCREEN --- */
#step-success { text-align: center; justify-content: center; align-items: center; }
.success-content { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; }
.success-content h2 { font-size: 2.5rem; line-height: 1.1; max-width: 600px; }

.check-circle {
    width: 60px; height: 60px; background: maroon; color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem; margin-bottom: 1rem;
}
.success-btn { background: #ffb9b9a6; border: none; align-self: center; color: black; }

/* ==========================================================================
   ENHANCED CONTACT RESPONSIVENESS PATCH (4 STEPS BALANCED FLOW)
   ========================================================================== */
@media (max-width: 1024px) {
    .contact-container { padding: 140px 2rem 80px !important; }
    .contact-options { grid-template-columns: repeat(2, 1fr) !important; gap: 1.25rem !important; }
    .dialogue-window { height: 80vh !important; }
    .step-panel { padding: 3.5rem !important; }
}

@media (max-width: 768px) {
    .contact-container { padding: 110px 1.5rem 60px !important; }
    .hero-title { margin-top: 2rem !important; margin-bottom: 3rem !important; }
    .contact-options { 
        grid-template-columns: 1fr !important; 
        gap: 1.25rem !important;
        max-width: 480px;      
        margin: 0 auto;        
        width: 100%;
    }

    .option-card { padding: 2.5rem 2rem !important; border-radius: 24px !important; }
    .option-card h3 { font-size: 1.8rem !important; }

    /* FIXED MOBILE INTERFACE: Redesigned grid structure allocating 4 precise partitions */
    .dialogue-window { 
        display: grid !important;
        grid-template-rows: 60px 1fr !important;       
        grid-template-columns: repeat(4, 1fr) !important; 
        height: 80vh !important; 
        max-height: 600px;
        width: 95% !important;
        border-radius: 24px !important;
        flex-direction: unsets !important; 
    }

    #bar-1 { grid-row: 1 !important; grid-column: 1 !important; border-right: 1px solid #eee !important; border-bottom: 1px solid #eee !important; }
    #bar-2 { grid-row: 1 !important; grid-column: 2 !important; border-right: 1px solid #eee !important; border-bottom: 1px solid #eee !important; }
    #bar-3 { grid-row: 1 !important; grid-column: 3 !important; border-right: 1px solid #eee !important; border-bottom: 1px solid #eee !important; }
    #bar-4 { grid-row: 1 !important; grid-column: 4 !important; border-bottom: 1px solid #eee !important; }

    .step-bar {
        width: 100% !important;
        height: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        padding: 0 0.25rem !important;
        background: #fdfdfd !important;
        border-right: none;
    }

    .step-dot {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.7rem !important;
        flex-shrink: 0;
    }

    .bar-txt { 
        writing-mode: horizontal-tb !important; 
        margin-top: 0 !important; 
        font-size: 0.6rem !important;
        letter-spacing: 0.3px !important;
        display: inline-block !important;
    }

    .step-panel {
        grid-row: 2 !important;
        grid-column: 1 / span 4 !important; 
        padding: 2.5rem 1.5rem !important; 
        height: 100% !important;
        box-sizing: border-box !important;
        overflow-y: auto;                  
    }

    .panel-head { margin-bottom: 2rem !important; gap: 1rem !important; }
    .panel-head .num { font-size: 2.5rem !important; }
    .panel-head p { font-size: 1.1rem !important; padding-top: 4px !important; }
    .field { margin-bottom: 1.75rem !important; }
    .field input, .field textarea { font-size: 1.25rem !important; padding: 0.5rem 0 !important; }
    .input-row { grid-template-columns: 1fr !important; gap: 1.25rem !important; }
    .choice-content { padding: 1.25rem !important; font-size: 1.1rem !important; }
    .nav-btn { margin-top: auto !important; padding: 0.75rem 1.2rem 0.75rem 1.8rem !important; }

    .close-x { 
        position: absolute !important;
        top: 20px !important;
        right: 20px !important;
        left: auto !important;
        bottom: auto !important;
        width: 44px !important;
        height: 44px !important;
        border-radius: 50% !important;
        background: #ffffff !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
        z-index: 2100 !important;
        transform: none !important;
    }
}

@media (max-width: 390px) {
    .bar-txt { display: none !important; }
    .step-bar { justify-content: center !important; }
    .step-panel { padding: 2rem 1rem !important; }
    .success-content h2 { font-size: 1.8rem; }
}