/* Public recruitment form. Kept separate from the administrative theme. */
:root {
    --tpi-blue: #075dc4;
    --tpi-blue-dark: #12366c;
    --tpi-blue-light: #eaf3ff;
    --tpi-gray-light: #f3f6fa;
}
body {
    background: #f1f5f9;
    color: #172b4d;
    font-family: 'Segoe UI', Tahoma, sans-serif;
    font-size: 15px;
}
.tpi-header {
    background: linear-gradient(135deg, #0088cc 0%, #006699 100%);
    color: #fff;
    box-shadow: 0 1px 5px rgba(25, 50, 80, .12);
    padding: 14px 24px;
}
.tpi-header h1 { color: #fff; }
.tpi-progress { background: #dce7f2; height: 3px; }
.tpi-progress-fill { background: #075dc4; }
.form-card {
    max-width: 1100px;
    border: 1px solid #e1e8f0;
    box-shadow: 0 8px 28px rgba(30, 58, 95, .06);
}
.step-nav { background: #f7f9fc; border-bottom-color: #e1e8f0; }
.step-item.active { color: #075dc4; border-bottom-color: #075dc4; }
.step-badge { background: #e8edf4; color: #54657c; }
.step-item.active .step-badge { background: #075dc4; }
.step-item.done .step-badge { background: #218451; }
.step-content { padding: 28px; }
.form-control, .form-select, .cs-trigger { border-color: #cbd5e1; }
/* ข้อความที่ผู้สมัครกรอกหรือเลือก รวมถึงกล่องค้นหาในรายการ */
#form1 input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]),
#form1 select,
#form1 textarea,
#form1 .cs-trigger-text,
#form1 .idcard-display,
#bs-search {
    font-size: 16px !important;
}
#form1 input::placeholder,
#form1 textarea::placeholder {
    color: #9ca8b5;
    opacity: 1;
}
#form1 input:focus::placeholder,
#form1 textarea:focus::placeholder {
    opacity: 0;
}
.form-control:focus, .form-select:focus {
    border-color: #4385d5;
    box-shadow: 0 0 0 .2rem rgba(7, 93, 196, .14);
}
.recruit-footer {
    margin-top: 36px;
    padding: 22px 16px;
    text-align: center;
    background: #e9eef5;
    color: #405978;
    font-size: 13px;
}
.recruit-footer-brand { color: #075dc4; font-size: 20px; font-weight: 700; }
.recruit-footer-note { margin-top: 3px; color: #71849e; font-size: 12px; }
@media (max-width: 768px) {
    .tpi-header { padding: 12px 16px; }
    .step-content { padding: 18px 12px; }
    .step-nav { justify-content: space-between; }
    .step-item { flex: 1 0 0; min-width: 40px; padding: 12px 3px; }
}
@media (max-width: 480px) {
    .form-card { margin: 8px; }
}
