:root {
    --themeprimaryclr: #ff671f;
    --dark-primaryclr: #e55a17;
    --themesecondaryclr: #06038d;
    --gray-200: #1a1a1a;
    --gray-100: #333333;
    --lightbg: #f5f5f5;
    --plainclr: #ffffff;

    --field-bg: #f9fafb;
    --field-border: #e5e7eb;
    --field-focus: #6366f1;
    --label-clr: #111827;
    --placeholder-clr: #9ca3af;
}

/* ================= RESET ================= */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Inter", sans-serif;
    background: #f5f7fb;
}

/* ================= LAYOUT ================= */

.center-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.form-wrapper {
    width: 100%;
}

.onboarding-flex {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.onboarding-form {
    flex: 1;
    width: 100%;
}

/* ================= SIDEBAR ================= */

.onboarding-sidebar {
    width: 260px;
    flex-shrink: 0;
    background: #f9fafb;
    border-radius: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
}

.sidebar-step {
    display: flex;
    gap: 10px;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid transparent;
    transition: 0.2s;
}

.sidebar-step.active {
    background: #eef2ff;
    border-color: #6366f1;
}

.sidebar-number {
    width: 28px;
    height: 28px;
    background: #6366f1;
    color: #fff;
    font-size: 13px;
    font-weight: bold;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-title {
    font-size: 13px;
    font-weight: 600;
}

.sidebar-progress {
    margin-top: 12px;
    padding: 10px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

/* ================= CARD ================= */

.form-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* ================= STEPS ================= */

.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* ================= GRID ================= */

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 18px;
}

.field.full,
.toggle-field {
    grid-column: span 2;
}

/* ================= INPUT ================= */

.field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--label-clr);
    margin-bottom: 6px;
    display: block;
}

.form-control,
.form-select,
select.form-control {
    width: 100%;
    height: 44px;
    border-radius: 10px;
    border: 1px solid var(--field-border);
    background: var(--field-bg);
    padding: 10px 12px;
    font-size: 14px;
    transition: 0.2s;
}

textarea.form-control {
    min-height: 110px;
}

.form-control::placeholder {
    color: var(--placeholder-clr);
}

.form-control:focus,
.form-select:focus {
    outline: none;
    border-color: var(--field-focus);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
    background: #fff;
}

/* ================= SELECT ================= */

.select-wrapper {
    position: relative;
}

.select-wrapper select {
    appearance: none;
    padding-right: 40px;
    cursor: pointer;
}

.select-wrapper::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #6b7280;
    border-bottom: 2px solid #6b7280;
    transform: translateY(-65%) rotate(45deg);
}

/* ================= TOGGLE ================= */

.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

.toggle-label {
    font-weight: 600;
    font-size: 14px;
}

.toggle-desc {
    font-size: 12px;
    color: #888;
}

.toggle-switch {
    position: relative;
    width: 42px;
    height: 22px;
}

.toggle-switch input {
    display: none;
}

.slider {
    position: absolute;
    inset: 0;
    background: #ddd;
    border-radius: 50px;
}

.slider::before {
    content: "";
    position: absolute;
    height: 18px;
    width: 18px;
    left: 2px;
    top: 2px;
    background: #fff;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .slider {
    background: #22c55e;
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(20px);
}

/* ================= ERROR ================= */

.error-msg {
    display: none;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
}

.field.has-error .error-msg {
    display: block;
}

.field.has-error .form-control {
    border-color: #ef4444;
}

/* ================= BUTTON ================= */

.btn-footer {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-next {
    flex: 2;
    background: linear-gradient(135deg, #111827, #1f2937);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.btn-next:hover {
    transform: translateY(-1px);
}

.btn-next:disabled {
    background: #d1d5db;
    cursor: not-allowed;
}

.btn-prev {
    flex: 1;
    background: #f3f4f6;
    border-radius: 10px;
    border: none;
}

/* ================= BUTTON STATES ================= */

.btn-hidden {
    display: none !important;
}

.btn-loading {
    opacity: 0.7;
    pointer-events: none;
}

#btnLoader {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ================= SUCCESS ================= */
.success-box {
    display: none;
    min-height: 70vh;
    align-items: center;
    justify-content: center;
}

.success-box.active {
    display: flex;
}

.success-card {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    width: 420px;
    text-align: center;
    border: 1px solid #e5e7eb;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* ICON */
.success-icon {
    width: 70px;
    height: 70px;
    background: #22c55e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    color: #fff;
    font-size: 30px;
}

/* TEXT */
.success-card h2 {
    margin-bottom: 6px;
}

.success-sub {
    color: #6b7280;
    font-size: 14px;
    margin-bottom: 20px;
}

/* CREDENTIALS */
.credentials-box {
    text-align: left;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.credentials-box h4 {
    font-size: 14px;
    margin-bottom: 10px;
}

.cred-row {
    margin-bottom: 10px;
}

.cred-row span {
    font-size: 12px;
    color: #6b7280;
    display: block;
    margin-bottom: 4px;
}

.cred-row div {
    display: flex;
    gap: 8px;
}

.cred-row input {
    flex: 1;
    padding: 8px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 13px;
}

.cred-row button {
    background: #111827;
    color: #fff;
    border: none;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

/* ACTIONS */
.success-actions {
    display: flex;
    gap: 10px;
}

.btn-download {
    flex: 1;
    background: #f3f4f6;
    border: none;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
}

.btn-login {
    flex: 1;
    background: #22c55e;
    color: #fff;
    text-decoration: none;
    padding: 10px;
    border-radius: 8px;
    display: inline-block;
}
/* ================= STATES ================= */

.hidden-after-success {
    display: none !important;
}

.onboarding-flex.success-mode {
    display: block;
}

/* ================= REVIEW ================= */
/* ===== REVIEW HEADER ===== */

.review-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.review-step-badge {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: #fff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.review-step-text {
    font-size: 11px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 2px;
    letter-spacing: 0.5px;
}

/* ===== ALERT BOX ===== */

.review-box {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* progress circle */
.progress-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 4px solid #fdba74;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    color: #92400e;
    background: #fff;
}

/* ===== GRID IMPROVED ===== */

.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.review-item {
    background: #f9fafb;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.review-item label {
    font-size: 11px;
    color: #6b7280;
    margin-bottom: 4px;
    display: block;
}

.review-item span {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 992px) {
    .onboarding-flex {
        flex-direction: column;
    }

    .onboarding-sidebar {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}
.continue-msg {
    display: none;
    font-size: 13px;
    color: #ef4444;
    margin-bottom: 8px;
    font-weight: 500;
}
.continue-msg {
    transition: 0.2s ease;
}

.global-error {
    display: none;
    color: #ef4444;
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 500;
}

.success-note {
    margin-top: 16px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fdba74;
    color: #9a3412;
    font-size: 14px;
    font-weight: 500;
}
.swal2-container {
    z-index: 999999 !important;
}