/* Merchant onboarding wizard */

.onboarding-page {
    padding-top: clamp(5rem, 10vw, 7rem);
}

.ob-hero {
    text-align: center;
    max-width: 40rem;
    margin-inline: auto;
    padding-bottom: 2rem;
}

.ob-hero .hp-lead {
    margin-inline: auto;
}

.ob-wizard-card {
    background: var(--hp-surface, #0e0e12);
    border: 1px solid var(--hp-border, rgba(255, 255, 255, 0.08));
    border-radius: var(--hp-radius, 20px);
    padding: clamp(1.5rem, 4vw, 2.5rem);
    box-shadow: var(--hp-glow, 0 0 80px color-mix(in srgb, var(--primary-color) 20%, transparent));
}

/* Progress steps */
#progressbar.ob-progressbar {
    margin: 0 0 1.5rem;
    padding: 0;
    overflow: visible;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    color: var(--hp-muted, #a1a1aa);
}

#progressbar.ob-progressbar li {
    list-style: none;
    float: none;
    width: auto;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    position: relative;
}

#progressbar.ob-progressbar li strong {
    display: block;
    margin-top: 0.5rem;
    letter-spacing: 0.02em;
}

#progressbar.ob-progressbar li:before {
    width: 2.5rem;
    height: 2.5rem;
    line-height: 2.35rem;
    font-size: 0.95rem;
    background: var(--hp-surface-2, #14141a);
    border: 1px solid var(--hp-border, rgba(255, 255, 255, 0.12));
    color: var(--hp-muted, #a1a1aa);
    margin-bottom: 0.35rem;
}

#progressbar.ob-progressbar li:after {
    display: none;
}

#progressbar.ob-progressbar li.active {
    color: var(--hp-text, #f4f4f5);
}

#progressbar.ob-progressbar li.active:before {
    background: var(--hp-gradient, linear-gradient(135deg, var(--primary-color), var(--primary-color2)));
    border-color: transparent;
    color: #fff;
    box-shadow: 0 0 24px color-mix(in srgb, var(--primary-color) 40%, transparent);
}

.ob-progress-track {
    margin-bottom: 2rem;
}

.ob-progress-track .progress {
    height: 6px;
    background: var(--hp-surface-2, #14141a);
    border-radius: 999px;
    overflow: hidden;
}

.ob-progress-track .progress-bar {
    background: var(--hp-gradient, linear-gradient(90deg, var(--primary-color), var(--primary-color2)));
    border-radius: 999px;
}

/* Multi-step form */
#msform {
    text-align: left;
    position: relative;
    margin-top: 0;
}

#msform fieldset {
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0 0 1rem;
    margin: 0;
}

#msform fieldset:not(:first-of-type) {
    display: none;
}

#msform .form-card {
    text-align: left;
}

.ob-step-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--hp-border, rgba(255, 255, 255, 0.08));
}

#msform .fs-title,
#heading {
    font-size: clamp(1.15rem, 2.5vw, 1.35rem);
    font-weight: 700;
    color: var(--hp-text, #f4f4f5);
    margin: 0;
    text-transform: none;
}

#msform .steps {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--hp-muted, #a1a1aa);
    margin: 0;
    text-align: right;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#msform .fieldlabels {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--hp-muted, #a1a1aa);
    margin-bottom: 0.35rem;
    text-align: left;
}

#msform input,
#msform select,
#msform textarea {
    padding: 0.75rem 1rem;
    border: 1px solid var(--hp-border, rgba(255, 255, 255, 0.12));
    border-radius: var(--hp-radius-sm, 12px);
    margin-bottom: 1.25rem;
    margin-top: 0;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.95rem;
    letter-spacing: normal;
    color: var(--hp-text, #f4f4f5);
    background: var(--hp-surface-2, #14141a);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#msform input[type="file"] {
    padding: 0.65rem 1rem;
    font-size: 0.85rem;
}

#msform input::placeholder {
    color: color-mix(in srgb, var(--hp-muted, #a1a1aa) 70%, transparent);
}

#msform select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23a1a1aa' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

#msform input:focus,
#msform select:focus,
#msform textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-color) 25%, transparent);
}

.ob-form-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.5rem;
    clear: both;
}

#msform .action-button,
#msform .action-button-previous {
    float: none;
    width: auto;
    min-width: 7rem;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    padding: 0.65rem 1.5rem;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.15s ease, background 0.2s ease;
}

#msform .action-button {
    background: var(--primary-color);
    color: #fff;
}

#msform .action-button:hover,
#msform .action-button:focus {
    background: var(--primary-color2);
}

#msform .action-button-previous {
    background: var(--hp-surface-2, #14141a);
    color: var(--hp-text, #f4f4f5);
    border: 1px solid var(--hp-border, rgba(255, 255, 255, 0.12));
}

#msform .action-button-previous:hover,
#msform .action-button-previous:focus {
    background: color-mix(in srgb, var(--hp-surface-2, #14141a) 80%, #fff);
}

/* Success step */
.ob-success {
    text-align: center;
    padding: 2rem 0 1rem;
}

.ob-success__icon {
    width: 5rem;
    height: 5rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-color) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-color) 35%, transparent);
    color: var(--primary-color);
    font-size: 2.25rem;
}

#msform .purple-text {
    color: var(--primary-color);
    font-weight: 700;
}

.ob-success h5 {
    color: var(--hp-muted, #a1a1aa);
    font-weight: 500;
    font-size: 1rem;
}

@media (max-width: 575px) {
    #progressbar.ob-progressbar li strong {
        font-size: 0.6rem;
    }

    #progressbar.ob-progressbar li:before {
        width: 2rem;
        height: 2rem;
        line-height: 1.85rem;
        font-size: 0.8rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    #msform .action-button,
    #msform .action-button-previous,
    #msform input,
    #msform select {
        transition: none;
    }
}
