/* Nền trang */
body {
    background: #eef7ff;
}

/* khung trang để canh giữa theo chiều ngang, giống thiết kế */
.page-wrap {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 12px;
}

/* card form */
.app-card {
    width: 100%;
    max-width: 680px;
    background: #fff;
    border: 0;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    padding: 24px;
}

.banner {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: center/cover no-repeat;
    margin: 0 auto 18px;
}

.card-title {
    color: #0ea5e9;
    font-weight: 700;
    text-align: center;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 12px;
}

.radio-group {
    display: flex;
    gap: 24px;
}

.danger-note {
    font-size: .9rem;
    color: #b91c1c;
    background: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 10px 12px;
}

/* Khi select chưa chọn (value rỗng, required) → chữ mờ */
select.placeholder-light:invalid {
    color: #9aa0a6;
    /* xám nhạt */
}

/* Khi đã chọn giá trị hợp lệ → trở lại màu bình thường */
select.placeholder-light:not(:invalid) {
    color: #212529;
    /* Bootstrap text color */
}

/* Phòng trường hợp 1 số trình duyệt vẫn lấy màu từ option */
select.placeholder-light option {
    color: #212529;
}

select.placeholder-light option[value=""] {
    color: #9aa0a6;
}

/* Với widget PlaceholderSelect, option rỗng đã hidden+disabled nên không lộ trong list,
   nhưng khi render đóng select, nó vẫn hiển thị như placeholder với màu xám. */

.money-group .btn {
    width: 48px;
    font-weight: 700;
}

.money-group .form-control {
    text-align: right;
}

/* ===== Custom checkbox tròn xanh ===== */
.form-check.custom-check {
    display: flex;
    align-items: center;
    /* label canh giữa checkbox */
    gap: 10px;
    margin-bottom: .75rem;
}

.form-check.custom-check .form-check-input {
    /* xoá style mặc định trình duyệt + bootstrap */
    -webkit-appearance: none;
    appearance: none;
    background-image: none !important;
    /* đè icon check của Bootstrap */
    background-color: #fff;
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 3px solid #18c3ff;
    /* viền xanh */
    outline: none;
    cursor: pointer;
    transition: border-color .12s ease, box-shadow .12s ease, background-color .12s ease;
}

/* chấm trắng bên trong (ẩn khi chưa check) */
.form-check.custom-check .form-check-input::after {
    content: "";
    position: absolute;
    inset: 4px;
    /* khoảng cách viền → tạo “tâm” */
    border-radius: 50%;
    background: #fff;
    transform: scale(0);
    /* ẩn */
    transition: transform .12s ease;
}

/* trạng thái checked: nền xanh, hiện tâm trắng rõ ràng */
.form-check.custom-check .form-check-input:checked {
    background-color: #18c3ff !important;
    border-color: #18c3ff !important;
}

.form-check.custom-check .form-check-input:checked::after {
    transform: scale(1);
    /* hiện tâm trắng */
}

/* focus ring nhẹ */
.form-check.custom-check .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(24, 195, 255, .25);
}

/* label */
.form-check.custom-check .form-check-label {
    margin: 0;
    line-height: 1.6;
    cursor: pointer;
}