
/* ==========================================================
   MKTECHSUPPORT V2 — CONTACT PAGE
   File: assets/css/contact.css
   ========================================================== */

/* ----------------------------------------------------------
   1. PAGE VARIABLES
   ---------------------------------------------------------- */

.contact-page {
    --contact-primary: #1455d9;
    --contact-primary-dark: #0e43b0;
    --contact-navy: #0b1934;
    --contact-navy-light: #142b52;
    --contact-text: #334155;
    --contact-muted: #64748b;
    --contact-border: #e2e8f0;
    --contact-background: #f5f8fd;
    --contact-white: #ffffff;
    --contact-radius: 18px;
    --contact-shadow: 0 15px 45px rgba(15, 35, 70, 0.07);

    color: var(--contact-text);
}

.contact-page .contact-container {
    width: min(1160px, calc(100% - 40px));
    margin-inline: auto;
}

.contact-page .contact-container,
.contact-page .contact-container * {
    box-sizing: border-box;
}

/* ----------------------------------------------------------
   2. HERO SECTION
   ---------------------------------------------------------- */

.contact-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(65, 133, 255, 0.24),
            transparent 40%
        ),
        linear-gradient(
            135deg,
            #08162f 0%,
            #102c5d 55%,
            #1455d9 100%
        );
    color: #ffffff;
    padding: 105px 0 110px;
}

.contact-hero::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -140px;
    top: -180px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.contact-hero::after {
    content: "";
    position: absolute;
    width: 340px;
    height: 340px;
    right: 2%;
    bottom: -240px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 50%;
    pointer-events: none;
}

.contact-hero-content {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.contact-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    color: #a9ccff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.contact-eyebrow::before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 2px;
    background: #69a8ff;
}

.contact-hero h1 {
    max-width: 750px;
    margin: 0 0 24px;
    color: #ffffff;
    font-size: clamp(38px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.8px;
}

.contact-hero-description {
    max-width: 650px;
    margin: 0;
    color: #d8e6ff;
    font-size: 17px;
    line-height: 1.85;
}

.contact-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

/* ----------------------------------------------------------
   3. SHARED BUTTONS
   ---------------------------------------------------------- */

.contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-btn:hover {
    transform: translateY(-2px);
}

.contact-btn-primary {
    background: #2878f0;
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(0, 70, 190, 0.2);
}

.contact-btn-primary:hover {
    background: #1762d3;
    color: #ffffff;
}

.contact-btn-outline {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.45);
    color: #ffffff;
}

.contact-btn-outline:hover {
    background: rgba(255, 255, 255, 0.13);
    border-color: #ffffff;
    color: #ffffff;
}

.contact-btn-secondary {
    background: #eef4ff;
    color: var(--contact-primary);
    border-color: #d5e5ff;
}

.contact-btn-secondary:hover {
    background: #dceaff;
    color: var(--contact-primary-dark);
}

.contact-btn:focus-visible,
.contact-submit:focus-visible {
    outline: 3px solid #7eb5ff;
    outline-offset: 4px;
}

/* ----------------------------------------------------------
   4. HERO HIGHLIGHTS
   ---------------------------------------------------------- */

.contact-hero-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 25px;
    margin-top: 45px;
}

.contact-hero-highlights span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #e1ebff;
    font-size: 13px;
    font-weight: 600;
}

.contact-hero-highlights span::before {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6db6ff;
    box-shadow: 0 0 0 4px rgba(109, 182, 255, 0.12);
}

/* ----------------------------------------------------------
   5. CONTACT MAIN LAYOUT
   ---------------------------------------------------------- */

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(290px, 1fr);
    gap: 30px;
    align-items: start;
    padding-top: 70px;
    padding-bottom: 90px;
}

.contact-form-card,
.contact-details-card {
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--contact-border);
    border-radius: var(--contact-radius);
    padding: 38px;
    box-shadow: var(--contact-shadow);
}

.contact-form-card {
    scroll-margin-top: 110px;
}

/* ----------------------------------------------------------
   6. SECTION HEADINGS
   ---------------------------------------------------------- */

.contact-section-heading {
    margin-bottom: 30px;
}

.contact-section-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--contact-primary);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.contact-section-heading h2 {
    margin: 0 0 12px;
    color: var(--contact-navy);
    font-size: clamp(24px, 2.5vw, 30px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.contact-section-heading p {
    max-width: 560px;
    margin: 0;
    color: var(--contact-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ----------------------------------------------------------
   7. CONTACT FORM
   ---------------------------------------------------------- */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 18px;
}

.contact-field {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 9px;
}

.contact-field label {
    display: block;
    color: var(--contact-navy);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.contact-field label span[aria-hidden="true"] {
    color: #dc2626;
}

.contact-optional {
    margin-left: 5px;
    color: var(--contact-muted);
    font-size: 11px;
    font-weight: 500;
}

.contact-field input,
.contact-field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 14px 15px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.contact-field input {
    min-height: 50px;
}

.contact-field textarea {
    min-height: 165px;
    resize: vertical;
}

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.contact-field input:hover,
.contact-field textarea:hover {
    border-color: #94a3b8;
}

.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--contact-primary);
    box-shadow: 0 0 0 4px rgba(20, 85, 217, 0.11);
}

.contact-field input:disabled,
.contact-field textarea:disabled {
    background: #f1f5f9;
    cursor: not-allowed;
}

/* ----------------------------------------------------------
   8. FORM FOOTER AND SUBMIT
   ---------------------------------------------------------- */

.contact-form-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
    padding-top: 5px;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    min-height: 52px;
    padding: 15px 28px;
    border: 0;
    border-radius: 10px;
    background: var(--contact-primary);
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(20, 85, 217, 0.17);
    transition:
        background-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.contact-submit:hover {
    background: var(--contact-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(20, 85, 217, 0.23);
}

.contact-submit:active {
    transform: translateY(0);
}

.contact-form-note {
    max-width: 500px;
    margin: 0;
    color: var(--contact-muted);
    font-size: 12px;
    line-height: 1.7;
}

/* ----------------------------------------------------------
   9. SPAM PROTECTION FIELD
   ---------------------------------------------------------- */

.contact-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* ----------------------------------------------------------
   10. VALIDATION MESSAGES
   ---------------------------------------------------------- */

.contact-alert {
    padding: 17px 20px;
    margin-bottom: 25px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.7;
}

.contact-alert strong {
    display: block;
    margin-bottom: 7px;
}

.contact-alert ul {
    margin: 0;
    padding-left: 20px;
}

.contact-alert li + li {
    margin-top: 5px;
}

.contact-alert-error {
    background: #fff1f2;
    border-color: #fecdd3;
    color: #9f1239;
}

/* ----------------------------------------------------------
   11. CONTACT DETAILS
   ---------------------------------------------------------- */

.contact-detail-item {
    display: flex;
    gap: 14px;
    padding: 19px 0;
    border-bottom: 1px solid var(--contact-border);
}

.contact-detail-item:first-of-type {
    padding-top: 0;
}

.contact-detail-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    gap: 7px;
}

.contact-detail-label {
    color: var(--contact-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.7px;
    text-transform: uppercase;
}

.contact-detail-item a,
.contact-detail-value {
    color: var(--contact-navy);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.contact-detail-item a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-detail-item a:hover {
    color: var(--contact-primary);
    text-decoration: underline;
}

.contact-detail-empty {
    padding: 18px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #f0f6ff;
}

.contact-detail-empty p {
    margin: 0;
    color: #37557d;
    font-size: 13px;
    line-height: 1.8;
}

/* ----------------------------------------------------------
   12. BUSINESS LOCATIONS
   ---------------------------------------------------------- */

.contact-location-heading {
    margin-top: 35px;
    margin-bottom: 10px;
}

.contact-location-heading h3 {
    margin: 0 0 7px;
    color: var(--contact-navy);
    font-size: 20px;
    font-weight: 800;
}

.contact-location-heading p {
    margin: 0;
    color: var(--contact-muted);
    font-size: 13px;
    line-height: 1.7;
}

.contact-location {
    padding: 20px 0;
    border-bottom: 1px solid var(--contact-border);
}

.contact-location h4 {
    margin: 0 0 10px;
    color: var(--contact-navy);
    font-size: 15px;
    font-weight: 800;
}

.contact-location address {
    margin: 0 0 10px;
    color: var(--contact-text);
    font-size: 13px;
    font-style: normal;
    line-height: 1.8;
}

.contact-location p {
    margin: 7px 0;
    color: var(--contact-text);
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.contact-location a {
    color: var(--contact-primary);
    text-decoration: none;
}

.contact-location a:hover {
    text-decoration: underline;
}

.contact-location-notice {
    display: inline-block;
    margin-top: 8px;
    color: var(--contact-muted);
    font-size: 12px;
    line-height: 1.6;
}

/* ----------------------------------------------------------
   13. REPAIR HELP BOX
   ---------------------------------------------------------- */

.contact-help-box {
    margin-top: 30px;
    padding: 24px;
    border: 1px solid #dbeafe;
    border-radius: 14px;
    background: linear-gradient(
        135deg,
        #eff6ff 0%,
        #e6f0ff 100%
    );
}

.contact-help-box h3 {
    margin: 0 0 10px;
    color: var(--contact-navy);
    font-size: 17px;
    font-weight: 800;
}

.contact-help-box p {
    margin: 0 0 16px;
    color: var(--contact-text);
    font-size: 13px;
    line-height: 1.8;
}

.contact-help-box a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--contact-primary);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
    transition: gap 0.2s ease;
}

.contact-help-box a:hover {
    gap: 13px;
    text-decoration: underline;
}

/* ----------------------------------------------------------
   14. SUCCESS SECTION
   ---------------------------------------------------------- */

.contact-success-section {
    padding: 75px 0 95px;
    background: var(--contact-background);
}

.contact-success {
    max-width: 740px;
    margin: 0 auto;
    padding: 55px 45px;
    background: #ffffff;
    border: 1px solid var(--contact-border);
    border-radius: 20px;
    box-shadow: var(--contact-shadow);
    text-align: center;
}

.contact-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 78px;
    margin: 0 auto 25px;
    border-radius: 50%;
    background: #dcfce7;
    color: #15803d;
    font-size: 38px;
    font-weight: 800;
}

.contact-success h2 {
    margin: 0 0 18px;
    color: var(--contact-navy);
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    line-height: 1.3;
}

.contact-success-lead {
    margin: 0 0 10px;
    color: #15803d;
    font-size: 16px;
    font-weight: 700;
}

.contact-success p:not(.contact-success-lead) {
    max-width: 550px;
    margin: 0 auto;
    color: var(--contact-muted);
    font-size: 14px;
    line-height: 1.9;
}

.contact-success-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

/* ----------------------------------------------------------
   15. RESPONSIVE — TABLETS
   ---------------------------------------------------------- */

@media (max-width: 991px) {
    .contact-hero {
        padding: 85px 0 90px;
    }

    .contact-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 25px;
        padding-top: 50px;
        padding-bottom: 70px;
    }

    .contact-form-card,
    .contact-details-card {
        padding: 32px;
    }

    .contact-details-card {
        width: 100%;
    }
}

/* ----------------------------------------------------------
   16. RESPONSIVE — MOBILE
   ---------------------------------------------------------- */

@media (max-width: 600px) {
    .contact-page .contact-container {
        width: calc(100% - 30px);
    }

    .contact-hero {
        padding: 70px 0 75px;
    }

    .contact-hero h1 {
        font-size: clamp(34px, 9vw, 44px);
        letter-spacing: -1px;
    }

    .contact-hero-description {
        font-size: 15px;
        line-height: 1.8;
    }

    .contact-eyebrow {
        font-size: 10px;
        letter-spacing: 1.3px;
    }

    .contact-hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
        margin-top: 28px;
    }

    .contact-hero-actions .contact-btn {
        width: 100%;
    }

    .contact-hero-highlights {
        flex-direction: column;
        align-items: flex-start;
        gap: 13px;
        margin-top: 35px;
    }

    .contact-layout {
        padding-top: 35px;
        padding-bottom: 55px;
        gap: 20px;
    }

    .contact-form-card,
    .contact-details-card {
        padding: 25px 20px;
        border-radius: 14px;
    }

    .contact-section-heading {
        margin-bottom: 25px;
    }

    .contact-section-heading h2 {
        font-size: 25px;
    }

    .contact-form {
        gap: 18px;
    }

    .contact-form-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .contact-field input,
    .contact-field textarea {
        font-size: 16px;
    }

    .contact-submit {
        width: 100%;
    }

    .contact-help-box {
        padding: 20px;
    }

    .contact-success-section {
        padding: 40px 0 60px;
    }

    .contact-success {
        padding: 38px 22px;
        border-radius: 14px;
    }

    .contact-success-icon {
        width: 68px;
        height: 68px;
        font-size: 32px;
    }

    .contact-success-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-success-actions .contact-btn {
        width: 100%;
    }
}

/* ----------------------------------------------------------
   17. SMALL MOBILE DEVICES
   ---------------------------------------------------------- */

@media (max-width: 380px) {
    .contact-page .contact-container {
        width: calc(100% - 24px);
    }

    .contact-form-card,
    .contact-details-card {
        padding: 22px 16px;
    }

    .contact-hero h1 {
        font-size: 32px;
    }
}

/* ----------------------------------------------------------
   18. ACCESSIBILITY
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .contact-page *,
    .contact-page *::before,
    .contact-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
