/* onboard.css */
body {
    background: linear-gradient(135deg, #7c3aed 0%, #e65f2e 100%);
    min-height: 100vh;
    margin: 0;
    overflow: hidden;
    /* Prevent scrolling if needed */
}

.onboard-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
}

.branding-area {
    margin-bottom: auto;
    padding-top: 10vh;
    text-align: center;
    color: white;
}

.bottom-sheet {
    background: white;
    width: 100%;
    max-width: 480px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    padding: 40px 30px 50px;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
    }
}

.onboard-title {
    color: #1f2937;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 5px;
}

.onboard-subtitle {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 30px;
}

.custom-form-group {
    margin-bottom: 20px;
}

.custom-form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #374151;
    text-transform: uppercase;
    margin-bottom: 8px;
    margin-left: 15px;
}

.custom-input {
    background: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 16px;
    padding: 14px 20px;
    font-weight: 600;
    color: #1f2937;
    transition: all 0.2s ease;
}

.custom-input:focus {
    background: white;
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    outline: none;
}

.btn-continue {
    background: linear-gradient(135deg, #7c3aed 0%, #e65f2e 100%);
    border: none;
    border-radius: 16px;
    color: white;
    font-weight: 800;
    padding: 16px;
    box-shadow: 0 10px 20px rgba(124, 58, 237, 0.2);
    transition: all 0.3s ease;
}

.btn-continue:hover,
.btn-continue:active {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px rgba(124, 58, 237, 0.3);
}

.btn-continue:disabled {
    opacity: 0.6;
    background: #9ca3af;
    transform: none;
    box-shadow: none;
}

/* Progressive Steps Animation */
.step-container {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.d-none-step {
    display: none !important;
    opacity: 0;
    transform: translateY(20px);
}

.step-active {
    display: block !important;
    opacity: 1;
    transform: translateY(0);
}

.coupon-display {
    background: #f3f4f6;
    padding: 15px;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.coupon-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 700;
    text-transform: uppercase;
}

.coupon-val {
    font-weight: 800;
    color: #7c3aed;
}

.btn-edit-coupon {
    font-size: 0.7rem;
    font-weight: 700;
    color: #e65f2e;
    text-decoration: none;
}

/* ── Step icon ──────────────────────────────────────────────────────────── */
.step-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

/* ── Back button ─────────────────────────────────────────────────────────── */
.btn-step-back {
    background: none;
    border: none;
    color: #7c3aed;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0 0 16px 0;
    cursor: pointer;
    display: block;
}

/* ── OTP email chip ───────────────────────────────────────────────────────── */
.otp-email-chip {
    display: inline-block;
    background: #f5f3ff;
    color: #7c3aed;
    font-weight: 700;
    font-size: 0.82rem;
    border-radius: 20px;
    padding: 3px 12px;
    margin-top: 6px;
    word-break: break-all;
}

/* ── Digit-box group ──────────────────────────────────────────────────────── */
.digit-group {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 18px 0 6px;
}

.digit-box {
    width: 44px;
    height: 54px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    border: 2px solid #e5e7eb;
    border-radius: 14px;
    background: #f3f4f6;
    color: #1f2937;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    -webkit-appearance: none;
    caret-color: #7c3aed;
}

.digit-box:focus {
    border-color: #7c3aed;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
}

.digit-box.is-invalid {
    border-color: #ef4444;
    background: #fff5f5;
    animation: shake 0.35s ease;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-4px);
    }

    75% {
        transform: translateX(4px);
    }
}

/* ── Resend / link area ────────────────────────────────────────────────────── */
.resend-area {
    text-align: center;
    margin-top: 16px;
    min-height: 24px;
}

.resend-countdown {
    font-size: 0.78rem;
    color: #9ca3af;
    font-weight: 600;
}

.resend-link {
    font-size: 0.78rem;
    font-weight: 700;
    color: #7c3aed;
    text-decoration: none;
}

.resend-link:hover {
    text-decoration: underline;
}

/* ── Generic inline error ─────────────────────────────────────────────────── */
.form-error-msg {
    font-size: 0.78rem;
    color: #ef4444;
    font-weight: 600;
    min-height: 20px;
    margin-top: 4px;
}

/* ── Scrollable bottom-sheet for taller steps ────────────────────────────── */
.bottom-sheet {
    max-height: 82vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Redeem Section Components (for claim flow) ────────────────────────── */

.claim-section {
    padding: 16px 20px;
    border-bottom: 1px solid #f9fafb;
}

.claim-section:last-child {
    border-bottom: none;
}

.claim-section-header {
    text-align: center;
    padding: 20px 20px 16px;
}

.claim-confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 20px;
    background: linear-gradient(135deg, #7c3aed1a 0%, #e65f2e1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 1.8rem;
    color: #7c3aed;
}

.claim-product-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #f9fafb;
    padding: 14px;
    border-radius: 16px;
    border: 1px solid #f3f4f6;
}

.claim-product-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: contain;
    background: white;
    padding: 6px;
    border: 1px solid #f3f4f6;
}

.claim-product-info {
    flex: 1;
    min-width: 0;
}

.claim-product-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: #1f2937;
    margin-bottom: 2px;
}

.claim-product-price {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}

.claim-summary-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 12px;
}

.claim-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.claim-summary-row:last-child {
    margin-bottom: 0;
}

.claim-summary-row span:first-child {
    color: #6b7280;
    font-weight: 500;
}

.claim-summary-row span:last-child {
    color: #1f2937;
    font-weight: 700;
}

.claim-summary-row .program-name-value {
    text-align: right;
    max-width: 60%;
    position: relative;
    cursor: help;
    display: block;
}

.claim-summary-row .program-name-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.claim-summary-row .program-name-value:hover::after {
    content: attr(data-full-text);
    position: absolute;
    bottom: 100%;
    right: 0;
    background: #1f2937;
    color: white;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.85rem;
    max-width: 70vw;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    margin-bottom: 8px;
    font-weight: 500;
    pointer-events: none;
}

.claim-summary-row .program-name-value:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 16px;
    border: 6px solid transparent;
    border-top-color: #1f2937;
    z-index: 1000;
    margin-bottom: 2px;
    pointer-events: none;
}

.claim-section-actions {
    padding: 20px;
}

.btn-confirm-redeem {
    background: linear-gradient(135deg, #7c3aed 0%, #e65f2e 100%);
    border: none;
    border-radius: 14px;
    color: white;
    font-weight: 700;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.2);
    transition: all 0.2s;
}

.btn-confirm-redeem:active {
    transform: scale(0.98);
}