:root {
    --forest: #153f31;
    --forest-dark: #102f25;
    --lime: #d7f36a;
    --paper: #f7f6fb;
    --ink: #18251e;
    --muted: #778078;
    --line: #e4e5eb;
    --purple: #7041a6;
    --display: 'Barlow Condensed', sans-serif;
    --body: 'DM Sans', sans-serif
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--paper);
    font-family: var(--body);
    color: var(--ink);
    font-size: 14px
}

.topbar {
    height: 82px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(5vw, 24px)
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    color: var(--forest)
}

.brand img {
    width: 51px;
    height: 51px;
    object-fit: contain;
    background: #f7f7f1
}

.brand span {
    display: flex;
    flex-direction: column
}

.brand b {
    font: 800 27px/.95 var(--display);
    letter-spacing: .03em
}

.brand small {
    font-size: 14px;
    letter-spacing: .16em;
    margin-top: 5px
}

.back-link {
    color: var(--forest);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px
}

.back-link:hover {
    text-decoration: underline
}

.page-wrap {
    width: min(1180px, 92%);
    margin: 45px auto 80px
}

.page-heading {
    margin-bottom: 27px
}

.eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .18em;
    color: var(--purple)
}

h1,
h2,
p {
    margin-top: 0
}

.page-heading h1 {
    font: 800 clamp(38px, 5vw, 64px)/.95 var(--display);
    letter-spacing: -.02em;
    color: var(--forest);
    margin: 13px 0 10px
}

.page-heading h1 em,
.success-card h2 em {
    font-style: normal;
    color: #8ca181
}

.page-heading>p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 22px
}

.progress {
    display: flex;
    align-items: center;
    gap: 7px;
    max-width: 390px;
    position: relative
}

.progress span {
    height: 4px;
    flex: 1;
    background: #e1e4dc;
    border-radius: 9px
}

.progress span.active {
    background: var(--forest)
}

.progress small {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--muted);
    margin-left: 8px;
    white-space: nowrap
}

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

form {
    min-width: 0
}

.panel,
.summary {
    background: #fff;
    border: 1px solid #e6e5ed;
    border-radius: 14px;
    box-shadow: 0 5px 22px #253d2d08
}

.panel {
    padding: 25px 27px;
    margin-bottom: 17px
}

.panel-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 23px
}

.panel-title h2 {
    font-size: 17px;
    color: var(--forest);
    margin: 0 0 5px;
    font-weight: 700
}

.panel-title p {
    font-size: 14px;
    color: #92989b;
    margin: 0
}

.step-no {
    font: 700 28px/.9 var(--display);
    color: #e1e8dc
}

.field {
    min-width: 0;
    margin-bottom: 18px
}

.field>label,
.label-line>label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #4d574f;
    margin-bottom: 8px
}

.field i,
.consent i {
    font-style: normal;
    color: #a34a42
}

.field input:not([type=radio]):not([type=checkbox]),
.field select,
.field textarea {
    display: block;
    width: 100%;
    min-width: 0;
    border: 1px solid #e0e3e7;
    border-radius: 7px;
    background: #fff;
    padding: 12px 12px;
    font: 400 12px var(--body);
    color: var(--ink);
    outline: none;
    transition: border .2s, box-shadow .2s
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #7d9a83;
    box-shadow: 0 0 0 3px #153f310d
}

.field textarea {
    resize: vertical
}

.field input::placeholder,
.field textarea::placeholder {
    color: #9ca2a1
}

.three-cols,
.two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px
}

.three-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.full {
    width: 100%
}

.phone-wrap {
    display: flex;
    border: 1px solid #e0e3e7;
    border-radius: 7px;
    overflow: hidden
}

.phone-wrap:focus-within {
    border-color: #7d9a83;
    box-shadow: 0 0 0 3px #153f310d
}

.phone-wrap span {
    padding: 12px;
    background: #f6f7f4;
    border-right: 1px solid #e0e3e7;
    font-size: 14px;
    color: #606960
}

.phone-wrap input {
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important
}

.panel-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 24px
}

.required-note,
.demo-note {
    font-size: 14px;
    color: #858d85
}

.btn {
    border: 0;
    border-radius: 7px;
    padding: 13px 17px;
    font: 700 10px var(--body);
    letter-spacing: .04em;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    transition: transform .2s, background .2s
}

.btn:hover {
    transform: translateY(-1px)
}

.primary {
    background: var(--purple);
    color: #fff
}

.primary:hover {
    background: #5b328b
}

.secondary {
    background: #eef1eb;
    color: var(--forest)
}

.helper {
    display: block;
    font-size: 14px;
    color: #858d85;
    margin-top: 7px
}

.choice-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap
}

.choice {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #4d574f
}

.choice input {
    accent-color: var(--purple);
    width: 15px;
    height: 15px;
    margin: 0
}

.choice span {
    display: inline-block
}

.shirt-sizes {
    gap: 13px
}

.blood-table {
    border: 1px solid #e1e4e2;
    border-radius: 6px;
    overflow: hidden
}

.blood-head,
.blood-row {
    display: grid;
    grid-template-columns: 1.25fr 1fr 1fr;
    align-items: center
}

.blood-head {
    background: #fafbf9;
    font-size: 14px;
    font-weight: 700;
    color: #566057
}

.blood-head span,
.blood-row>* {
    padding: 11px 12px;
    border-right: 1px solid #e1e4e2
}

.blood-head span:last-child,
.blood-row>*:last-child {
    border-right: 0
}

.blood-row {
    min-height: 36px;
    border-top: 1px solid #e7e9e6;
    font-size: 14px
}

.blood-row:nth-child(odd) {
    background: #f5f6f4
}

.blood-row b {
    font-weight: 500
}

.blood-row label {
    height: 100%;
    display: flex;
    align-items: center;
    cursor: pointer
}

.blood-row input {
    accent-color: var(--purple);
    width: 14px;
    height: 14px
}

.unknown-cell {
    grid-column: 2
}

.label-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline
}

.size-guide {
    font-size: 14px;
    color: var(--purple)
}

.notice {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    padding: 12px;
    background: #fff9e9;
    border: 1px solid #f4e7b6;
    border-radius: 7px;
    color: #a57913;
    font-size: 14px;
    line-height: 1.5;
    margin: 5px 0 15px
}

.notice span {
    font-size: 14px
}

.consent {
    display: flex;
    gap: 9px;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.6;
    color: #69736b;
    cursor: pointer
}

.consent input {
    accent-color: var(--purple);
    margin-top: 2px
}

.demo-note {
    text-align: center;
    margin: 15px 0 0
}

.summary {
    padding: 22px;
    position: sticky;
    top: 20px
}

.summary-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #707970
}

.summary-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    background: #eff4e9;
    color: var(--forest);
    font-size: 17px
}

.secure-note-icon {
    display: inline-flex;
    vertical-align: -2px;
    margin-right: 5px;
    color: var(--forest)
}

.summary-event {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line)
}

.summary-event img {
    width: 46px;
    height: 46px;
    object-fit: contain;
    background: #f4f5ef
}

.summary-event div {
    display: flex;
    flex-direction: column;
    gap: 5px
}

.summary-event b {
    font-size: 14px;
    color: var(--forest)
}

.summary-event small {
    font-size: 14px;
    letter-spacing: .1em;
    color: #8a9589
}

.summary-line {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid #eff0ed;
    font-size: 14px
}

.summary-line span {
    color: #7b847c
}

.summary-line b {
    text-align: right;
    color: #37473b;
    font-size: 14px
}

.summary-line .price {
    color: var(--purple)
}

.summary-total {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding-top: 17px;
    margin-top: 3px;
    color: var(--forest);
    font-size: 14px;
    font-weight: 700
}

.summary-total b {
    color: var(--purple);
    text-align: right
}

.summary-foot {
    font-size: 14px;
    line-height: 1.7;
    color: #858d85;
    margin: 17px 0
}

.secure-note {
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: #768278
}

.form-alert {
    padding: 12px;
    background: #fff0ed;
    color: #9c3429;
    border: 1px solid #f1c9c2;
    border-radius: 7px;
    margin-bottom: 15px;
    font-size: 14px
}

.field-error {
    display: block;
    color: #a34a42;
    font-size: 13px;
    margin-top: 6px;
    line-height: 1.4
}

.payment-box {
    border: 1px solid #e2e6dd;
    background: #f7f8f4;
    border-radius: 10px;
    padding: 22px;
    text-align: center;
    margin: 16px 0
}

.payment-box .qr-image {
    width: min(280px, 80%);
    height: auto;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #e2e6dd
}

.qr-hint {
    font-size: 14px;
    color: #4d574f;
    line-height: 1.6;
    margin: 14px 0 6px
}

.qr-ref {
    font-size: 12px;
    color: #8a9589;
    word-break: break-all;
    margin: 0
}

.confirm-card {
    border: 1px solid #e6e5ed;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 16px
}

.confirm-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-bottom: 1px solid #eff0ed;
    font-size: 14px
}

.confirm-row:last-child {
    border-bottom: 0
}

.confirm-row span {
    color: #7b847c
}

.confirm-row b {
    color: #18251e;
    text-align: right
}

.confirm-row.highlight {
    background: #f4f8ee
}

.confirm-row.highlight b {
    font: 800 26px/1 var(--display);
    color: var(--forest)
}

.btn[disabled],
.btn:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none
}

.loading-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    animation: dr-spin .7s linear infinite;
    margin-right: 8px;
    vertical-align: -1px
}

@keyframes dr-spin {
    to {
        transform: rotate(360deg)
    }
}

.success-overlay {
    position: fixed;
    inset: 0;
    background: #0a241bd9;
    z-index: 10;
    display: grid;
    place-items: center;
    padding: 20px
}

.success-card {
    width: min(480px, 100%);
    background: #fff;
    padding: 42px;
    border-radius: 14px;
    text-align: center
}

.success-check {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--lime);
    color: var(--forest);
    font-size: 27px;
    margin: 0 auto 20px
}

.success-card h2 {
    font: 800 49px/.95 var(--display);
    color: var(--forest);
    margin: 16px 0
}

.success-card p {
    font-size: 14px;
    line-height: 1.8;
    color: #747d73;
    margin-bottom: 22px
}

[hidden] {
    display: none !important
}

@media(max-width:850px) {
    .layout {
        grid-template-columns: minmax(0, 1fr) 260px;
        gap: 15px
    }

    .panel {
        padding: 21px
    }

    .summary {
        padding: 18px
    }

    .three-cols {
        grid-template-columns: 1fr 1fr
    }

    .three-cols input:last-child {
        grid-column: 1/-1
    }
}

@media(max-width:680px) {
    .topbar {
        height: 72px;
        padding: 0 18px
    }

    .brand img {
        width: 43px;
        height: 43px
    }

    .brand b {
        font-size: 23px
    }

    .back-link {
        font-size: 14px
    }

    .page-wrap {
        width: calc(100% - 28px);
        margin: 28px auto 45px
    }

    .page-heading h1 {
        font-size: 43px
    }

    .layout {
        grid-template-columns: 1fr
    }

    .summary {
        position: static;
        grid-row: 1
    }

    .summary-foot {
        margin-bottom: 10px
    }

    .panel {
        padding: 19px 16px
    }

    .three-cols,
    .two-cols {
        grid-template-columns: 1fr;
        gap: 0
    }

    .three-cols input {
        margin-bottom: 9px
    }

    .three-cols input:last-child {
        grid-column: auto
    }

    .panel-title {
        margin-bottom: 20px
    }

    .progress {
        max-width: 100%
    }

    .progress small {
        font-size: 14px
    }

    .panel-actions {
        align-items: stretch
    }

    .panel-actions .btn {
        padding: 12px 10px
    }

    .required-note {
        max-width: 90px
    }

    .shirt-sizes {
        gap: 12px
    }

    .blood-head span,
    .blood-row>* {
        padding: 10px 8px
    }

    .summary {
        grid-row: auto
    }

    .success-card {
        padding: 30px 22px
    }
}

@media(prefers-reduced-motion:reduce) {
    * {
        scroll-behavior: auto !important;
        transition: none !important
    }
}