@import "bootstrap/dist/css/bootstrap.min.css";

/* ===== WELCOME PAGE (LUCKY DRAW) ===== */
.welcome-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    background: #ffffff;
}

/* Card */
.welcome-card {
    width: 100%;
    max-width: 390px; /* iPhone width */
    text-align: center;
}

/* Poster */
.welcome-poster {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
}

/* Continue Button */
.welcome-btn {
    display: block;
    margin-top: 16px;
    width: 100%;
    background: linear-gradient(135deg, #2f3192, #3f42c8);
    color: #ffffff;
    text-decoration: none;
    padding: 14px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
}

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

/* Desktop = phone look */
@media (min-width: 768px) {
    .welcome-page {
        background: #f4f6fb;
    }

    .welcome-card {
        background: #fff;
        padding: 16px;
        border-radius: 16px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    }
}

/* ===== GLOBAL ===== */
body {
    margin: 0;
    background: #f4f6fb;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ===== PAGE WRAPPER ===== */
.register-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== HEADER ===== */
.register-header {
    background:
        radial-gradient(
            circle at 1px 1px,
            rgba(255, 255, 255, 0.15) 1px,
            transparent 0
        ),
        linear-gradient(135deg, #2f3192, #3f42c8);

    background-size:
        16px 16px,
        cover;
    background-repeat: repeat, no-repeat;

    padding: 24px 20px 56px;
    color: #ffffff;
}

/* Logos */
.brand-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 18px;
}

.lux-logo {
    width: 70px;
}
.kutumb-logo {
    width: 80px;
}

/* Header text */
.header-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}

.header-subtitle {
    font-size: 13px;
    line-height: 1.4;
    opacity: 0.9;
    max-width: 260px;
    margin: 0;
}

/* ===== CARD CONTAINER (FILL REST SCREEN) ===== */
.register-card {
    background: #ffffff;
    margin: -10px 16px 0;
    padding: 22px;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);

    flex-grow: 1; /* 🔥 THIS IS THE KEY */
    display: flex;
    flex-direction: column;
}

/* Text */
.form-info {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 14px;
}

/* Input */
.custom-input {
    height: 52px;
    border-radius: 14px;
    font-size: 15px;
    margin-bottom: 18px;
}

/* Push button to bottom on tall screens */
.otp-btn {
    margin-top: auto; /* 🔥 pushes button down */
    width: 100%;
    background: #ff4d4f;
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
}

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

/* ===== DESKTOP CENTER ===== */
@media (min-width: 768px) {
    .register-page {
        align-items: center;
    }

    .register-header,
    .register-card {
        max-width: 420px;
        width: 100%;
    }

    .register-card {
        border-radius: 22px;
        margin-top: -40px;
    }
}
/* ===== OTP SECTION ===== */
.otp-section {
    margin-top: 20px;
    display: none; /* hidden initially */
}

.otp-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 8px;
    width: 100%;
}

.otp-inputs input {
    width: 100%;
    height: 52px;
    text-align: center;
    font-size: 18px;
    border-radius: 12px;
    border: 1px solid #ddd;
}

.otp-inputs input:focus {
    outline: none;
    border-color: #3f42c8;
    box-shadow: 0 0 0 2px rgba(63, 66, 200, 0.2);
}

.otp-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
}
/* ===== OTP NOTIFICATION ===== */
.otp-notification {
    display: none;
    margin-top: 12px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #4caf50, #43a047);
    color: #fff;
    border-radius: 10px;
    font-size: 13px;
}

/* ===== TIMER ===== */
.otp-timer {
    margin-top: 10px;
    font-size: 13px;
    color: #3f42c8;
    display: none;
}

/* ===== RESEND ===== */
.resend-otp {
    display: none;
    margin-top: 12px;
    font-size: 13px;
    color: #888;
}

.resend-otp span {
    color: #ff4d4f;
    font-weight: 600;
    cursor: pointer;
    margin-left: 4px;
}
/* Required star */
.required {
    color: #ff4d4f;
    font-weight: 600;
}

/* Error text */
.error-text {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

/* Error input border */
.input-error {
    border-color: #ff4d4f !important;
}
/* ===== REGISTRATION FORM – TIGHT SPACING ===== */

/* Label spacing */
.register-card label {
    margin-bottom: 4px;
    font-size: 14px;
}

/* Input spacing */
.register-card .custom-input {
    margin-bottom: 10px;
}

/* Error text closer to input */
.register-card .error-text {
    margin-top: 2px;
    margin-bottom: 6px;
}

/* Section titles */
.register-card h4 {
    margin-bottom: 4px;
}

.register-card .small-text {
    margin-bottom: 12px;
}

/* Checkbox spacing */
.register-card .form-check {
    margin-top: 6px;
}

/* Button spacing (override old auto margin) */
.register-card .otp-btn {
    margin-top: 16px;
}
/* ===== MOBILE FORM COMPACT SPACING ===== */

/* Title + subtitle */
.register-card h4 {
    margin-bottom: 2px;
}

.register-card .small-text {
    margin-bottom: 10px;
    font-size: 13px;
}

/* Labels */
.register-card label {
    margin-bottom: 3px;
    font-size: 13.5px;
}

/* Inputs */
.register-card .custom-input {
    height: 48px;
    margin-bottom: 8px;
    font-size: 14.5px;
}

/* Error text */
.register-card .error-text {
    margin-top: 2px;
    margin-bottom: 4px;
}

/* Checkbox */
.register-card .form-check {
    margin-top: 4px;
}

/* Button */
.register-card .otp-btn {
    margin-top: 14px;
    padding: 12px;
    font-size: 15px;
}
/* ===== BACK BUTTON (MATCH CONTINUE BUTTON HEIGHT) ===== */
.back-btn {
    width: 100%;
    height: 48px; /* 🔥 FIXED HEIGHT */
    display: flex; /* 🔥 IMPORTANT */
    align-items: center; /* vertical center */
    justify-content: center; /* horizontal center */

    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 14px;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.back-btn:active {
    transform: scale(0.98);
}
/* ===== FIX BUTTON ALIGNMENT IN SHOP DETAIL ===== */
.register-card .action-row {
    display: flex;
    gap: 12px;
}

.register-card .action-row > * {
    flex: 1;
}

/* REMOVE TOP MARGIN EFFECT */
.register-card .action-row .otp-btn,
.register-card .action-row .back-btn {
    margin-top: 0 !important;
}

.line {
    width: 40px;
    height: 3px;
    background: #e0e0e0;
}

.step.active + .line {
    background: #ff4d4f;
}

/* ===== DOCUMENT VERIFICATION ===== */
.document-card {
    background: #fff;
    margin: -32px 16px 0;
    padding: 22px;
    border-radius: 22px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);

    /* 🔥 IMPORTANT FIX */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.verify-btn {
    background: #ffe5e5;
    color: #ff3b3b;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
}

.back-btn-outline {
    border: 1px solid #ff3b3b;
    color: #ff3b3b;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
    text-decoration: none;
}
@media (min-width: 768px) {
    .register-header,
    .register-card,
    .document-card {
        max-width: 420px;
        width: 100%;
    }

    .document-card {
        margin-top: -40px;
    }
}
.document-card .action-row {
    display: flex;
    gap: 12px;
}

.document-card .action-row > * {
    flex: 1;
}
/* ===== DOCUMENT VERIFICATION BUTTON FINAL FIX ===== */
.document-card .action-row {
    display: flex;
    gap: 12px;
    margin-top: auto;
}

.document-card .action-row > * {
    flex: 1;
}

/* BACK BUTTON → BLACK */
.document-card .back-btn-outline {
    height: 48px;
    background: #000000;
    color: #ffffff;
    border: none;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

/* REGISTER BUTTON → RED */
.document-card .otp-btn {
    height: 48px;
    background: #ff2d2d;
    color: #ffffff;
    border-radius: 14px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 15px;
    font-weight: 600;
    padding: 0; /* 🔥 overflow fix */
}

/* ACTIVE FEEDBACK */
.document-card .back-btn-outline:active,
.document-card .otp-btn:active {
    transform: scale(0.97);
}

/* ===== STEPPER ===== */
.stepper-wrap {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin: 20px 16px 20px;
}

/* center line */
.stepper-line {
    position: absolute;
    top: 22px;
    left: 12%;
    width: 76%;
    height: 4px;
    background: #e5e5e5;
    z-index: 0;
}

/* step */
.step {
    position: relative;
    z-index: 1;
    text-align: center;
    width: 33.33%;
}

/* circle */
.step span {
    width: 44px;
    height: 44px;
    background: #e5e5e5;
    color: #555;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin: 0 auto;
}

/* label */
.step p {
    margin-top: 6px;
    font-size: 13px;
    color: #555;
    font-weight: 600;
}

/* active step */
.step.active span {
    background: #ff2d2d;
    color: #fff;
}

.step.active p {
    color: #000;
}

/* fill line till active */
.stepper-wrap .step.active ~ .stepper-line {
    background: #ff2d2d;
}
/* ===== OTP MODAL ===== */
.otp-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.otp-box {
    background: #fff;
    width: 90%;
    max-width: 360px;
    padding: 20px;
    border-radius: 18px;
}

.otp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-otp {
    font-size: 22px;
    cursor: pointer;
}

/* VERIFIED STATE */
.verified {
    border: 2px solid #2e7d32 !important;
    background: #e8f5e9;
}
/* ===============================
   DOWNLOAD PAGE – COMMON
================================ */
.download-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.download-card {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    padding: 28px 22px;
    border-radius: 22px;
    text-align: center;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

.download-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.download-card h2 span {
    color: #ff2d2d;
}

.subtitle {
    font-size: 14px;
    color: #555;
    margin-bottom: 22px;
}

/* ===============================
   DOWNLOAD BUTTON
================================ */
.download-btn {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    transition: transform 0.15s ease;
}

.download-btn:active {
    transform: scale(0.97);
}

/* ===============================
   OS BADGE
================================ */
.os-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 14px;
}

/* ===============================
   MAC THEME
================================ */
.download-page.mac {
    background: linear-gradient(135deg, #eef2f7, #dfe6f1);
}

.download-btn.mac {
    background: linear-gradient(135deg, #000000, #333333);
}

.os-badge.mac {
    background: #000;
    color: #fff;
}

/* ===============================
   WINDOWS THEME
================================ */
.download-page.windows {
    background: linear-gradient(135deg, #e7f1ff, #d6e8ff);
}

.download-btn.windows {
    background: linear-gradient(135deg, #0078d4, #005fa3);
}

.os-badge.windows {
    background: #0078d4;
    color: #fff;
}

/* ===============================
   FOOT NOTE
================================ */
.hint {
    font-size: 12px;
    color: #777;
    margin-top: 18px;
}

/* ===============================
   DESKTOP CENTERING
================================ */
@media (min-width: 768px) {
    .download-card {
        padding: 32px 28px;
    }
}
