/* Seller Onboarding Styles */

/* Container */
.so-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 0 48px;
}
.so-wrap--narrow {
    max-width: 460px;
}
.so-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    padding: 36px 40px;
}

/* Progress bar */
.so-progress {
    margin-bottom: 32px;
    padding: 24px 0 20px;
    border-bottom: 1px solid #e5e7eb;
}
.so-progress__steps {
    display: flex;
    align-items: center;
    justify-content: center;
}
.so-progress__step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.so-progress__circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 8px;
    transition: all 0.4s ease;
    border: 2px solid transparent;
}
.so-progress__step--active .so-progress__circle {
    background: #111;
    color: #fff;
    border-color: #111;
    box-shadow: 0 0 0 4px rgba(17,17,17,0.1);
}
.so-progress__step--done .so-progress__circle {
    background: #22c55e;
    color: #fff;
    border-color: #22c55e;
}
.so-progress__label {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
    transition: color 0.3s;
}
.so-progress__step--active .so-progress__label {
    color: #111;
    font-weight: 700;
}
.so-progress__step--done .so-progress__label {
    color: #22c55e;
    font-weight: 600;
}
.so-progress__line {
    width: 72px;
    height: 3px;
    background: #e5e7eb;
    margin: 0 14px;
    margin-bottom: 26px;
    border-radius: 2px;
    transition: background 0.4s ease;
    position: relative;
    overflow: hidden;
}
.so-progress__line--done {
    background: #22c55e;
}

/* Section header */
.so-main__header {
    text-align: center;
    margin-bottom: 28px;
}
.so-main__icon {
    width: 48px;
    height: 48px;
    background: #f3f4f6;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}
.so-main__title {
    font-size: 22px;
    font-weight: 700;
    color: #111;
    margin: 0 0 8px;
    line-height: 1.3;
}
.so-main__subtitle {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    max-width: 480px;
    margin: 0 auto;
}

/* Form */
.so-form__section-title {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin: 24px 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f3f4f6;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.so-form__section-title svg {
    color: #6b7280;
}
.so-form__row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.so-form__field {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.so-form__label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
    display: block;
}
.so-form__label--required::after {
    content: " *";
    color: #dc2626;
}
.so-card .so-form__input,
.so-card .so-form__select,
.so-card .so-form__textarea {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    color: #111;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    line-height: 42px;
    margin: 0;
    -webkit-appearance: none;
}
.so-card .so-form__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.so-card .so-form__input:focus,
.so-card .so-form__select:focus,
.so-card .so-form__textarea:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}
.so-card .so-form__input--readonly {
    background: #f9fafb;
    cursor: not-allowed;
    color: #6b7280;
    border-style: dashed;
}
.so-card .so-form__textarea {
    height: auto;
    min-height: 80px;
    padding: 10px 12px;
    line-height: 1.4;
    resize: vertical;
}
.so-form__status {
    font-size: 12px;
    margin-top: 4px;
    min-height: 18px;
    display: flex;
    align-items: center;
    gap: 4px;
}
.so-form__status--success {
    color: #22c55e;
}
.so-form__status--error {
    color: #dc2626;
}

/* Checkboxes */
.so-form__checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    cursor: pointer;
}
.so-form__checkbox input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: #111;
}
.so-form__checkbox a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.so-form__checkbox a:hover {
    text-decoration: underline;
}

/* Buttons */
.so-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 32px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    transition: all 0.2s ease;
    text-decoration: none;
    position: relative;
    min-height: 42px;
}
.so-btn--primary {
    background: #111;
    color: #fff;
}
.so-btn--primary:hover {
    background: #333;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.so-btn--primary:active {
    transform: translateY(0);
}
.so-btn--primary:disabled {
    background: #d1d5db;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.so-btn--outline {
    background: transparent;
    color: #374151;
    border: 1px solid #d1d5db;
}
.so-btn--outline:hover {
    border-color: #111;
    color: #111;
}
.so-btn--link {
    background: none;
    border: none;
    color: #2563eb;
    padding: 0;
    font-size: 13px;
    cursor: pointer;
    text-decoration: none;
    font-weight: 500;
    min-height: auto;
}
.so-btn--link:hover {
    text-decoration: underline;
}
.so-btn--link:disabled {
    color: #9ca3af;
    cursor: not-allowed;
    text-decoration: none;
}
.so-btn--loading {
    pointer-events: none;
    opacity: 0.7;
}
.so-btn--loading::after {
    content: "";
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: so-spin 0.6s linear infinite;
}
@keyframes so-spin {
    to { transform: rotate(360deg); }
}
.so-form__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* OTP sections */
.so-otp-section {
    background: #f9fafb;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    transition: all 0.4s ease;
}
.so-otp-section--verified {
    border-color: #22c55e;
    background: #f0fdf4;
}
.so-otp__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 4px;
}
.so-otp__icon {
    width: 36px;
    height: 36px;
    background: #e5e7eb;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.so-otp-section--verified .so-otp__icon {
    background: #dcfce7;
}
.so-otp__title {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    margin: 0;
}
.so-otp__target {
    font-size: 13px;
    color: #6b7280;
    margin: 4px 0 16px 48px;
}
.so-otp__input-row {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-left: 48px;
}
.so-otp__digit-group {
    display: flex;
    gap: 8px;
}
.so-otp__digit {
    width: 44px;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    text-align: center;
    color: #111;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.so-otp__digit:focus {
    border-color: #111;
    outline: none;
    box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}
.so-otp__input {
    display: none;
}
.so-otp__verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #22c55e;
    font-weight: 700;
    font-size: 14px;
    margin-left: 48px;
    padding: 8px 0;
}
.so-otp__resend {
    margin-top: 12px;
    margin-left: 48px;
    font-size: 13px;
    color: #6b7280;
}
.so-otp__timer {
    color: #111;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.so-otp__status {
    margin-left: 48px;
}

/* Success */
.so-success {
    text-align: center;
    padding: 48px 20px;
}
.so-success__icon {
    width: 72px;
    height: 72px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    animation: so-pop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes so-pop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
.so-success__title {
    font-size: 24px;
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}
.so-success__msg {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 32px;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
}
.so-success__steps {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.so-success__step-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    width: 180px;
    text-align: center;
}
.so-success__step-num {
    width: 28px;
    height: 28px;
    background: #111;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    margin: 0 auto 10px;
}
.so-success__step-text {
    font-size: 13px;
    color: #374151;
    line-height: 1.4;
}

/* intl-tel-input overrides */
.so-card .iti {
    width: 100%;
}
.so-card .iti__tel-input,
.so-card .iti input[type="tel"] {
    width: 100%;
    height: 42px;
    padding: 0 12px 0 90px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    line-height: 42px;
    box-sizing: border-box;
    margin: 0;
    -webkit-appearance: none;
}
.so-card .iti__tel-input:focus,
.so-card .iti input[type="tel"]:focus {
    outline: none;
    border-color: #111;
    box-shadow: 0 0 0 3px rgba(17,17,17,0.08);
}
.so-card .iti__selected-country {
    border-top-left-radius: 8px !important;
    border-bottom-left-radius: 8px !important;
}

/* Footer links */
.so-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #6b7280;
}
.so-footer a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.so-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .so-wrap {
        padding: 10px 0 24px;
    }
    .so-card {
        padding: 24px 18px;
        border-radius: 10px;
    }
    .so-form__row {
        flex-direction: column;
        gap: 0;
    }
    .so-progress__line {
        width: 36px;
        margin: 0 6px;
        margin-bottom: 26px;
    }
    .so-progress__circle {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    .so-progress__label {
        font-size: 10px;
    }
    .so-otp__input-row,
    .so-otp__target,
    .so-otp__verified-badge,
    .so-otp__resend,
    .so-otp__status {
        margin-left: 0;
    }
    .so-otp__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    .so-otp__digit-group {
        justify-content: center;
        width: 100%;
    }
    .so-otp__digit {
        width: 40px;
        height: 44px;
        font-size: 18px;
    }
    .so-success__steps {
        flex-direction: column;
        align-items: center;
    }
    .so-success__step-card {
        width: 100%;
        max-width: 280px;
    }
}
