/* ════════════════════════════════════════════════════════════
   Checkout wizard — Start Up package
   Bold minimal style: sharp corners, 2px borders, hover inversion
   ════════════════════════════════════════════════════════════ */

/* ── Payment status hero (success / cancel / failure) ──────── */
.checkout-hero { padding: clamp(64px, 10vw, 120px) var(--gutter); text-align: center; }
.checkout-hero__inner { max-width: 640px; margin: 0 auto; }
.checkout-hero__title {
    font-size: clamp(28px, 5vw, 44px);
    line-height: 1.05;
    margin: 20px 0 16px;
}
.checkout-hero__lede {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--muted); line-height: 1.65;
}

/* ── Intro (in form section, no hero) ──────────────────────── */
.checkout-intro {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}
.checkout-intro__title {
    font-size: clamp(24px, 3.4vw, 34px);
    line-height: 1.12;
    margin: 12px 0 16px;
}
.checkout-intro__lede {
    font-size: clamp(14px, 1.6vw, 16px);
    color: var(--muted);
    line-height: 1.6;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Progress bar ──────────────────────────────────────────── */
.checkout-progress {
    position: sticky;
    top: calc(63px + env(safe-area-inset-top, 0px));
    z-index: 50;
    background: var(--paper);
    border-bottom: 2px solid var(--ink);
    padding: 16px var(--gutter);
}
.checkout-progress__inner {
    max-width: var(--max);
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 0;
}
.checkout-progress__step {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.checkout-progress__num {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--line);
    background: var(--paper);
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s var(--ease);
}
.checkout-progress__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.2s var(--ease);
}
.checkout-progress__step.is-active .checkout-progress__num {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.checkout-progress__step.is-active .checkout-progress__label {
    color: var(--ink);
}
.checkout-progress__step.is-done .checkout-progress__num {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}
.checkout-progress__step.is-done .checkout-progress__num::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
.checkout-progress__step.is-done .checkout-progress__num-text { display: none; }
.checkout-progress__line {
    flex: 1;
    height: 2px;
    background: var(--line);
    margin: 0 12px;
    transition: background 0.2s var(--ease);
}
.checkout-progress__line.is-active {
    background: var(--ink);
}

/* ── Form section ──────────────────────────────────────────── */
.checkout-section {
    padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(64px, 8vw, 96px);
}
.checkout-form {
    max-width: 720px;
    margin: 0 auto;
}

/* ── Step ──────────────────────────────────────────────────── */
.checkout-step {
    display: none;
}
.checkout-step.is-active {
    display: block;
    animation: ckFadeIn 0.3s var(--ease);
}
@keyframes ckFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.checkout-step__title {
    font-size: clamp(20px, 2.6vw, 25px);
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.checkout-step__title i {
    font-size: 22px;
}
.checkout-step__desc {
    font-size: 14px;
    color: var(--muted);
    margin: 0 0 32px;
    line-height: 1.6;
}

/* ── Fields ────────────────────────────────────────────────── */
.checkout-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.checkout-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
}
.req { color: var(--red-text); }
.opt { color: var(--muted-2); font-weight: 400; text-transform: none; letter-spacing: 0; }

.checkout-input {
    width: 100%;
    padding: 14px 16px;
    min-height: 48px;
    border: 2px solid var(--ink);
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 14px;
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
    -webkit-appearance: none;
    appearance: none;
}
.checkout-input:focus {
    outline: none;
    border-color: var(--ink);
    box-shadow: 4px 4px 0 var(--ink);
}
.checkout-input.is-error { border-color: var(--red-text); background: var(--pale-red); }
.checkout-input.is-error:focus { box-shadow: 4px 4px 0 var(--red-text); }
.checkout-input::placeholder {
    color: var(--muted-2);
}
textarea.checkout-input {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.checkout-hint {
    font-size: 12px;
    color: var(--muted-2);
    line-height: 1.5;
}
.checkout-error {
    font-size: 12px;
    color: var(--red-text);
    font-weight: 600;
    min-height: 16px;
}

/* ── Domain row ────────────────────────────────────────────── */
.checkout-domain-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
}
.checkout-domain-check {
    white-space: nowrap;
}
.checkout-domain-status {
    font-size: 13px;
    font-weight: 600;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkout-domain-status.is-available {
    color: var(--green-text);
}
.checkout-domain-status.is-available::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
.checkout-domain-status.is-taken {
    color: var(--red-text);
}
.checkout-domain-status.is-taken::before {
    content: '\f00d';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
.checkout-domain-status.is-checking {
    color: var(--muted);
}

/* ── Row (2 columns) ───────────────────────────────────────── */
.checkout-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

/* ── Dropzone ──────────────────────────────────────────────── */
.checkout-dropzone {
    border: 2px dashed var(--ink);
    border-radius: 0;
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
    background: var(--bone-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.checkout-dropzone:hover,
.checkout-dropzone:focus-visible,
.checkout-dropzone.is-dragover {
    border-color: var(--ink);
    background: var(--bone);
    box-shadow: 4px 4px 0 var(--ink);
}
.checkout-dropzone--optional {
    border-style: dashed;
    border-color: var(--line);
}
.checkout-dropzone--optional:hover {
    border-color: var(--ink);
}
.checkout-dropzone__icon {
    font-size: 32px;
    color: var(--ink);
}
.checkout-dropzone__text {
    font-size: 14px;
    font-weight: 600;
    color: var(--ink);
}
.checkout-dropzone__hint {
    font-size: 12px;
    color: var(--muted);
}
.checkout-file-name {
    font-size: 13px;
    color: var(--green-text);
    font-weight: 600;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.checkout-file-name::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
}
.checkout-file-name:empty::before { content: ''; }

/* ── Summary ───────────────────────────────────────────────── */
.checkout-summary {
    border: 2px solid var(--ink);
    margin-bottom: 24px;
}
.checkout-summary__section {
    padding: 20px 24px;
    border-bottom: 2px solid var(--ink);
}
.checkout-summary__section:last-child {
    border-bottom: none;
}
.checkout-summary__heading {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 12px;
}
.checkout-summary__row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    font-size: 14px;
    padding: 4px 0;
}
.checkout-summary__key {
    color: var(--muted);
    flex-shrink: 0;
    min-width: 120px;
}
.checkout-summary__val {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
    word-break: break-word;
}
.checkout-summary__package {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    background: var(--ink);
    color: var(--paper);
}
.checkout-summary__package-name {
    font-size: 16px;
    font-family: var(--display);
    font-synthesis: none;
}
.checkout-summary__package-price {
    font-size: 20px;
    font-family: var(--display);
    font-synthesis: none;
}

/* ── Terms checkbox ────────────────────────────────────────── */
.checkout-terms {
    margin-bottom: 24px;
}
.checkout-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.6;
    color: var(--ink-soft);
}
.checkout-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.checkout-checkbox__box {
    width: 22px;
    height: 22px;
    border: 2px solid var(--ink);
    flex-shrink: 0;
    margin-top: 2px;
    position: relative;
    transition: background 0.15s var(--ease);
}
.checkout-checkbox input:checked + .checkout-checkbox__box {
    background: var(--ink);
}
.checkout-checkbox input:checked + .checkout-checkbox__box::after {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--paper);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 12px;
}
.checkout-checkbox__text a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ── Pay box ───────────────────────────────────────────────── */
.checkout-pay-box {
    border: 2px solid var(--ink);
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
}
.checkout-pay-box__amount {
    display: flex;
    flex-direction: column;
}
.checkout-pay-box__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}
.checkout-pay-box__value {
    font-size: 24px;
    color: var(--ink);
    font-family: var(--display);
    font-synthesis: none;
}
.checkout-pay-btn {
    min-width: 200px;
    font-size: 14px;
}
.checkout-pay-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.checkout-pay-btn.is-loading {
    pointer-events: none;
    opacity: 0.7;
}
.checkout-security-note {
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.checkout-security-note i {
    color: var(--green-text);
}

/* ── Navigation ────────────────────────────────────────────── */
.checkout-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid var(--ink);
}
.checkout-nav__back {
    min-width: 120px;
}
.checkout-nav__next {
    min-width: 160px;
    margin-left: auto;
}
.checkout-nav__next.is-hidden { display: none; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .checkout-progress__label {
        display: none;
    }
    .checkout-progress__step {
        gap: 0;
    }
    .checkout-row {
        grid-template-columns: 1fr;
    }
    .checkout-domain-row {
        grid-template-columns: 1fr;
    }
    .checkout-pay-box {
        flex-direction: column;
        text-align: center;
    }
    .checkout-pay-btn {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .checkout-progress__inner {
        justify-content: space-between;
    }
}

/* ── Payment result pages (success/cancel/failure) ─────────── */
.pay-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border: 2px solid var(--ink);
    font-size: 32px;
    margin-bottom: 20px;
}
.pay-status-icon--success {
    background: var(--ink);
    color: var(--paper);
}
.pay-status-icon--cancel {
    background: var(--paper);
    color: var(--ink);
}
.pay-status-icon--fail {
    background: var(--ink);
    color: var(--paper);
}
.pay-result {
    max-width: 600px;
    margin: 0 auto;
}
.pay-result__box {
    border: 2px solid var(--ink);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
}
.pay-status-text {
    color: var(--green-text);
    font-weight: 800;
}
.pay-next-steps {
    margin-bottom: 32px;
}
.pay-next-steps__title {
    font-size: 16px;
    margin: 0 0 16px;
    font-family: var(--display);
    font-synthesis: none;
}
.pay-next-steps__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pay-next-steps__list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: var(--ink-soft);
    padding: 14px 16px;
    border: 2px solid var(--ink);
}
.pay-next-steps__list li i {
    color: var(--ink);
    font-size: 16px;
    flex-shrink: 0;
}
.pay-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 24px;
}
.pay-help {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}
.pay-help a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 2px;
}
@media (max-width: 480px) {
    .pay-actions {
        flex-direction: column;
    }
    .pay-actions .btn {
        width: 100%;
    }
}

/* ── Video booking cost summary (from calculator) ──────────── */
.vb-cost-summary {
    max-width: 560px;
    margin: 0 auto 40px;
    border: 1px solid var(--line);
    background: var(--line);
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.vb-cost-summary__line {
    background: var(--paper);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}
.vb-cost-summary__label {
    color: var(--muted);
}
.vb-cost-summary__label em {
    font-style: normal;
    color: var(--ink-soft);
    margin-left: 4px;
}
.vb-cost-summary__value {
    font-family: var(--display);
    font-synthesis: none;
    font-weight: 400;
    color: var(--ink);
}
.vb-cost-summary__total {
    background: var(--ink);
    color: var(--paper);
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.vb-cost-summary__total-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}
.vb-cost-summary__total-value {
    font-family: var(--display);
    font-synthesis: none;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    letter-spacing: -0.03em;
}

/* ── Refund policy note ────────────────────────────────────── */
.checkout-refund-note {
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-soft, #787774);
    margin: 12px 0 0;
    padding: 12px 16px;
    background: var(--bone, #f7f6f3);
    border: 1px solid var(--line, #eaeaea);
}
.checkout-refund-note i { margin-right: 6px; }
.checkout-refund-note a { color: var(--ink, #111); border-bottom: 1px solid var(--ink, #111); }
