/* ══════════════════════════════════════════════════
   NEXTA OTP FORMS — Full CSS
   Scoped to .nexta-otp-container for Elementor popup
   compatibility
══════════════════════════════════════════════════ */

/* ── BOX SIZING RESET ──────────────────────────── */
.nexta-otp-container,
.nexta-otp-container * {
    box-sizing: border-box !important;
}

/* ── CONTAINER ─────────────────────────────────── */
.nexta-otp-container {
    max-width: 480px;
    margin: 0 auto 40px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ── TABS ──────────────────────────────────────── */
.nexta-otp-container .nexta-tabs {
    display: flex !important;
    flex-wrap: nowrap !important;
    border-bottom: 2px solid #e0e0e0 !important;
    margin-bottom: 24px !important;
    padding: 0 !important;
    background: transparent !important;
}

.nexta-otp-container .nexta-tab {
    flex: 1;
    padding: 12px 20px;
    background: #000;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    box-shadow: none;
    border-radius: 0;
    text-transform: none;
    letter-spacing: normal;
    line-height: normal;
}

.nexta-otp-container .nexta-tab:hover {
    color: #000;
    background: #e8e8e8;
}

.nexta-otp-container .nexta-tab.active {
    color: #fff;
    border-bottom: 3px solid #fff;
    background: #000;
}

/* ── TAB CONTENT ───────────────────────────────── */
.nexta-otp-container .nexta-tab-content {
    display: none;
}

.nexta-otp-container .nexta-tab-content.active {
    display: block;
}

/* ── HEADINGS ──────────────────────────────────── */
.nexta-otp-container h3 {
    margin: 0 0 20px !important;
    font-size: 18px !important;
    color: #333 !important;
    font-weight: 700 !important;
}

/* ── FIELDS ────────────────────────────────────── */
.nexta-otp-container .nexta-field {
    margin-bottom: 16px !important;
}

.nexta-otp-container .nexta-field label {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #555 !important;
    float: none !important;
    width: auto !important;
    text-align: left !important;
}

.nexta-otp-container .nexta-field label .required {
    color: #e2401c !important;
}

.nexta-otp-container .nexta-field input[type="text"],
.nexta-otp-container .nexta-field input[type="email"],
.nexta-otp-container .nexta-phone-wrap input[type="text"] {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    border: 1px solid #ccc !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-family: inherit !important;
    background: #fff !important;
    color: #333 !important;
    height: auto !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    transition: border-color 0.2s !important;
    float: none !important;
}

.nexta-otp-container .nexta-field input:focus,
.nexta-otp-container .nexta-phone-wrap input:focus {
    border-color: #96588a !important;
    box-shadow: 0 0 0 2px rgba(150,88,138,0.15) !important;
    outline: none !important;
}

/* ── PHONE ROW ─────────────────────────────────── */
.nexta-otp-container .nexta-phone-wrap {
    display: flex !important;
    gap: 10px !important;
    align-items: stretch !important;
    flex-wrap: nowrap !important;
}

.nexta-otp-container .nexta-phone-wrap input[type="text"] {
    flex: 1 !important;
    width: auto !important;
    min-width: 0 !important;
}

/* ── BUTTONS ───────────────────────────────────── */
.nexta-otp-container .nexta-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #000;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    cursor: pointer;
    white-space: nowrap;
    height: auto;
    line-height: 1.5;
    text-decoration: none;
    vertical-align: middle;
    transition: background 0.2s;
    box-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    -webkit-appearance: none;
    appearance: none;
}

.nexta-otp-container .nexta-btn:hover {
    background: #0E5327;
    color: #fff;
    border-color: #0E5327;
}

.nexta-otp-container .nexta-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.nexta-otp-container .nexta-btn.nexta-btn-primary {
    display: block;
    width: 100%;
    padding: 12px;
    background: #96588a;
    color: #fff;
    border-color: #96588a;
    font-size: 15px;
    margin-top: 8px;
    text-align: center;
}

.nexta-otp-container .nexta-btn.nexta-btn-primary:hover:not(:disabled) {
    background: #7d4876;
    border-color: #7d4876;
    color: #fff;
}

/* ── OTP BOX ───────────────────────────────────── */
.nexta-otp-container .nexta-otp-box {
    margin-top: 16px !important;
    padding: 16px !important;
    background: #faf5f9 !important;
    border: 1px dashed #c8a0c0 !important;
    border-radius: 8px !important;
}

/* ── RESPONSE MESSAGES ─────────────────────────── */
.nexta-otp-container .nexta-response {
    margin-top: 14px !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    display: none;
    width: 100% !important;
}

.nexta-otp-container .nexta-response.nexta-success {
    background: #d4edda !important;
    color: #155724 !important;
    border: 1px solid #c3e6cb !important;
}

.nexta-otp-container .nexta-response.nexta-error {
    background: #f8d7da !important;
    color: #721c24 !important;
    border: 1px solid #f5c6cb !important;
}

/* ── FORGOT PHONE LINK ─────────────────────────── */
.nexta-otp-container .nexta-forgot-wrap {
    margin-top: 12px !important;
    text-align: center !important;
}

.nexta-otp-container .nexta-forgot-link,
.nexta-otp-container a.nexta-forgot-link {
    font-size: 13px !important;
    color: #96588a !important;
    text-decoration: none !important;
    border-bottom: 1px dashed #96588a !important;
    cursor: pointer !important;
    background: none !important;
    padding: 0 !important;
    display: inline !important;
}

.nexta-otp-container .nexta-forgot-link:hover {
    color: #7d4876 !important;
}

/* ── RESET INLINE ──────────────────────────────── */
.nexta-otp-container .nexta-divider {
    border: none !important;
    border-top: 1px solid #e0e0e0 !important;
    margin: 20px 0 !important;
}

.nexta-otp-container .nexta-reset-subtitle {
    font-size: 13px !important;
    color: #777 !important;
    margin-bottom: 16px !important;
}

.nexta-otp-container #nexta-inline-reset h4 {
    font-size: 16px !important;
    color: #333 !important;
    margin-bottom: 6px !important;
}

/* ── SUCCESS STATE ─────────────────────────────── */
.nexta-otp-container .nexta-success-state {
    text-align: center !important;
    padding: 30px 20px !important;
}

.nexta-otp-container .nexta-check-big {
    width: 64px !important;
    height: 64px !important;
    background: #28a745 !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 32px !important;
    line-height: 64px !important;
    margin: 0 auto 16px !important;
    display: block !important;
    text-align: center !important;
}

.nexta-otp-container .nexta-success-state h3 {
    color: #28a745 !important;
    font-size: 20px !important;
    margin-bottom: 8px !important;
}

.nexta-otp-container .nexta-success-state p {
    color: #555 !important;
    font-size: 15px !important;
}

/* ── LOGGED IN STATE ───────────────────────────── */
.nexta-otp-container .nexta-logged-in {
    text-align: center !important;
    padding: 30px 20px !important;
    background: #f0f8f0 !important;
    border: 1px solid #c3e6cb !important;
    border-radius: 10px !important;
}

.nexta-otp-container .nexta-logged-in .nexta-check {
    display: inline-block !important;
    width: 50px !important;
    height: 50px !important;
    background: #28a745 !important;
    color: #fff !important;
    border-radius: 50% !important;
    font-size: 24px !important;
    line-height: 50px !important;
    margin-bottom: 12px !important;
    text-align: center !important;
}

.nexta-otp-container .nexta-logged-in p {
    font-size: 16px !important;
    margin-bottom: 16px !important;
    color: #333 !important;
}

/* ── RESET CONTAINER (standalone page) ────────── */
.nexta-reset-container h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 6px;
}
