/* ==============================
   BASE FORM
============================== */
.uber-form {
    max-width: 420px;
    margin: auto;
    font-family: sans-serif;
    padding: 10px;
}

/* Inputs, selects, buttons */
.uber-form input,
.uber-form select,
.uber-form button {
    width: 100%;
    height: 48px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 15px;
    box-sizing: border-box;
}

/* Vertical spacing (controlled) */
.uber-form input,
.uber-form select {
    margin-bottom: 14px;
}

/* Buttons */
.uber-form button {
    background: #000;
    color: #fff;
    cursor: pointer;
    margin-bottom: 0;
}

.uber-form button:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* ==============================
   OTP ROW
============================== */
.otp-row {
    display: flex;
    gap: 10px;
}

.otp-row input {
    flex: 1;
}

.otp-row button {
    width: auto;
    padding: 0 18px;
    white-space: nowrap;
}

/* ==============================
   STEP PROGRESS BAR
============================== */
.step-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.step-item {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ccc;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.step-item.active {
    background: #000;
}

.step-line {
    width: 36px;
    height: 2px;
    background: #ccc;
    margin: 0 6px;
}

/* ==============================
   STEP SECTIONS
============================== */
#step-1,
#step-2,
#step-3,
#step-4 {
    margin-top: 10px;
}

/* ==============================
   PASSWORD FIELD
============================== */
.password-wrap {
    position: relative;
}

.toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 14px;
}

/* Strength */
.password-strength {
    margin: 6px 0 12px;
    font-size: 13px;
    font-weight: bold;
}

/* ==============================
   STEP BUTTONS (BACK / NEXT)
============================== */
.step-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.step-buttons button {
    flex: 1;
    height: 48px;
    font-size: 16px;
}

/* Secondary / Back */
.step-buttons button:first-child {
    background: #000;
    color: #fff;
}

/* ==============================
   CHECKBOX
============================== */
.checkbox-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 13px;
    margin: 15px 0;
}

.checkbox-row input {
    width: auto;
    height: auto;
    margin-top: 3px;
}

/* ==============================
   MESSAGES
============================== */
#success_msg.success { color: green; }
#success_msg.error { color: red; }

.error {
    font-size: 12px;
    color: red;
}

/* ==============================
   SUCCESS SCREEN
============================== */
#success-screen {
    max-width: 420px;
    margin: auto;
    text-align: center;
}

.success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #e6f7ee;
    color: #1e7f4d;
    font-size: 36px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-text {
    font-size: 15px;
    color: #444;
    margin-bottom: 10px;
}

.status-text {
    font-size: 14px;
    color: #666;
}

/* ==============================
   LOADING SPINNER
============================== */
#sendOtp.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 6px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
