/* หน้าลงทะเบียนขอใช้ระบบ — submission/register/form-register-system */

/* ปรับจากไฟล์กลางเฉพาะหน้านี้ */
body {
    background-color: #fdfcf7 !important;
}

.custom-header-bg {
    background: #2d3e5b;
    padding-bottom: 120px;
}

.custom-form-card {
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    margin-top: -80px;
    margin-bottom: 50px;
    z-index: auto;
}

/* กล่องข้อความแจ้งเตือนด้านบน */
.custom-alert-box {
    background-color: #f4f6fa;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    color: #475569;
    font-size: 0.9rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.02);
}

.custom-alert-icon {
    background-color: #2f59a7;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    margin-right: 15px;
    flex-shrink: 0;
}

/* แจ้งผลสำเร็จ / ข้อผิดพลาดจากเซิร์ฟเวอร์ */
.register-system-flash {
    border-radius: 12px;
    padding: 14px 18px;
    display: flex;
    align-items: flex-start;
    font-size: 0.92rem;
    line-height: 1.45;
}

.register-system-flash--success {
    background-color: #ecfdf5;
    border: 1px solid #6ee7b7;
    color: #065f46;
}

.register-system-flash--error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.register-system-flash__icon {
    margin-right: 12px;
    flex-shrink: 0;
    margin-top: 2px;
}

.register-system-error-list {
    padding-left: 1.15rem;
    margin: 0;
}

.register-system-error-list li {
    margin-top: 0.25rem;
}

.form-control.custom-input.is-invalid,
.form-select.custom-input.is-invalid {
    border-color: #dc2626;
    background-color: #fff5f5;
}

.form-control.custom-input.is-invalid:focus,
.form-select.custom-input.is-invalid:focus {
    border-color: #b91c1c;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.register-system-url {
    color: #d97706;
}

/* หัวข้อแต่ละ Section (1, 2, 3) */
.section-header {
    display: flex;
    align-items: center;
    margin-top: 40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.section-number {
    background-color: #1f3a8a;
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    margin-right: 12px;
}

.section-title {
    color: #1f3a8a;
    font-weight: bold;
    font-size: 1.1rem;
    margin: 0;
}

/* สไตล์ช่อง Input */
.form-label {
    color: #475569;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.custom-input {
    padding: 12px 15px;
    color: #334155;
    transition: all 0.2s;
}

.custom-input:focus {
    background-color: #ffffff;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
    outline: none;
}

.custom-input::placeholder {
    color: #94a3b8;
}

/* สไตล์กล่องเลือกโควตา (Radio Cards) */
.quota-radio {
    display: none;
}

.quota-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    color: #1f3a8a;
    font-weight: bold;
    background: #f8fafc;
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.quota-card:hover {
    border-color: #cbd5e1;
    background: #f1f5f9;
}

.quota-radio:checked + .quota-card {
    border-color: #1f3a8a;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(43, 57, 100, 0.1);
}

/* ช่องโควต้า: ซ่อน/แสดงด้วยคลาส (สลับจาก JS) */
.quota-input-container {
    display: none;
}

.quota-input-container.quota-input-container--visible {
    display: block;
}

/* สไตล์ปุ่มกด */
.btn-cancel {
    background-color: #cc453b;
    color: white;
    border-radius: 30px;
    padding: 12px 40px;
    font-weight: bold;
    border: none;
    width: 200px;
}

.btn-cancel:hover {
    background-color: #b5382f;
    color: white;
}

.btn-submit {
    background-color: #57b685;
    color: white;
    border-radius: 30px;
    padding: 12px 40px;
    font-weight: bold;
    border: none;
    width: 200px;
}

.btn-submit:hover {
    background-color: #499f73;
    color: white;
}

.register-system-footer-note {
    color: #94a3b8;
}
