/* ==========================================================
   MIODOMAIN — CUSTOMER SUPPORT PAGE
========================================================== */

:root {

    --support-bg: #09090b;
    --support-panel: #111113;
    --support-panel-2: #151518;
    --support-border: #27272c;
    --support-border-light: #202024;

    --support-text: #f4f4f5;
    --support-muted: #8a8a93;
    --support-dim: #5c5c65;

    --support-primary: #2563eb;

}


/* ==========================================================
   RESET
========================================================== */

*,
*::before,
*::after {

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    margin: 0;

    background: var(--support-bg);

    color: var(--support-text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    -webkit-font-smoothing: antialiased;

}


/* ==========================================================
   PAGE
========================================================== */

.support-page {

    width: min(
        100%,
        1180px
    );

    min-height: 100vh;

    margin: 0 auto;

    padding:
        0
        24px
        35px;

}


/* ==========================================================
   TOPBAR
========================================================== */

.support-topbar {

    height: 72px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom: 1px solid var(--support-border-light);

}


.support-logo {

    color: #ffffff;

    font-size: 19px;

    font-weight: 800;

    letter-spacing: -.05em;

    text-decoration: none;

}


.support-logo span {

    color: var(--support-primary);

}


.support-back-link {

    display: inline-flex;

    align-items: center;

    gap: 6px;

    color: var(--support-muted);

    font-size: 9px;

    font-weight: 600;

    text-decoration: none;

}


.support-back-link:hover {

    color: #ffffff;

}


.support-back-link svg {

    width: 14px;

    height: 14px;

}


/* ==========================================================
   HERO
========================================================== */

.support-hero {

    max-width: 720px;

    margin: 0 auto;

    padding:
        70px
        0
        42px;

    text-align: center;

}


.support-eyebrow {

    display: inline-block;

    margin-bottom: 9px;

    color: #64646d;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .13em;

}


.support-hero h1 {

    margin: 0;

    color: #ffffff;

    font-size: clamp(
        34px,
        6vw,
        56px
    );

    line-height: 1.05;

    letter-spacing: -.055em;

}


.support-hero p {

    max-width: 570px;

    margin:
        17px
        auto
        0;

    color: var(--support-muted);

    font-size: 11px;

    line-height: 1.8;

}


/* ==========================================================
   SUPPORT OPTIONS
========================================================== */

.support-options {

    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 13px;

}


.support-card {

    min-height: 320px;

    display: flex;

    flex-direction: column;

    padding: 22px;

    background: var(--support-panel);

    border: 1px solid var(--support-border);

    border-radius: 14px;

    transition:
        transform .18s ease,
        border-color .18s ease,
        background .18s ease;

}


.support-card:hover {

    transform: translateY(-2px);

    background: #131316;

    border-color: #35353c;

}


.support-icon {

    width: 43px;
    height: 43px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 20px;

    background: var(--support-panel-2);

    border: 1px solid #2b2b31;

    border-radius: 10px;

    color: #c8c8cd;

}


.support-icon svg {

    width: 18px;
    height: 18px;

}


.support-card-label {

    margin-bottom: 7px;

    color: #5d5d65;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .09em;

}


.support-card h2 {

    margin: 0 0 9px;

    color: #eeeeef;

    font-size: 16px;

    letter-spacing: -.025em;

}


.support-card p {

    margin: 0;

    color: #777780;

    font-size: 9px;

    line-height: 1.7;

}


.support-action {

    width: 100%;

    min-height: 40px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin-top: auto;

    padding:
        0
        12px;

    background: #18191d;

    border: 1px solid #2b2c32;

    border-radius: 8px;

    color: #c2c2c8;

    cursor: pointer;

    font-family: inherit;

    font-size: 8px;

    font-weight: 700;

}


.support-action:hover {

    background: #202126;

    border-color: #414149;

    color: #ffffff;

}


.support-action.primary {

    background: #eeeeef;

    border-color: #eeeeef;

    color: #09090b;

}


.support-action.primary:hover {

    opacity: .9;

}


.support-action svg {

    width: 13px;
    height: 13px;

}


/* ==========================================================
   INFO NOTE
========================================================== */

.support-note {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-top: 14px;

    padding:
        15px
        17px;

    background: var(--support-panel);

    border: 1px solid var(--support-border-light);

    border-radius: 11px;

}


.support-note-icon {

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #18191d;

    border: 1px solid #292a30;

    border-radius: 8px;

    color: #777780;

}


.support-note-icon svg {

    width: 15px;
    height: 15px;

}


.support-note h3 {

    margin: 0 0 4px;

    color: #dddddf;

    font-size: 10px;

}


.support-note p {

    margin: 0;

    color: #63636b;

    font-size: 8px;

    line-height: 1.55;

}


/* ==========================================================
   FOOTER
========================================================== */

.support-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-top: 55px;

    padding-top: 20px;

    border-top: 1px solid var(--support-border-light);

}


.support-footer div {

    display: flex;

    flex-direction: column;

    gap: 3px;

}


.support-footer strong {

    color: #dddddf;

    font-size: 10px;

}


.support-footer span {

    color: #4e4e56;

    font-size: 7px;

}


.support-footer > a {

    color: #5f5f67;

    font-size: 8px;

    text-decoration: none;

}


.support-footer > a:hover {

    color: #ffffff;

}


/* ==========================================================
   CALLBACK MODAL
========================================================== */

.callback-modal {

    position: fixed;

    inset: 0;

    z-index: 5000;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 18px;

}


.callback-modal.open {

    display: flex;

}


.callback-overlay {

    position: absolute;

    inset: 0;

    background:
        rgba(
            0,
            0,
            0,
            .74
        );

    backdrop-filter: blur(5px);

}


.callback-box {

    position: relative;

    z-index: 1;

    width: min(
        100%,
        470px
    );

    max-height:
        calc(
            100vh - 36px
        );

    overflow-y: auto;

    padding: 23px;

    background: #111113;

    border: 1px solid #303038;

    border-radius: 14px;

    box-shadow:
        0
        25px
        80px
        rgba(
            0,
            0,
            0,
            .55
        );

}


/* ==========================================================
   CLOSE
========================================================== */

.callback-close {

    position: absolute;

    top: 12px;

    right: 12px;

    width: 31px;

    height: 31px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #18191d;

    border: 1px solid #292a30;

    border-radius: 7px;

    color: #777780;

    cursor: pointer;

}


.callback-close:hover {

    color: #ffffff;

    border-color: #414149;

}


.callback-close svg {

    width: 14px;

    height: 14px;

}


/* ==========================================================
   MODAL HEADER
========================================================== */

.callback-header {

    display: flex;

    align-items: flex-start;

    gap: 11px;

    padding-right: 38px;

    margin-bottom: 20px;

}


.callback-header-icon {

    width: 39px;

    height: 39px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    background: #18191d;

    border: 1px solid #2b2c32;

    border-radius: 9px;

    color: #dddddf;

}


.callback-header-icon svg {

    width: 16px;

    height: 16px;

}


.callback-header > div:last-child span {

    display: block;

    margin-bottom: 4px;

    color: #5e5e66;

    font-size: 7px;

    font-weight: 800;

    letter-spacing: .08em;

}


.callback-header h2 {

    margin: 0 0 5px;

    color: #eeeeef;

    font-size: 17px;

}


.callback-header p {

    margin: 0;

    color: #65656d;

    font-size: 8px;

    line-height: 1.5;

}


/* ==========================================================
   CALLBACK FORM
========================================================== */

#callbackForm {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


.callback-field label {

    display: block;

    margin-bottom: 6px;

    color: #92929a;

    font-size: 8px;

    font-weight: 600;

}


.callback-field input,
.callback-field textarea,
.callback-field select {

    width: 100%;

    box-sizing: border-box;

    background: #0d0d0f;

    border: 1px solid #29292f;

    border-radius: 7px;

    outline: none;

    color: #dddddf;

    font-family: inherit;

    font-size: 9px;

}


.callback-field input,
.callback-field select {

    height: 40px;

    padding:
        0
        11px;

}


.callback-field textarea {

    min-height: 94px;

    padding:
        10px
        11px;

    resize: vertical;

    line-height: 1.55;

}


.callback-field input::placeholder,
.callback-field textarea::placeholder {

    color: #44444c;

}


.callback-field input:focus,
.callback-field textarea:focus,
.callback-field select:focus {

    border-color: #45454e;

    background: #101012;

}


.callback-error {

    min-height: 13px;

    color: #ef4444;

    font-size: 8px;

    line-height: 1.4;

}


.callback-submit {

    min-height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    background: #eeeeef;

    border: 1px solid #eeeeef;

    border-radius: 7px;

    color: #09090b;

    cursor: pointer;

    font-family: inherit;

    font-size: 8px;

    font-weight: 800;

}


.callback-submit:hover {

    opacity: .9;

}


.callback-submit:disabled {

    opacity: .45;

    cursor: not-allowed;

}


.callback-submit svg {

    width: 13px;

    height: 13px;

}


.callback-small-note {

    margin: 0;

    color: #4f4f57;

    font-size: 7px;

    line-height: 1.55;

    text-align: center;

}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 800px) {

    .support-options {

        grid-template-columns: 1fr;

    }


    .support-card {

        min-height: 250px;

    }

}


@media (max-width: 520px) {

    .support-page {

        padding:
            0
            14px
            25px;

    }


    .support-topbar {

        height: 64px;

    }


    .support-hero {

        padding:
            48px
            0
            32px;

    }


    .support-hero h1 {

        font-size: 34px;

    }


    .support-hero p {

        font-size: 10px;

    }


    .support-card {

        padding: 18px;

    }


    .support-note {

        align-items: flex-start;

    }


    .support-footer {

        align-items: flex-start;

        flex-direction: column;

    }


    .callback-box {

        max-height:
            calc(
                100vh - 20px
            );

        padding: 19px;

    }

}