/* ==========================================================
   MIODOMAIN — DEMO REQUEST
========================================================== */

:root {
    --demo-bg: #09090b;
    --demo-panel: #111113;
    --demo-panel-2: #151518;
    --demo-border: #29292f;
    --demo-border-soft: #202026;
    --demo-text: #eeeeef;
    --demo-muted: #777780;
    --demo-dim: #55555e;
    --demo-accent: #ffffff;
}


/* ==========================================================
   PAGE
========================================================== */

.demo-page {
    min-height: 100vh;

    background: var(--demo-bg);

    color: var(--demo-text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    padding: 0 20px;
}


/* ==========================================================
   HEADER
========================================================== */

.demo-header {
    max-width: 1000px;

    margin: auto;

    padding: 28px 0 20px;

    border-bottom: 1px solid var(--demo-border-soft);
}


.demo-brand {
    display: flex;

    align-items: baseline;

    gap: 12px;
}


.demo-brand-main {
    color: #ffffff;

    font-size: 18px;

    font-weight: 800;

    letter-spacing: -.04em;
}


.demo-brand-main span {
    color: #777780;
}


.demo-brand-sub {
    color: #55555e;

    font-size: 9px;

    letter-spacing: .08em;

    text-transform: uppercase;
}


/* ==========================================================
   HERO
========================================================== */

.demo-hero {
    max-width: 800px;

    margin: auto;

    padding: 65px 0 40px;

    text-align: center;
}


.demo-eyebrow {
    margin: 0 0 10px;

    color: #777780;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .14em;

    text-transform: uppercase;
}


.demo-hero h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(
        34px,
        6vw,
        58px
    );

    line-height: 1.02;

    letter-spacing: -.055em;
}


.demo-hero h1 span {
    color: #777780;
}


.demo-hero-text {
    max-width: 600px;

    margin: 20px auto 0;

    color: #777780;

    font-size: 11px;

    line-height: 1.8;
}


/* ==========================================================
   FORM
========================================================== */

.demo-form {
    max-width: 1000px;

    margin: auto;
}


.demo-section {
    margin-bottom: 16px;

    padding: 28px;

    background: var(--demo-panel);

    border: 1px solid var(--demo-border-soft);

    border-radius: 14px;
}


.demo-section-heading {
    display: flex;

    align-items: flex-start;

    gap: 13px;

    margin-bottom: 24px;
}


.demo-section-number {
    display: flex;

    align-items: center;

    justify-content: center;

    width: 30px;
    height: 30px;

    flex-shrink: 0;

    background: #18191e;

    border: 1px solid var(--demo-border);

    border-radius: 8px;

    color: #777780;

    font-size: 8px;

    font-weight: 800;
}


.demo-section-heading h2 {
    margin: 0 0 5px;

    color: #eeeeef;

    font-size: 15px;

    letter-spacing: -.02em;
}


.demo-section-heading p {
    margin: 0;

    color: #5f5f68;

    font-size: 9px;
}


/* ==========================================================
   GRID
========================================================== */

.demo-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(
                0,
                1fr
            )
        );

    gap: 15px;
}


.demo-full {
    grid-column: 1 / -1;
}


/* ==========================================================
   FIELDS
========================================================== */

.demo-field {
    min-width: 0;
}


.demo-field label {
    display: block;

    margin-bottom: 7px;

    color: #92929a;

    font-size: 9px;

    font-weight: 600;
}


.demo-field label span,
.demo-confirmation strong {
    color: #d1d1d5;
}


.demo-field input,
.demo-field select,
.demo-field textarea {
    width: 100%;

    box-sizing: border-box;

    background: #0d0d0f;

    border: 1px solid var(--demo-border);

    border-radius: 8px;

    outline: none;

    color: #dddddf;

    font-family: inherit;

    font-size: 10px;

    transition:
        border-color .18s ease,
        background .18s ease;
}


.demo-field input,
.demo-field select {
    height: 40px;

    padding: 0 12px;
}


.demo-field textarea {
    min-height: 100px;

    padding: 11px 12px;

    resize: vertical;

    line-height: 1.55;
}


.demo-field input::placeholder,
.demo-field textarea::placeholder {
    color: #414149;
}


.demo-field input:focus,
.demo-field select:focus,
.demo-field textarea:focus {
    border-color: #4a4a54;

    background: #101012;
}


.demo-field select {
    appearance: auto;
}


.demo-field-spaced {
    margin-top: 17px;
}


/* ==========================================================
   CHECKBOX OPTIONS
========================================================== */

.demo-options {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(
                0,
                1fr
            )
        );

    gap: 8px;
}


.demo-check {
    position: relative;

    display: flex;

    align-items: center;

    gap: 8px;

    min-height: 38px;

    padding: 8px 10px;

    background: #0d0d0f;

    border: 1px solid #222228;

    border-radius: 8px;

    color: #898991;

    cursor: pointer;

    font-size: 9px;

    transition:
        border-color .18s ease,
        background .18s ease,
        color .18s ease;
}


.demo-check:hover {
    border-color: #35353d;

    color: #dddddf;
}


.demo-check input {
    width: 14px;
    height: 14px;

    margin: 0;

    accent-color: #dddddf;
}


.demo-check:has(input:checked) {
    background: #151518;

    border-color: #3b3b43;

    color: #eeeeef;
}


/* ==========================================================
   CONFIRMATION
========================================================== */

.demo-confirmation {
    display: flex;

    align-items: flex-start;

    gap: 10px;

    margin-top: 24px;

    padding: 13px;

    background: #0d0d0f;

    border: 1px solid #222228;

    border-radius: 9px;

    color: #777780;

    cursor: pointer;

    font-size: 9px;

    line-height: 1.6;
}


.demo-confirmation input {
    width: 14px;
    height: 14px;

    flex-shrink: 0;

    margin-top: 2px;

    accent-color: #dddddf;
}


/* ==========================================================
   HONEYPOT
========================================================== */

.demo-honeypot {
    position: absolute;

    left: -9999px;

    width: 1px;
    height: 1px;

    overflow: hidden;
}


/* ==========================================================
   MESSAGE
========================================================== */

.demo-form-message {
    min-height: 15px;

    margin-top: 12px;

    color: #ef4444;

    font-size: 9px;

    line-height: 1.5;

    text-align: center;
}


/* ==========================================================
   SUBMIT
========================================================== */

.demo-submit-btn {
    width: 100%;

    min-height: 48px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 12px;

    margin-top: 14px;

    background: #eeeeef;

    border: 1px solid #eeeeef;

    border-radius: 9px;

    color: #09090b;

    cursor: pointer;

    font-family: inherit;

    font-size: 10px;

    font-weight: 800;

    transition:
        opacity .18s ease,
        transform .18s ease;
}


.demo-submit-btn:hover {
    opacity: .9;

    transform: translateY(-1px);
}


.demo-submit-btn:disabled {
    opacity: .45;

    cursor: not-allowed;

    transform: none;
}


.demo-submit-icon {
    font-size: 15px;

    line-height: 1;
}


/* ==========================================================
   SUCCESS
========================================================== */

.demo-success {
    max-width: 600px;

    margin: 80px auto;

    padding: 50px 30px;

    background: var(--demo-panel);

    border: 1px solid var(--demo-border);

    border-radius: 15px;

    text-align: center;
}


.demo-success-icon {
    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;

    justify-content: center;

    margin: 0 auto 18px;

    background: #18191e;

    border: 1px solid #33333b;

    border-radius: 50%;

    color: #eeeeef;

    font-size: 20px;

    font-weight: 700;
}


.demo-success h2 {
    margin: 5px 0 10px;

    color: #ffffff;

    font-size: 25px;
}


.demo-success p:not(.demo-eyebrow) {
    margin: 6px 0;

    color: #777780;

    font-size: 10px;

    line-height: 1.6;
}


.demo-secondary-btn {
    margin-top: 20px;

    padding: 10px 15px;

    background: #18191e;

    border: 1px solid var(--demo-border);

    border-radius: 8px;

    color: #dddddf;

    cursor: pointer;

    font-family: inherit;

    font-size: 9px;
}


/* ==========================================================
   FOOTER
========================================================== */

.demo-footer {
    max-width: 1000px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 10px;

    margin: auto;

    padding: 25px 0 35px;

    color: #414149;

    font-size: 8px;

    border-top: 1px solid #18181c;
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 700px) {

    .demo-page {
        padding: 0 12px;
    }


    .demo-header {
        padding-top: 20px;
    }


    .demo-brand {
        flex-direction: column;

        align-items: flex-start;

        gap: 4px;
    }


    .demo-hero {
        padding: 45px 5px 30px;
    }


    .demo-hero h1 {
        font-size: 35px;
    }


    .demo-hero-text {
        font-size: 10px;
    }


    .demo-section {
        padding: 20px 16px;

        border-radius: 11px;
    }


    .demo-grid {
        grid-template-columns: 1fr;
    }


    .demo-full {
        grid-column: auto;
    }


    .demo-options {
        grid-template-columns: 1fr 1fr;
    }


    .demo-footer {
        flex-direction: column;

        align-items: flex-start;
    }

}


@media (max-width: 430px) {

    .demo-options {
        grid-template-columns: 1fr;
    }


    .demo-section-heading {
        gap: 9px;
    }


    .demo-section-number {
        width: 27px;
        height: 27px;
    }


    .demo-section-heading h2 {
        font-size: 13px;
    }

}