/* ===== step1.css — รวม index_loan.css + otp.css ===== */

/* ===== Progress Bar ===== */
.otp-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.progress-bar-active {
    height: 8px;
    background: #cc0c13;
    border-radius: 10px;
    transition: flex 0.4s ease;
}

.progress-bar-empty {
    height: 8px;
    background: #f0f0f0;
    border-radius: 10px;
    transition: flex 0.4s ease;
}

.progress-label {
    white-space: nowrap;
    color: #888;
    font-size: 0.78rem;
}

.progress-label span {
    color: #cc0c13;
    font-weight: 700;
}

.progress-text {
    white-space: nowrap;
    color: #000000;
    font-size: 0.78rem;
}

.progress-text span {
    color: #cc0c13;
    font-weight: 700;
}

/* ===== Qualification Block ===== */
.qualify-block {
    margin-bottom: 24px;
}

.qualify-title {
    color: #000000;
    font-weight: 700;
    font-size: 1.1rem;
    color: #e62129;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 8px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 10px 24px;
}

.qualify-subtitle {
    font-weight: 700;
    font-size: 1rem;
    color: #000000;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 12px;
    margin-left: -24px;
    margin-right: -24px;
    padding: 10px 40px;
}

/* ===== Document Block ===== */
.doc-block {
    background: #ebeff2;
    border-radius: 24px;
    padding: 15px;
    margin-bottom: 24px;
}

.doc-title {
    color: #000000;
    font-weight: 700;
    font-size: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    margin-bottom: 8px;
    padding: 10px;
}

.doc-desc {
    font-size: 0.8rem;
    color: #e62129;
    line-height: 1.6;
    margin-bottom: 14px;
}

/* ===== Checklist ===== */
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    padding-left: 20px;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 1rem;
    line-height: 1.5;
    color: #000000;
}

.check-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* ===== Document List ===== */
.doc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.doc-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 1rem;
    color: #000000;
    border-bottom: 1px solid #eee;
}

.doc-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.doc-check {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.doc-pin {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
}

/* ===== Privacy Notice ===== */
.privacy-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    background: #e6e6e6;
    border-radius: 20px;
    font-size: 0.9rem;
    color: #000000;
    line-height: 1.6;
}

.privacy-notice svg {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ===== Next Button (red gradient pill) ===== */
.btn-next {
    width: 50%;
    display: block;
    margin: 0 auto 10px;
    background: linear-gradient(to bottom, #ff5252, #b71c1c);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
    transition: opacity 0.2s, transform 0.1s;
}

.btn-next:hover {
    opacity: 0.92;
}

.btn-next:active {
    transform: scale(0.97);
}

/* ===== Footer Disclaimer ===== */
.footer-disclaimer {
    text-align: center;
    padding: 16px 24px 20px;
    color: #d82027;
    font-size: 0.82rem;
    font-weight: 600;
}

/* ===== Consent Popup ===== */
.consent-popup {
    border-radius: 16px !important;
    padding: 28px 20px 20px !important;
    font-family: 'Prompt', sans-serif !important;
    max-width: 420px !important;
}

.consent-title {
    font-family: 'Prompt', sans-serif !important;
    font-size: 1.3rem !important;
    font-weight: 700 !important;
    color: #222 !important;
    padding: 0 0 8px !important;
}

.consent-body {
    text-align: left;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #444;
    max-height: 50vh;
    overflow-y: auto;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid #eee;
}

.consent-body p {
    margin-bottom: 12px;
}

.consent-body strong {
    color: #222;
}

.consent-warning {
    color: #d82027 !important;
    font-weight: 600;
    background: #fef2f2;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid #d82027;
    margin-top: 8px;
}

.consent-actions {
    gap: 12px !important;
    margin-top: 8px !important;
}

.consent-btn-confirm {
    background: linear-gradient(to bottom, #4caf50, #2e7d32) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 32px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    font-family: 'Prompt', sans-serif !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3) !important;
    transition: opacity 0.2s, transform 0.1s !important;
}

.consent-btn-confirm:hover {
    opacity: 0.92 !important;
}

.consent-btn-cancel {
    background: linear-gradient(to bottom, #ff5252, #b71c1c) !important;
    color: #fff !important;
    border: none !important;
    padding: 12px 32px !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    font-family: 'Prompt', sans-serif !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3) !important;
    transition: opacity 0.2s, transform 0.1s !important;
}

.consent-btn-cancel:hover {
    opacity: 0.92 !important;
}

/* ===== Consent Page (step1Page2) ===== */
.consent-warning-text {
    color: #d82027;
    font-weight: 600;
    background: #fef2f2;
    padding: 10px 12px;
    border-radius: 8px;
    border-left: 3px solid #d82027;
    margin-top: 8px;
}

.consent-page-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.consent-confirm-check {
    margin-bottom: 16px;
}

.consent-confirm-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1.6;
    color: #000000;
}

.consent-confirm-label input[type="checkbox"] {
    display: none;
}

.consent-confirm-dot {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background: #fff;
    display: inline-block;
    margin-top: 3px;
    transition: all 0.2s;
}

.consent-confirm-label input[type="checkbox"]:checked ~ .consent-confirm-dot {
    background: #d82027;
    border-color: #d82027;
}

.consent-confirm-text {
    flex: 1;
}

.consent-page-btn-next {
    width: 50%;
    background: linear-gradient(to bottom, #bbb, #999);
    color: #fff;
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: not-allowed;
    font-family: 'Prompt', sans-serif;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
}

.consent-page-btn-next:not(:disabled) {
    background: linear-gradient(to bottom, #ff5252, #b71c1c);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
}

.consent-page-btn-next:not(:disabled):hover {
    opacity: 0.92;
}

.consent-page-btn-next:not(:disabled):active {
    transform: scale(0.97);
}

/* ===== OTP Section ===== */

/* Hero Image */
.otp-illustration {
    text-align: center;
    margin-top: 30px;
    margin-bottom: 25px;
}

.otp-illustration img {
    width: 55%;
    max-width: 200px;
    height: auto;
    rotate: 5deg;
}

/* Form Group */
.form-group {
    margin-bottom: 10px;
}

.otp-label {
    display: block;
    font-weight: 500;
    color: #333;
    margin-bottom: 12px;
    font-size: 1rem;
}

/* Input with border wrapper */
.input-with-button,
.input-full {
    border: 4px solid #c0c0c0;
    border-radius: 20px;
    padding: 4px 6px 4px 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    transition: border-color 0.2s;
}

.input-with-button:focus-within,
.input-full:focus-within {
    border-color: #d32f2f;
}

.input-with-button input,
.input-full input {
    border: none;
    outline: none;
    padding: 12px 0;
    width: 100%;
    font-size: 1rem;
    color: #333;
    font-family: 'Prompt', 'Sarabun', sans-serif;
    background: transparent;
}

.input-with-button input::placeholder,
.input-full input::placeholder {
    color: #aaa;
}

/* OTP inline button */
.btn-otp {
    background: linear-gradient(to bottom, #ff5252, #b71c1c);
    color: white;
    border: none;
    padding: 5px 20px;
    border-radius: 15px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 500;
    font-family: 'Prompt', 'Sarabun', sans-serif;
    transition: opacity 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.btn-otp:hover {
    opacity: 0.9;
}

.btn-otp:active {
    transform: scale(0.96);
}

.btn-otp:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Footer / Submit button */
.otp-footer {
    padding-top: 24px;
    text-align: center;
}

.btn-submit {
    width: 80%;
    display: block;
    margin: 0 auto 10px;
    background: linear-gradient(to bottom, #ff5252, #b71c1c);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Prompt', 'Sarabun', sans-serif;
    box-shadow: 0 4px 12px rgba(183, 28, 28, 0.3);
    transition: opacity 0.2s, transform 0.1s;
}

.btn-submit:hover {
    opacity: 0.92;
}

.btn-submit:active {
    transform: scale(0.97);
}



#otpTimer {
    text-align: center;
    font-size: 0.85rem;
    margin-top: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 360px) {
    .content-section {
        padding: 0 18px 20px;
    }

    .progress-section {
        padding: 16px 18px 12px;
    }
}

/* ===== ThaID Login Section ===== */
.thaid-section {
    margin-top: 28px;
    text-align: center;
}

.thaid-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1a237e;
    margin-bottom: 8px;
}

.thaid-desc {
    font-size: 0.88rem;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}

.thaid-divider {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.thaid-divider::before,
.thaid-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #ddd;
}

.thaid-divider span {
    padding: 0 14px;
    font-size: 0.85rem;
    color: #888;
    white-space: nowrap;
}

.btn-thaid {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #1a237e, #283593);
    color: white;
    border: none;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Prompt', 'Sarabun', sans-serif;
    box-shadow: 0 4px 14px rgba(26, 35, 126, 0.35);
    transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
}

.btn-thaid:hover {
    opacity: 0.92;
    box-shadow: 0 6px 18px rgba(26, 35, 126, 0.45);
}

.btn-thaid:active {
    transform: scale(0.97);
}

.btn-thaid:disabled {
    background: #9e9e9e;
    cursor: not-allowed;
    box-shadow: none;
}

.thaid-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.thaid-hint {
    margin-top: 10px;
    font-size: 0.75rem;
    color: #999;
    line-height: 1.4;
}
