/* ===== Step 3 Styles ===== */

/* ===== Step 3 Banner (Red solid) ===== */
.step3-banner {
    background: linear-gradient(135deg, #d82027 0%, #b71c1c 100%);
    border-radius: 14px;
    padding: 18px 20px;
    margin-bottom: 22px;
    text-align: center;
}

.step3-banner-title {
    font-weight: 700;
    font-size: 1.05rem;
    color: #fff;
}

.step3-banner-sub {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 4px;
    font-weight: 400;
}

/* ===== Step 3 Sub-page ===== */
.step3-subpage {
    padding: 0;
}

/* ===== Step 3 Form Labels ===== */
.step3-form .form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.step3-form .form-label .required {
    color: #d82027;
    font-weight: 700;
}

/* ===== Step 3 Form Controls (red border on focus) ===== */
.step3-form .form-control,
.step3-form .form-select {
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.9rem;
    padding: 10px 14px;
    transition: border-color 0.2s;
}

.step3-form .form-control:focus,
.step3-form .form-select:focus {
    border-color: #d82027;
    box-shadow: 0 0 0 2px rgba(216, 32, 39, 0.12);
}

.step3-form .form-control.is-invalid,
.step3-form .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 3 Button Group ===== */
.step3-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0 10px;
    margin-top: auto;
}

/* ===== Address Section Header ===== */
.address-section-header {
    display: inline-block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #d82027;
    margin-bottom: 14px;
    padding-bottom: 6px;
    border-bottom: 2px solid #f0f0f0;
}

.address-section-header .required {
    color: #d82027;
    margin-left: 2px;
}

/* ===== Copy Address Checkbox Label ===== */
.copy-address-label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #333;
    cursor: pointer;
    user-select: none;
}

.copy-address-label .form-check-input {
    width: 16px;
    height: 16px;
    border: 1.5px solid #d82027;
    border-radius: 3px;
    cursor: pointer;
}

.copy-address-label .form-check-input:checked {
    background-color: #d82027;
    border-color: #d82027;
}

/* step3Page10 uses shared .consent-scrollable-box from pre_loan.css */

/* ===== Review Page (step3Page9) ===== */
.review-data-container {
    text-align: left;
    padding: 0 2px;
}

.review-section-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #d82027;
    margin: 18px 0 10px;
    padding-bottom: 6px;
    border-bottom: 2px solid #d82027;
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-section-title:first-child {
    margin-top: 0;
}

.review-sub-title {
    font-weight: 600;
    font-size: 0.82rem;
    color: #555;
    margin: 12px 0 6px;
    padding-left: 4px;
}

.review-table {
    width: 100%;
    font-size: 0.78rem;
    border-collapse: collapse;
    margin-bottom: 4px;
}

.review-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: top;
}

.review-table td:first-child {
    color: #666;
    width: 45%;
    font-weight: 500;
}

.review-table td:last-child {
    color: #222;
    font-weight: 600;
}

.review-table tr:last-child td {
    border-bottom: none;
}

/* Warning Box */
.review-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: linear-gradient(135deg, #fff8e1 0%, #fff3cd 100%);
    border: 1px solid #ffc107;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0 8px;
}

.review-warning-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 1px;
}

.review-warning-text {
    font-size: 0.76rem;
    color: #6d5600;
    line-height: 1.5;
}

/* Review Button Group */
.review-btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 0 10px;
    margin-top: auto;
}

.btn-review-confirm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 48%;
    background: linear-gradient(to bottom, #ff5252, #b71c1c);
    color: #fff;
    border: none;
    padding: 14px 20px;
    font-size: 0.95rem;
    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;
    white-space: nowrap;
}

.btn-review-confirm:hover {
    opacity: 0.92;
}

.btn-review-confirm:active {
    transform: scale(0.97);
}

.btn-review-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: auto;
    min-width: 42%;
    background: #fff;
    color: #555;
    border: 2px solid #ccc;
    padding: 14px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Prompt', 'Sarabun', sans-serif;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.btn-review-back:hover {
    border-color: #999;
    color: #333;
}

.btn-review-back:active {
    transform: scale(0.97);
}
