:root {
    --ink: #123348;
    --muted: #6f8390;
    --primary: #064a6b;
    --primary-deep: #06344d;
    --accent: #f4a30c;
    --surface: #ffffff;
    --soft: #eef4f7;
    --border: #dbe5ea;
    --success: #0f8a62;
    --danger: #cc3e4a;
    --shadow: 0 24px 70px rgba(5, 43, 64, .12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at 8% 0%, rgba(20, 132, 174, .17), transparent 31rem),
        radial-gradient(circle at 94% 20%, rgba(244, 163, 12, .14), transparent 28rem),
        #f4f7f9;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
}

button,
input {
    font: inherit;
}

.installer-shell {
    width: min(1220px, calc(100% - 40px));
    margin-inline: auto;
    padding-block: 28px 36px;
}

.installer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 4px 2px 26px;
}

.installer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    text-decoration: none;
}

.installer-brand > span {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px 4px 15px 4px;
    background: var(--accent);
    color: #fff;
    font-size: 1.45rem;
    font-weight: 900;
    box-shadow: 0 10px 25px rgba(244, 163, 12, .24);
}

.installer-brand div {
    display: grid;
}

.installer-brand strong {
    font-size: 1.35rem;
    letter-spacing: -.04em;
}

.installer-brand small {
    color: var(--muted);
    font-size: .72rem;
    font-weight: 700;
}

.installer-step {
    display: grid;
    grid-template-columns: 30px 42px 30px 42px 30px;
    align-items: center;
    justify-items: center;
    position: relative;
}

.installer-step span {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 900;
}

.installer-step span:last-of-type {
    background: var(--accent);
}

.installer-step i {
    width: 42px;
    height: 2px;
    background: #b9cbd5;
}

.installer-step small {
    position: absolute;
    top: 36px;
    right: 0;
    width: max-content;
    color: var(--muted);
    font-size: .65rem;
    font-weight: 700;
}

.installer-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 25px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary-deep), #087098);
    color: #fff;
    box-shadow: var(--shadow);
    padding: clamp(27px, 5vw, 52px);
}

.installer-intro > div {
    max-width: 710px;
}

.installer-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #ffd878;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.installer-intro h1 {
    margin: 0;
    font-size: clamp(2.15rem, 5vw, 4rem);
    letter-spacing: -.055em;
    line-height: 1.02;
}

.installer-intro p {
    margin: 18px 0 0;
    color: #d7e9f1;
    font-size: clamp(.92rem, 1.5vw, 1.05rem);
}

.installer-intro aside {
    min-width: 205px;
    display: grid;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    padding: 17px 20px;
}

.installer-intro aside strong {
    color: #ffd878;
}

.installer-intro aside span {
    color: #d7e9f1;
    font-size: .72rem;
}

.installer-alert {
    margin-bottom: 24px;
    border: 1px solid #efb6bc;
    border-radius: 16px;
    background: #fff0f2;
    color: #8e2530;
    padding: 17px 20px;
}

.installer-alert strong {
    display: block;
    margin-bottom: 5px;
}

.installer-alert ul {
    margin: 0;
    padding-left: 20px;
    font-size: .82rem;
}

.installer-layout {
    display: grid;
    grid-template-columns: 350px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.requirements-card,
.configuration-card {
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.requirements-card {
    position: sticky;
    top: 20px;
    overflow: hidden;
}

.card-heading {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    border-bottom: 1px solid var(--border);
    padding: 20px 23px;
}

.card-heading div {
    display: grid;
}

.card-heading span {
    color: var(--primary);
    font-size: .63rem;
    font-weight: 900;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.card-heading h2 {
    margin: 2px 0 0;
    font-size: 1.25rem;
    letter-spacing: -.035em;
}

.card-heading > b {
    border-radius: 999px;
    background: var(--soft);
    color: var(--muted);
    padding: 7px 10px;
    font-size: .62rem;
}

.card-heading > b.ready {
    background: #e5f7ef;
    color: var(--success);
}

.card-heading > b.blocked {
    background: #fff0f2;
    color: var(--danger);
}

.requirements-list {
    display: grid;
    padding: 8px 20px;
}

.requirements-list > div {
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr);
    gap: 11px;
    align-items: center;
    border-bottom: 1px solid #edf1f3;
    padding-block: 13px;
}

.requirements-list > div:last-child {
    border-bottom: 0;
}

.requirement-icon {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #e5f7ef;
    color: var(--success);
    font-size: .78rem;
    font-weight: 900;
}

.failed .requirement-icon {
    background: #fff0f2;
    color: var(--danger);
}

.requirements-list div div {
    display: grid;
}

.requirements-list strong {
    font-size: .81rem;
}

.requirements-list small {
    color: var(--muted);
    font-size: .66rem;
}

.requirements-note {
    margin: 0;
    border-top: 1px solid var(--border);
    background: #f9fbfc;
    color: var(--muted);
    padding: 16px 21px;
    font-size: .7rem;
}

.configuration-card {
    overflow: hidden;
}

.configuration-card form {
    display: grid;
    gap: 0;
    padding: 3px 27px 29px;
}

fieldset {
    min-width: 0;
    margin: 0;
    border: 0;
    border-bottom: 1px solid var(--border);
    padding: 27px 0 29px;
}

fieldset:disabled {
    opacity: .55;
}

legend {
    margin-bottom: 15px;
    color: var(--primary-deep);
    font-size: .82rem;
    font-weight: 900;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-grid label {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.form-grid label.wide {
    grid-column: 1 / -1;
}

.form-grid label > span {
    font-size: .7rem;
    font-weight: 800;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
input[type="password"] {
    width: 100%;
    min-height: 47px;
    border: 1px solid #cbd9e0;
    border-radius: 11px;
    background: #fbfcfd;
    color: var(--ink);
    outline: 0;
    padding: 10px 13px;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input:focus {
    border-color: #1680ac;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 128, 172, .11);
}

.form-grid label > small {
    color: var(--muted);
    font-size: .63rem;
}

.database-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 19px;
}

.database-options label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    border: 1px solid var(--border);
    border-radius: 13px;
    cursor: pointer;
    padding: 14px;
}

.database-options label:has(input:checked) {
    border-color: var(--primary);
    background: #eef8fb;
    box-shadow: 0 0 0 2px rgba(6, 74, 107, .08);
}

.database-options label.unavailable {
    cursor: not-allowed;
    opacity: .45;
}

.database-options input {
    margin-top: 4px;
    accent-color: var(--primary);
}

.database-options span {
    display: grid;
}

.database-options b {
    font-size: .8rem;
}

.database-options small {
    color: var(--muted);
    font-size: .64rem;
}

.mysql-fields[hidden] {
    display: none;
}

.demo-option {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    margin: 24px 0;
    border: 1px solid #f1d799;
    border-radius: 14px;
    background: #fffaed;
    cursor: pointer;
    padding: 16px;
}

.demo-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--primary);
}

.demo-option span {
    display: grid;
}

.demo-option b {
    font-size: .8rem;
}

.demo-option small {
    color: var(--muted);
    font-size: .66rem;
}

.install-button {
    min-height: 59px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), #08799e);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(6, 74, 107, .2);
    padding: 12px 20px;
}

.install-button span {
    font-weight: 900;
}

.install-button small {
    color: #d5eaf2;
    font-size: .65rem;
}

.install-button:disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: .55;
}

.installer-footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 22px;
    color: var(--muted);
    font-size: .66rem;
    padding-inline: 4px;
}

@media (max-width: 900px) {
    .installer-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .requirements-card {
        position: static;
    }

    .installer-intro aside {
        display: none;
    }
}

@media (max-width: 600px) {
    .installer-shell {
        width: calc(100% - 22px);
        padding-top: 14px;
    }

    .installer-header {
        padding-bottom: 19px;
    }

    .installer-step {
        grid-template-columns: 24px 19px 24px 19px 24px;
    }

    .installer-step span {
        width: 24px;
        height: 24px;
        font-size: .62rem;
    }

    .installer-step i {
        width: 19px;
    }

    .installer-step small {
        display: none;
    }

    .installer-intro {
        border-radius: 18px;
        padding: 28px 22px;
    }

    .installer-intro h1 {
        font-size: 2.35rem;
    }

    .requirements-card,
    .configuration-card {
        border-radius: 17px;
    }

    .card-heading {
        min-height: 80px;
        padding: 17px;
    }

    .card-heading > b {
        display: none;
    }

    .configuration-card form {
        padding-inline: 18px;
    }

    .form-grid,
    .database-options {
        grid-template-columns: minmax(0, 1fr);
    }

    .form-grid label.wide {
        grid-column: auto;
    }

    .install-button {
        display: grid;
        justify-content: center;
        text-align: center;
    }

    .installer-footer {
        display: grid;
        text-align: center;
    }
}
