/* ============================================================
   MX MDR CONTACT PAGE STYLES
============================================================ */
:root {
    --ink: #0d0f13;
    --paper: #ffffff;
    --font-body: "DM Sans", ui-sans-serif, system-ui, sans-serif;
    --font-nav: 'Inter', system-ui, sans-serif;
    --nav-height: 80px;
    --brand-orange: #ff6b35;
}

main {
    margin-top: var(--nav-height);
}

/* Hero Section */
.replica-hero {
    position: relative;
    width: 100%;
    height: 55vh;
    min-height: 400px;
    background-color: #2a2a2a;
    background-image: url('https://images.unsplash.com/photo-1581091226825-a6a2a5aee158?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    display: flex;
    align-items: center;
    justify-content: center;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8vw), 0 100%);
}

.replica-hero-title {
    color: #ffffff;
    font-family: var(--font-nav);
    font-size: clamp(2.5rem, 4vw, 4rem);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin: 0;
}

/* Split Info Section */
.replica-split-section {
    display: flex;
    width: 100%;
    min-height: 500px;
    clip-path: polygon(0 8vw, 100% 0, 100% 100%, 0 100%);
    margin-top: -6.5vw;
}

.replica-split-left {
    flex: 1;
    background-color: #464849;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: 10vw;
    padding-right: 60px;
    color: #ffffff;
}

.replica-welcome-title {
    font-family: var(--font-body);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 400;
    margin: 0 0 40px 0;
    color: #ffffff;
}

.replica-company-name {
    font-family: var(--font-nav);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 12px 0;
    letter-spacing: 0.5px;
}

.replica-address-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 400;
    line-height: 1.8;
    color: #e0e0e0;
    margin: 0;
}

.replica-split-right {
    flex: 1;
    background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?q=80&w=2070&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
    background-color: #e0e0e0;
}

/* Quick Links Section */
.replica-quick-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 80px 10vw;
    background: #ffffff;
}

.replica-quick-card {
    flex: 1;
    background-color: #f8f8f8;
    padding: 40px;
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.replica-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
}

.replica-quick-title {
    font-family: var(--font-body);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #222222;
}

.replica-quick-text {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #666666;
    line-height: 1.6;
    margin: 0 0 30px 0;
    flex-grow: 1;
}

.replica-quick-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--brand-orange);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.replica-quick-link:hover {
    color: #e85a26;
}

/* Locations Section with Video Backgrounds */
.replica-locations {
    position: relative;
    background-color: #0b0f19;
    padding: 100px 10vw 120px 10vw;
    color: #ffffff;
    overflow: hidden;
    min-height: 640px;
}

.locations-bg-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
}

.locations-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.locations-bg-video.active {
    opacity: 1;
    z-index: 2;
}

.locations-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0.45) 0%, rgba(10, 15, 26, 0.78) 100%);
    z-index: 2;
    pointer-events: none;
}

.replica-loc-header-container,
.replica-locations-grid {
    position: relative;
    z-index: 3;
}

.replica-loc-header-container {
    text-align: center;
    margin-bottom: 50px;
}

.replica-loc-overline {
    font-family: var(--font-nav);
    font-size: 0.8rem;
    font-weight: 800;
    color: #ff764d;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 12px 0;
    display: inline-block;
    background: rgba(255, 118, 77, 0.12);
    border: 1px solid rgba(255, 118, 77, 0.4);
    padding: 4px 18px;
    border-radius: 999px;
    backdrop-filter: blur(8px);
}

.replica-loc-maintitle {
    font-family: var(--font-nav);
    font-size: 2.6rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 0 14px 0;
    letter-spacing: 0.5px;
    color: #ffffff;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.replica-loc-desc {
    font-family: var(--font-body);
    font-size: 0.95rem;
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
    color: #e2e8f0;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.7);
}

.replica-locations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
    max-width: 1300px;
    margin: 0 auto;
}

@media (max-width: 1100px) {
    .replica-locations-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .replica-locations-grid {
        grid-template-columns: 1fr;
    }
}

.replica-loc-card {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    border-radius: 18px;
    padding: 32px 22px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.4s ease, 
                opacity 0.4s ease,
                background-color 0.4s ease;
    cursor: pointer;
    position: relative;
}

.replica-loc-code-badge {
    background: #0f172a;
    color: #ff764d;
    border: 1.5px solid #ff764d;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.15em;
    padding: 4px 14px;
    border-radius: 999px;
    margin-bottom: 14px;
    display: inline-block;
    box-shadow: 0 4px 12px rgba(255, 118, 77, 0.2);
    transition: all 0.3s ease;
}

.replica-loc-card:hover .replica-loc-code-badge,
.replica-loc-card.is-hovered .replica-loc-code-badge {
    background: #ff764d;
    color: #ffffff;
    border-color: #ff764d;
}

.replica-loc-card:hover,
.replica-loc-card.is-hovered {
    transform: translateY(-10px);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 118, 77, 0.4);
    border-color: #ff764d;
    background: #ffffff;
}

.replica-loc-card.is-dimmed {
    opacity: 0.65;
    transform: translateY(0);
}

.replica-loc-card-title {
    font-family: var(--font-nav);
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
    color: #0f172a;
}

.replica-loc-card-subtitle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #ff764d;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    display: block;
}

.replica-loc-card-text {
    font-family: var(--font-body);
    font-size: 0.82rem;
    line-height: 1.6;
    color: #475569;
    margin: 0 0 24px 0;
    flex-grow: 1;
}

.replica-loc-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.replica-loc-btn {
    background-color: #0f172a;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 9px 18px;
    text-decoration: none;
    border-radius: 8px;
    transition: background-color 0.2s ease, transform 0.2s ease;
    width: 100%;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.replica-loc-btn:hover {
    background-color: var(--brand-orange);
    color: #ffffff;
    transform: translateY(-1px);
}

.replica-loc-link {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #ff764d;
    text-decoration: none;
    letter-spacing: 0.08em;
    transition: color 0.2s ease, transform 0.2s ease;
}

.replica-loc-link:hover {
    color: #0f172a;
    text-decoration: underline;
}

/* Map Section & Interactive Search Panel */
.replica-map-section { 
    position: relative; 
    width: 100%; 
    height: 500px; 
    background-color: #e5e3df; 
}

.replica-map-iframe { 
    width: 100%; 
    height: 100%; 
    border: none; 
}

.replica-map-button {
    position: absolute; 
    top: 20px; 
    left: 20px; 
    background-color: #ffffff; 
    color: #000000;
    font-family: var(--font-nav); 
    font-size: 0.8rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    text-decoration: none;
    padding: 12px 24px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.15); 
    border-radius: 6px; 
    z-index: 10;
}

.replica-map-button-icon { 
    width: 18px; 
    height: 18px; 
    fill: #1a73e8; 
}

.map-search-panel {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 340px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    z-index: 10;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-family: var(--font-body);
}

.map-panel-title { 
    font-family: var(--font-nav); 
    font-size: 0.95rem; 
    font-weight: 700; 
    text-transform: uppercase; 
    color: #111111; 
    margin: 0; 
}

.map-panel-desc { 
    font-size: 0.82rem; 
    color: #555555; 
    margin: 0; 
    line-height: 1.4; 
}

.map-search-input-wrap { 
    position: relative; 
    width: 100%; 
    display: flex; 
    align-items: center; 
}

.map-panel-input {
    width: 100%; 
    height: 42px; 
    background: #ffffff; 
    border: 1px solid #dcdcdc; 
    border-radius: 8px;
    padding: 0 44px 0 14px; 
    font-size: 0.88rem; 
    color: #111111; 
    outline: none; 
    transition: border-color 0.2s, box-shadow 0.2s;
}

.map-panel-input:focus { 
    border-color: var(--brand-orange); 
    box-shadow: 0 0 0 2px rgba(255, 107, 53, 0.15); 
}

.map-panel-submit {
    position: absolute; 
    right: 4px; 
    top: 50%; 
    transform: translateY(-50%); 
    width: 34px; 
    height: 34px;
    background: transparent; 
    border: none; 
    cursor: pointer; 
    color: #444444; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    border-radius: 6px;
    transition: background-color 0.2s, color 0.2s;
}

.map-panel-submit:hover { 
    background: #f0f0f0; 
    color: var(--brand-orange); 
}

.map-panel-submit svg { 
    width: 16px; 
    height: 16px; 
    stroke-width: 2.2; 
}

.map-locations-list { 
    display: flex; 
    flex-direction: column; 
    gap: 8px; 
    max-height: 210px; 
    overflow-y: auto; 
    padding-right: 2px; 
}

.map-loc-item {
    background: #f8f9fa; 
    border: 1px solid #e5e5e5; 
    border-radius: 8px; 
    padding: 10px 12px; 
    text-align: left;
    cursor: pointer; 
    transition: all 0.2s ease; 
    display: flex; 
    flex-direction: column; 
    gap: 2px; 
    width: 100%;
}

.map-loc-item:hover, 
.map-loc-item.active { 
    background: #fff3ef; 
    border-color: var(--brand-orange); 
}

.map-loc-item .loc-name { 
    font-family: var(--font-nav); 
    font-size: 0.8rem; 
    font-weight: 700; 
    color: #111111; 
}

.map-loc-item .loc-addr { 
    font-size: 0.75rem; 
    color: #666666; 
}

/* Contact Form Section */
.replica-form-section {
    background-color: #ffffff;
    padding: 60px 10vw 80px 10vw;
    color: var(--ink);
}

.replica-form-heading {
    font-family: var(--font-nav);
    font-size: 1.8rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 35px 0;
    color: #222222;
}

.replica-form {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px; 
}

.form-row {
    display: flex;
    gap: 30px;
    width: 100%;
}

.form-col-group {
    flex: 1;
    display: flex;
    gap: 30px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: #666666;
    margin-bottom: 6px;
    font-weight: 500;
}

.form-group input, 
.form-group select {
    background: transparent;
    border: none;
    border-bottom: 1px solid #cccccc;
    color: #111111;
    font-family: var(--font-body);
    font-size: 0.95rem;
    padding: 6px 0;
    outline: none;
    width: 100%;
    border-radius: 0;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.2s ease;
}

.form-group input:focus, 
.form-group select:focus {
    border-bottom-color: #111111;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 12px;
    width: 7px;
    height: 7px;
    border-bottom: 2px solid #555555;
    border-right: 2px solid #555555;
    transform: rotate(45deg);
    pointer-events: none;
}

.form-group select option {
    background-color: #ffffff;
    color: #111111;
}

.replica-checkbox-container {
    display: flex;
    align-items: flex-start;
    position: relative;
    cursor: pointer;
    user-select: none;
    gap: 12px;
    margin-top: 5px;
}

.replica-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.replica-checkmark {
    height: 18px;
    width: 18px;
    background-color: #ffffff;
    border: 1px solid #777777;
    border-radius: 3px;
    flex-shrink: 0;
    position: relative;
    margin-top: 2px;
}

.replica-checkbox-container input:checked ~ .replica-checkmark {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

.replica-checkbox-container input:checked ~ .replica-checkmark:after {
    content: "";
    position: absolute;
    display: block;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 9px;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.replica-checkbox-text {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: #333333;
    line-height: 1.4;
}

.replica-checkbox-subtext {
    display: block;
    font-size: 0.78rem;
    color: #666666;
    margin-top: 2px;
}

.replica-checkbox-subtext a {
    color: var(--brand-orange); 
    text-decoration: underline;
}

.form-disclaimer {
    font-family: var(--font-body);
    font-size: 0.72rem;
    color: #777777;
    line-height: 1.5;
    max-width: 1000px;
    margin-top: 5px;
}

.captcha-box {
    margin-top: 10px;
    display: inline-block;
}

.replica-submit-btn {
    background-color: var(--brand-orange);
    color: #ffffff;
    font-family: var(--font-nav);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 12px 32px;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.replica-submit-btn:hover {
    background-color: #e85a26;
    transform: scale(1.03);
}

/* Newsletter Section */
.replica-newsletter-section {
    background-color: #efefef;
    padding: 80px 20px 140px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-top: 1px solid #f0f0f0;
}

.replica-newsletter-heading {
    font-family: var(--font-nav);
    font-size: clamp(2rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #000000;
    margin: 0 0 15px 0;
    letter-spacing: -0.5px;
}

.replica-newsletter-subheading {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #888888;
    margin: 0 0 30px 0;
    font-weight: 500;
}

.replica-newsletter-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 550px;
    width: 100%;
}

.replica-newsletter-input-wrapper {
    position: relative;
    flex: 1;
}

.replica-newsletter-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    stroke: #aaaaaa;
    fill: none;
    stroke-width: 2;
}

.replica-newsletter-input {
    width: 100%;
    padding: 12px 15px 12px 42px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: #333333;
    outline: none;
}

.replica-newsletter-input::placeholder {
    color: #aaaaaa;
}

.replica-newsletter-btn {
    background-color: #e87b58; 
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 0 25px;
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.replica-newsletter-btn:hover {
    background-color: #df6943;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .replica-split-section { 
        flex-direction: column; 
        clip-path: none; 
        margin-top: 0; 
    }
    .replica-hero { 
        clip-path: none; 
        height: 40vh; 
    }
    .replica-split-left { 
        padding: 60px 30px; 
    }
    .replica-split-right { 
        min-height: 350px; 
    }
    .replica-quick-links, 
    .replica-locations-grid { 
        flex-direction: column; 
    }
    .replica-quick-links, 
    .replica-locations { 
        padding: 60px 30px; 
    }
    .replica-map-section { 
        height: 600px; 
        display: flex;
        flex-direction: column;
    }
    .map-search-panel { 
        position: relative !important; 
        top: auto !important; 
        right: auto !important; 
        width: 100% !important; 
        border-radius: 0 !important; 
        box-shadow: none !important; 
    }
    .replica-form-section { 
        padding: 60px 30px; 
    }
    .form-row, 
    .form-col-group { 
        flex-direction: column; 
        gap: 25px; 
    }
    .form-group { 
        width: 100%; 
    }
}