
.step2-banner {
    background: linear-gradient(135deg, #fff5f5 0%, #fff 100%);
    border: 1.5px solid #f0d0d0;
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 22px;
    text-align: center;
    position: relative;
    overflow: hidden;
}



.step2-banner-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #c62828;
}

.step2-banner-sub {
    font-size: 0.7rem;
    color: #000000;
    margin-top: 4px;
    font-weight: 400;
}

/* ===== Section Titles ===== */
.section-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fb0808;
    margin: 20px 0 12px;
    text-align: left;
    padding-bottom: 6px;
    border-bottom: 2px solid #f0f0f0;
}

/* ===== Required asterisk ===== */
.required {
    color: #d82027;
    margin-left: 1px;
    font-weight: 700;
}

/* ===== Step-styled form elements (red borders) ===== */
.step-styled {
    text-align: left;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-styled .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #222;
    margin-bottom: 6px;
}

.step-styled .form-control,
.step-styled .form-select {
    border: 1px solid #e51c23;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.9rem;
    color: #333;
    font-family: 'Prompt', 'Sarabun', sans-serif;
}

.step-styled .form-control:focus,
.step-styled .form-select:focus {
    border-color: #b71c1c;
    box-shadow: 0 0 0 2px rgba(216, 32, 39, 0.15);
}

.step-styled .form-control:disabled,
.step-styled .form-control[readonly] {
    border-color: #ccc;
    background-color: #f5f5f5;
}

.step-styled .form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23d82027' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-size: 14px 10px;
}

/* ===== Next Step Button ===== */
.btn-next-step {
    display: inline-block;
    width: 60%;
    background: linear-gradient(to bottom, #ff5252, #b71c1c);
    color: white;
    border: none;
    padding: 14px;
    font-size: 1.05rem;
    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-next-step:hover {
    opacity: 0.92;
}

.btn-next-step:active {
    transform: scale(0.97);
}

/* ===== Step 2 Sub-page ===== */
.step2-subpage {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== Step 2 Button Group (inside card) ===== */
.step2-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0 10px;
    margin-top: auto;
}

/* ===== Step 2 Back Button ===== */
.step2-back-btn {
    display: inline-block;
    width: 35%;
    background: #fff;
    color: #d82027;
    border: 2px solid #d82027;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Prompt', 'Sarabun', sans-serif;
    transition: opacity 0.2s, transform 0.1s;
}

.step2-back-btn:hover {
    background: #fef2f2;
}

.step2-back-btn:active {
    transform: scale(0.97);
}

/* ===== Step2 Phone Input (override step1 input-with-button) ===== */
.step-styled .input-with-button {
    border: 1px solid #e51c23;
    border-radius: 10px;
    padding: 2px 4px 2px 10px;
    margin-bottom: 0;
}

.step-styled .input-with-button:has(input[readonly]) {
    border-color: #ccc;
    background-color: #f5f5f5;
    padding: 0;
}

.step-styled .input-with-button:has(input[readonly]) input {
    padding: 10px 14px;
    background-color: #f5f5f5;
    border-radius: 10px;
}

.step-styled .input-with-button:focus-within {
    border-color: #b71c1c;
    box-shadow: 0 0 0 2px rgba(216, 32, 39, 0.15);
}

.step-styled .input-with-button input {
    padding: 8px 0;
    font-size: 0.9rem;
}

/* ===== Invalid field highlight ===== */
.step-styled .form-control.is-invalid,
.step-styled .form-select.is-invalid {
    border-color: #d82027 !important;
    background-color: #fff5f5 !important;
    box-shadow: 0 0 0 2px rgba(216, 32, 39, 0.12);
}

.step-styled .form-control.is-invalid:focus,
.step-styled .form-select.is-invalid:focus {
    border-color: #b71c1c !important;
    box-shadow: 0 0 0 3px rgba(216, 32, 39, 0.2);
}

/* ===== Swal Red Button ===== */
.swal-btn-red {
    background: linear-gradient(to bottom, #ff5252, #b71c1c);
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 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);
    margin: 0 6px;
}

.swal-btn-cancel {
    background: #fff;
    color: #d82027;
    border: 2px solid #d82027;
    padding: 12px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Prompt', 'Sarabun', sans-serif;
    margin: 0 6px;
}

/* ===== OTP Digit Inputs (SweetAlert popup) ===== */
.swal-otp-input {
    width: 44px;
    height: 50px;
    font-size: 1.4rem;
    text-align: center;
    border: 3px solid #c0c0c0;
    border-radius: 12px;
    margin: 0 3px;
    font-family: 'Prompt', 'Sarabun', sans-serif;
    font-weight: 700;
    transition: border-color 0.2s;
}

.swal-otp-input:focus {
    border-color: #d32f2f;
    outline: none;
    box-shadow: 0 0 0 2px rgba(211, 47, 47, 0.15);
}

.swal-btn-red:hover {
    opacity: 0.92;
}

.swal-btn-red:active {
    transform: scale(0.97);
}

/* ===== Swal Red Title ===== */
.swal-title-red {
    color: #c62828 !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
}

/* ===== Swal Info Icon → Red ===== */
.swal2-icon.swal2-info {
    border-color: #d82027 !important;
    color: #d82027 !important;
}

/* ===== Swal Text Custom ===== */
.swal-text-custom {
    text-align: left;
    font-size: 0.9rem;
    color: #444;
    line-height: 1.7;
    margin: 0;
}

/* ===== Step2 Consent Pages ===== */
.marketing-consent-subtitle {
    font-size: 12px;
    color: #888;
    line-height: 1.4;
}

.marketing-channel-list {
    font-size: 14px;
    padding-left: 20px;
    margin-bottom: 4px;
}

.marketing-channel-list li {
    margin-bottom: 2px;
}

/* ===== Step2Page5 Camera Permission ===== */
#step2Page5 {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 120px);
}

.permission-card {
    background: #f0f0f0;
    border: none;
    border-radius: 16px;
    padding: 28px 20px 20px;
    max-width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.permission-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.permission-icon img,
.permission-icon svg {
    width: 48px;
    height: 48px;
}

.permission-card h6 {
    color: #222;
    font-size: 1rem;
    line-height: 1.5;
}

.permission-desc {
    font-size: 1rem;
    color: #000000;
    line-height: 1.5;
    margin-bottom: 0;
}

.permission-desc-list {
    font-size: 1rem;
    color: #000000;
    line-height: 1.5;
    padding-left: 20px;
    margin-bottom: 8px;
}

.permission-options {
    display: flex;
    justify-content: center;
    gap: 36px;
    font-size: 0.95rem;
    font-weight: 600;
    margin-top: 20px;
}

.permission-options label {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.permission-options input[type="radio"] {
    accent-color: #d82027;
    width: 18px;
    height: 18px;
}

/* ===== Camera Page Red Buttons ===== */
.btn-camera-red {
    background: linear-gradient(to bottom, #ff5252, #b71c1c);
    color: white;
    border: none;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Prompt', 'Sarabun', sans-serif;
    box-shadow: 0 4px 10px rgba(183, 28, 28, 0.3);
    transition: opacity 0.2s, transform 0.1s;
}

.btn-camera-red:hover {
    opacity: 0.92;
}

.btn-camera-red:active {
    transform: scale(0.97);
}

.btn-camera-red:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== Camera Guide Overlay ===== */
.camera-guide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.camera-guide-overlay svg {
    width: 100%;
    height: 100%;
}

