@font-face{font-family:"THSarabunPSK";src:url("fonts/THSarabun.ttf") format("truetype");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"THSarabunPSK";src:url("fonts/THSarabun%20Bold.ttf") format("truetype");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"THSarabunPSK";src:url("fonts/THSarabun%20Italic.ttf") format("truetype");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"THSarabunPSK";src:url("fonts/THSarabun%20BoldItalic.ttf") format("truetype");font-weight:700;font-style:italic;font-display:swap}
*{box-sizing:border-box;font-family:"THSarabunPSK","TH SarabunPSK","TH Sarabun New",Arial,sans-serif}body{margin:0;background:#eef3f8;color:#1f2937}.topbar{background:linear-gradient(135deg,#006b3f,#00994f);color:#fff;padding:22px 16px;text-align:center;box-shadow:0 3px 10px rgba(0,0,0,.15);border-bottom:4px solid #ffd400;position:relative}.staff-corner-link{position:absolute;top:8px;right:0;z-index:5;background:rgba(255,255,255,.08);color:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.12);border-radius:999px 0 0 999px;padding:4px 7px 4px 9px;font-size:13px;text-decoration:none;line-height:1;transition:.2s}.staff-corner-link:hover,.staff-corner-link:focus{background:rgba(255,255,255,.95);color:#008047;border-color:#fff;opacity:1}.topbar-brand{max-width:1100px;margin:0 auto;display:flex;align-items:center;justify-content:center;gap:18px}.topbar-title-group{text-align:center}.topbar-logo{width:96px;height:96px;object-fit:contain;flex:0 0 auto}.topbar h1{margin:0;font-size:42px;line-height:1.05;font-weight:700}.topbar p{margin:6px 0 0;opacity:.95;font-size:20px}.nav{max-width:1100px;margin:16px auto 0;padding:0 12px;display:flex;gap:8px;flex-wrap:wrap;justify-content:center}.wrap{max-width:1100px;margin:16px auto 40px;padding:0 12px}.wrap.small{max-width:520px}.card{background:#fff;border-radius:14px;padding:18px;box-shadow:0 3px 16px rgba(0,0,0,.08);margin-bottom:16px}.btn{border:0;border-radius:10px;padding:10px 16px;cursor:pointer;background:#0f6db3;color:#fff;font-size:16px;text-decoration:none;display:inline-block}.btn.secondary{background:#374151}.btn.danger{background:#b91c1c}.btn.mini{padding:6px 10px;font-size:14px}.section-title{background:#e5edf7;border-left:6px solid #0f6db3;padding:8px 12px;border-radius:8px;margin:18px 0 12px;font-weight:700;color:#0f3d65}.grid{display:grid;grid-template-columns:repeat(12,1fr);gap:10px}.col-12{grid-column:span 12}.col-8{grid-column:span 8}.col-6{grid-column:span 6}.col-4{grid-column:span 4}.col-3{grid-column:span 3}label{display:block;font-size:15px;margin-bottom:4px;color:#374151}.inline{display:inline-flex;align-items:center;gap:6px;margin:0;white-space:nowrap}input,textarea,select{width:100%;border:1px solid #cbd5e1;border-radius:9px;padding:9px 10px;font-size:16px;background:#fff}textarea{min-height:72px;resize:vertical}.fixed-input{background:#f3f4f6!important;font-weight:700;color:#111827;cursor:not-allowed} .inline input{width:auto}.check-row{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin-top:6px}.actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin-top:18px}.notice{padding:10px 12px;border-radius:10px;margin:12px 0}.success{background:#dcfce7;color:#166534}.error{background:#fee2e2;color:#991b1b}.req{color:#b91c1c}.mt{margin-top:10px}.mt-label{margin-top:12px}.search-form{display:flex;gap:8px;margin-bottom:12px}.search-form input{flex:1}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:15px}th,td{border-bottom:1px solid #e5e7eb;padding:9px;text-align:left}th{background:#f1f5f9}.center{text-align:center}.print-area{background:#fff;color:#000}.a4{width:210mm;min-height:297mm;margin:0 auto 12px;background:#fff;padding:10mm;border:1px solid #ccc;font-size:18px;line-height:1.35;position:relative}.form-box{border:2px solid #000;min-height:270mm}.form-header{display:grid;grid-template-columns:1fr 38mm;border-bottom:2px solid #000}.form-title{text-align:center;padding:16mm 0 8mm;font-weight:700;font-size:25px}.photo-box{border-left:2px solid #000;display:flex;align-items:center;justify-content:center;text-align:center;font-size:15px;min-height:33mm;overflow:hidden}.photo-box img{width:100%;height:100%;object-fit:cover}.line-row{display:grid;grid-template-columns:1fr 1fr;border-bottom:1px solid #000}.line-row.three{grid-template-columns:1fr 1fr 1fr}.cell{padding:3px 5px;min-height:27px}.bar{text-align:center;background:#e5e7eb;border-top:1px solid #000;border-bottom:1px solid #000;font-weight:700;padding:3px}.full-line{padding:4px 5px;border-bottom:1px solid #000;min-height:28px}.small-line{font-size:16px}.checkbox-print{display:inline-block;width:12px;height:12px;border:1px solid #000;margin:0 4px -1px 8px;text-align:center;line-height:10px;font-size:12px}.page2-box{padding:14mm}.underline{text-decoration:underline}.certify{margin-top:25mm;font-weight:700}.right-sign{text-align:right;margin-right:20mm}.sign-lines{margin-top:22mm;padding:0 8mm;font-size:18px}.sign-lines div{margin:10mm 0}.staff-sign{margin-top:25mm;padding-left:8mm}.hidden{display:none!important}@media(max-width:800px){.staff-corner-link{top:6px;right:0;font-size:11px;padding:3px 5px 3px 7px;color:rgba(255,255,255,.12)}.topbar-brand{gap:10px}.topbar-logo{width:62px;height:62px}.topbar h1{font-size:28px}.topbar p{font-size:16px}.col-8,.col-6,.col-4,.col-3{grid-column:span 12}.a4{width:100%;min-height:auto;padding:8px;font-size:15px}.search-form{display:block}.search-form button{margin-top:8px;width:100%}}@media print{body{background:#fff}.no-print,.topbar,.nav{display:none!important}.wrap{max-width:none;margin:0;padding:0}.card{box-shadow:none;padding:0;margin:0}.a4{border:0;margin:0;page-break-after:always;padding:8mm}.form-box{min-height:278mm}}

.filter-grid{display:grid;grid-template-columns:1fr 1fr auto;gap:10px;align-items:end}.filter-actions{display:flex;gap:8px;flex-wrap:wrap}.stats-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.stat-card{border:1px solid #dbe4ef;border-radius:14px;padding:14px;background:#f8fafc}.stat-label{color:#475569;font-size:16px}.stat-number{font-size:34px;font-weight:700;color:#0f6db3;line-height:1}.stat-sub{color:#64748b;margin-top:4px}@media(max-width:800px){.filter-grid{grid-template-columns:1fr}.filter-actions .btn{width:100%;text-align:center}.stats-row{grid-template-columns:1fr}}
.report-filter-grid{grid-template-columns:1fr 1fr 1fr 1.4fr auto}
@media(max-width:1000px){.report-filter-grid{grid-template-columns:1fr 1fr}.report-filter-grid .filter-actions{grid-column:span 2}}
@media(max-width:800px){.report-filter-grid{grid-template-columns:1fr}.report-filter-grid .filter-actions{grid-column:auto}}

/* ===== v6: หน้า ดู/พิมพ์ ให้ใกล้เคียงไฟล์แนบที่สุด โดยใช้ภาพแบบฟอร์มเป็นพื้นหลัง ===== */
.template-print-area{background:#f1f5f9;color:#000;padding:12px 0 40px}.template-page{width:210mm;height:297mm;position:relative;margin:0 auto 14px;background:#fff;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.18)}.template-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;z-index:1}.overlay-field{position:absolute;z-index:2;display:block;line-height:1.02;font-family:"THSarabunPSK","TH SarabunPSK","TH Sarabun New",Arial,sans-serif;font-weight:400;color:#000;white-space:nowrap;overflow:hidden;text-overflow:clip;padding:0 .4mm}.overlay-multiline{white-space:normal;line-height:1.0;max-height:9mm}.overlay-tick{position:absolute;z-index:3;display:block;width:4.0mm;height:4.0mm;line-height:4.0mm;text-align:center;font-family:"THSarabunPSK","TH SarabunPSK","TH Sarabun New",Arial,sans-serif;font-size:11.5pt;font-weight:700;color:#000}.overlay-photo{position:absolute;z-index:2;left:165.1mm;top:5.7mm;width:36.7mm;height:34.6mm;overflow:hidden;background:#fff}.overlay-photo img{width:100%;height:100%;object-fit:cover;display:block}
@page{size:A4;margin:0}@media print{html,body{width:210mm;margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.template-print-area{padding:0!important;margin:0!important;background:#fff!important}.template-page{width:210mm!important;height:297mm!important;margin:0!important;box-shadow:none!important;page-break-after:always;break-after:page}.template-page:last-child{page-break-after:auto;break-after:auto}.template-bg{width:210mm!important;height:297mm!important}.overlay-field,.overlay-tick,.overlay-photo{print-color-adjust:exact;-webkit-print-color-adjust:exact}}


/* ===== v9: แบบฟอร์มพิมพ์ตามไฟล์ ใบสมัคร 2569-71.pdf ===== */
.template-print-area{background:#f1f5f9;color:#000;padding:12px 0 40px}.template-page{width:210mm;height:297mm;position:relative;margin:0 auto 14px;background:#fff;overflow:hidden;box-shadow:0 2px 12px rgba(0,0,0,.18)}.template-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;z-index:1}.overlay-field{position:absolute;z-index:2;display:block;line-height:.9;font-family:"THSarabunPSK","TH SarabunPSK","TH Sarabun New",Arial,sans-serif;font-weight:400;color:#000;white-space:nowrap;overflow:hidden;text-overflow:clip;padding:0 .35mm}.overlay-multiline{white-space:normal;line-height:.9;max-height:7mm}.overlay-tick{position:absolute;z-index:3;display:block;width:4.2mm;height:4.2mm;line-height:4.2mm;text-align:center;font-family:"THSarabunPSK","TH SarabunPSK","TH Sarabun New",Arial,sans-serif;font-size:15.5pt;font-weight:700;color:#000}.overlay-photo{position:absolute;z-index:2;left:168.0mm;top:9.3mm;width:26.7mm;height:37.1mm;overflow:hidden;background:#fff}.overlay-photo img{width:100%;height:100%;object-fit:cover;display:block}@page{size:A4;margin:0}@media print{html,body{width:210mm;margin:0!important;padding:0!important;background:#fff!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.template-print-area{padding:0!important;margin:0!important;background:#fff!important}.template-page{width:210mm!important;height:297mm!important;margin:0!important;box-shadow:none!important;page-break-after:always;break-after:page}.template-page:last-child{page-break-after:auto;break-after:auto}.template-bg{width:210mm!important;height:297mm!important}.overlay-field,.overlay-tick,.overlay-photo{print-color-adjust:exact;-webkit-print-color-adjust:exact}}

.quick-search-card{border:2px solid #facc15;background:#fffef2}.muted-text{color:#475569;margin-top:-4px}.cid-search-form input{font-size:18px;font-weight:600;letter-spacing:.5px}

/* ===== v15: ปุ่มดาวน์โหลด PDF บนมือถือ ===== */
.pdf-status{display:inline-flex;align-items:center;color:#fff;font-size:16px;padding:8px 4px}.btn:disabled{opacity:.65;cursor:not-allowed}
@media(max-width:800px){.pdf-status{width:100%;justify-content:center}.nav .btn{font-size:15px;padding:9px 12px}}

/* ===== v21: เลือก บก.น. / สน. ในหน้าแรก ===== */
.unit-picker{display:grid;grid-template-columns:1fr 1fr;gap:8px}.field-help{display:block;margin-top:4px;color:#64748b;font-size:14px}.fixed-input{background:#f8fafc;color:#334155;font-weight:700}@media(max-width:800px){.unit-picker{grid-template-columns:1fr}}

.zone-summary-row{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:800px){.zone-summary-row{grid-template-columns:1fr}}

.action-buttons{display:flex;gap:6px;align-items:center;flex-wrap:nowrap}.inline-delete{display:inline;margin:0}.inline-delete button{white-space:nowrap}@media(max-width:800px){.action-buttons{flex-wrap:wrap}}


/* ===== v32: กรอบอัปโหลดรูป 1.5 x 1.5 นิ้ว ด้านขวาบน พร้อม preview ===== */
.application-head-grid{display:grid;grid-template-columns:minmax(0,1fr) 130px;gap:14px;align-items:start}.application-head-fields{min-width:0}.photo-upload-card{justify-self:end;text-align:center;background:#f8fafc;border:1px solid #dbe4ef;border-radius:12px;padding:8px;box-shadow:0 2px 8px rgba(15,23,42,.06)}.photo-upload-label{font-weight:700;color:#0f3d65;margin-bottom:6px;font-size:14px}.photo-frame{width:108px;height:108px;display:flex;align-items:center;justify-content:center;border:2px dashed #0f6db3;border-radius:8px;background:#fff;cursor:pointer;overflow:hidden;position:relative;margin:0 auto}.photo-frame:hover{border-color:#0b8a4a;background:#f0fdf4}.photo-preview{width:100%;height:100%;object-fit:cover;display:block}.photo-placeholder{font-size:13px;color:#64748b;padding:6px}.photo-input{margin-top:6px;font-size:12px;padding:6px}.center-help{display:block;text-align:center;margin-top:5px}@media(max-width:800px){.application-head-grid{grid-template-columns:1fr}.photo-upload-card{justify-self:center;order:-1}.photo-frame{width:144px;height:144px}.photo-upload-label{font-size:16px}.photo-placeholder{font-size:15px}}

/* ===== v34: เลือกวันเกิดแบบปี พ.ศ. ===== */
.thai-date-grid{
  display:grid;
  grid-template-columns:0.75fr 1fr 1.1fr;
  gap:6px;
}
.thai-date-grid select{
  padding:9px 8px;
}
@media(max-width:800px){
  .thai-date-grid{
    grid-template-columns:1fr 1fr 1fr;
  }
}


/* ===== v35: ใช้ฟอนต์เดียวกันตอนพิมพ์ทุกอุปกรณ์ ===== */
.template-print-area,
.template-print-area *,
.template-page,
.template-page *,
.overlay-field,
.overlay-tick{
  font-family:"THSarabunPSK","TH SarabunPSK","TH Sarabun New", Arial, sans-serif !important;
}
@media print{
  html, body, .template-print-area, .template-print-area *{
    font-family:"THSarabunPSK","TH SarabunPSK","TH Sarabun New", Arial, sans-serif !important;
  }
}


/* ===== v38: ใช้ฟอนต์ THSarabunPSK จากไฟล์ใน assets/fonts สำหรับพิมพ์ทุกอุปกรณ์ ===== */
.template-print-area,.template-page,.overlay-field,.overlay-tick{font-family:"THSarabunPSK","TH SarabunPSK","TH Sarabun New",Arial,sans-serif!important}


/* ===== v41: หน้าแรก index.php เพิ่มขนาดฟอนต์และทำให้หนาขึ้น ===== */
.public-index{
  font-size:18px;
  font-weight:600;
}
.public-index .card h2{
  font-size:30px;
  font-weight:800;
}
.public-index .section-title{
  font-size:22px;
  font-weight:800;
  padding:10px 14px;
}
.public-index label,
.public-index .inline,
.public-index .field-help,
.public-index .photo-upload-label,
.public-index .photo-placeholder,
.public-index .muted-text{
  font-size:18px;
  font-weight:700;
}
.public-index input,
.public-index textarea,
.public-index select{
  font-size:19px;
  font-weight:700;
  padding:11px 12px;
}
.public-index .btn,
.public-index button{
  font-size:19px;
  font-weight:800;
}
.public-index .topbar h1{
  font-size:46px;
  font-weight:800;
}
.public-index .topbar p{
  font-size:22px;
  font-weight:700;
}
.public-index .check-row{
  font-size:18px;
  font-weight:700;
}
.public-index table,
.public-index th,
.public-index td{
  font-size:18px;
  font-weight:600;
}
@media(max-width:800px){
  .public-index{font-size:17px}
  .public-index .topbar h1{font-size:30px}
  .public-index .topbar p{font-size:17px}
  .public-index .card h2{font-size:26px}
  .public-index .section-title{font-size:20px}
  .public-index label,
  .public-index .inline,
  .public-index .field-help,
  .public-index .photo-upload-label,
  .public-index .photo-placeholder,
  .public-index .muted-text{font-size:17px}
  .public-index input,
  .public-index textarea,
  .public-index select{font-size:18px}
  .public-index .btn,
  .public-index button{font-size:18px}
}

/* ===== v42: ปรับ dropdown หน้าแรกให้ฟอนต์และขนาดเท่ากับข้อความ เขต/จังหวัด ===== */
.public-index select,
.public-index .unit-picker select,
.public-index .thai-date-grid select{
  font-size:18px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
  min-height:46px !important;
  padding:10px 12px !important;
}
.public-index select option{
  font-size:18px;
  font-weight:700;
}
@media(max-width:800px){
  .public-index select,
  .public-index .unit-picker select,
  .public-index .thai-date-grid select{
    font-size:17px !important;
    min-height:44px !important;
    padding:9px 10px !important;
  }
}


/* ===== v44: เอกสารประกอบด้านงานกู้ชีพ / กู้ภัย ===== */
.conditional-doc-field{
  border:1px dashed #cbd5e1;
  background:#f8fafc;
  border-radius:12px;
  padding:10px 12px;
}
.conditional-doc-field.doc-required-active{
  border-color:#dc2626;
  background:#fff7ed;
}
.conditional-doc-field.doc-required-active .required-doc-star{
  display:inline!important;
}
.conditional-doc-field input[type="file"]{
  background:#fff;
}

/* ===== v48: ซ่อนช่องแนบเอกสารจนกว่าจะติ๊กความสามารถ และรองรับหลายไฟล์ ===== */
.conditional-doc-field.hidden{display:none!important}
.doc-file-list{display:flex;flex-direction:column;gap:8px;margin-bottom:8px}
.add-doc-btn{margin-top:4px}


/* ===== v49: เอกสารประกอบยานพาหนะ ===== */
.vehicle-doc-item{border-top:1px solid #e5e7eb;padding-top:8px}
.doc-link-groups{display:flex;flex-direction:column;gap:12px}
.doc-link-group{border:1px solid #e5e7eb;border-radius:12px;padding:10px;background:#f8fafc}


/* v52: Loading overlay + faster submit UX */
.submit-loading-overlay{
  position:fixed;
  inset:0;
  background:rgba(15,23,42,.55);
  z-index:99999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
}
.submit-loading-card{
  width:min(420px,100%);
  background:#fff;
  border-radius:18px;
  padding:24px 20px;
  text-align:center;
  box-shadow:0 20px 60px rgba(0,0,0,.28);
}
.submit-spinner{
  width:46px;
  height:46px;
  border:5px solid #dbeafe;
  border-top-color:#15803d;
  border-radius:50%;
  margin:0 auto 14px;
  animation:submitSpin .9s linear infinite;
}
.submit-loading-title{
  font-size:24px;
  font-weight:800;
  color:#14532d;
  margin-bottom:6px;
}
.submit-loading-text{
  font-size:18px;
  font-weight:700;
  color:#334155;
}
button:disabled{
  opacity:.65;
  cursor:not-allowed;
}
@keyframes submitSpin{to{transform:rotate(360deg)}}


.submit-success-actions{
  display:flex;
  justify-content:center;
  gap:10px;
  flex-wrap:wrap;
  margin-top:16px;
}
.submit-success-actions.hidden{display:none!important}
.submit-loading-title{
  font-size:26px;
}


/* v61: เอกสารแนบ แสดงตัวอย่างลงมาในหน้า view.php */
.doc-inline-preview{
  margin-top:12px;
  border:1px solid #d1d5db;
  border-radius:14px;
  background:#f8fafc;
  overflow:hidden;
}
.doc-inline-preview-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:10px 12px;
  background:#e5e7eb;
  font-weight:800;
  color:#111827;
}
.doc-inline-preview-head a{
  color:#0f6db3;
  text-decoration:none;
  font-weight:800;
}
.doc-inline-preview img{
  display:block;
  width:100%;
  max-height:720px;
  object-fit:contain;
  background:#fff;
}
.doc-inline-preview iframe{
  display:block;
  width:100%;
  height:760px;
  border:0;
  background:#fff;
}
.doc-preview-error{
  padding:10px 12px;
  color:#475569;
  font-weight:700;
  background:#f8fafc;
  border-top:1px solid #e5e7eb;
}
@media(max-width:800px){
  .doc-inline-preview img{max-height:520px}
  .doc-inline-preview iframe{height:520px}
}


/* v63: ใช้ details/summary สำหรับดูเอกสารแนบ ไม่พึ่งปุ่ม JS */
.doc-preview-details{
  margin-top:10px;
}
.doc-preview-details summary{
  display:inline-block;
  list-style:none;
  cursor:pointer;
  user-select:none;
  background:#374151;
  color:#fff;
  border-radius:10px;
  padding:8px 14px;
  font-weight:800;
}
.doc-preview-details summary::-webkit-details-marker{display:none}
.doc-preview-details[open] summary{
  background:#15803d;
}
.doc-preview-img{
  display:block;
  width:100%;
  max-height:760px;
  object-fit:contain;
  background:#fff;
}
.doc-preview-frame{
  display:block;
  width:100%;
  height:760px;
  border:0;
  background:#fff;
}
.doc-preview-frame.hidden{display:none!important}


/* ===== v86: เพิ่มขนาดฟอนต์ในหมวดกรอกข้อมูลใบสมัครให้ใหญ่กว่า dropdown เดิม ===== */
.public-index #appForm label,
.public-index #appForm .inline,
.public-index #appForm .field-help,
.public-index #appForm .photo-upload-label,
.public-index #appForm .photo-placeholder,
.public-index #appForm .muted-text{
  font-size:22px !important;
  font-weight:800 !important;
}

.public-index #appForm input,
.public-index #appForm textarea,
.public-index #appForm select,
.public-index #appForm .thai-date-grid select,
.public-index #appForm .unit-picker select{
  font-size:22px !important;
  font-weight:800 !important;
  min-height:54px !important;
  padding:12px 14px !important;
  line-height:1.25 !important;
}

.public-index #appForm select option{
  font-size:22px;
  font-weight:800;
}

.public-index #appForm .section-title{
  font-size:25px !important;
  font-weight:900 !important;
}

.public-index #appForm .check-row{
  font-size:22px !important;
  font-weight:800 !important;
}

@media(max-width:800px){
  .public-index #appForm label,
  .public-index #appForm .inline,
  .public-index #appForm .field-help,
  .public-index #appForm .photo-upload-label,
  .public-index #appForm .photo-placeholder,
  .public-index #appForm .muted-text{
    font-size:19px !important;
  }

  .public-index #appForm input,
  .public-index #appForm textarea,
  .public-index #appForm select,
  .public-index #appForm .thai-date-grid select,
  .public-index #appForm .unit-picker select{
    font-size:19px !important;
    min-height:48px !important;
    padding:10px 12px !important;
  }

  .public-index #appForm .section-title{
    font-size:22px !important;
  }

  .public-index #appForm .check-row{
    font-size:19px !important;
  }
}


/* ===== v87: ลดขนาด dropdown ในหน้าแรก แต่คง label/ช่องกรอกอื่นไว้ใหญ่ ===== */
.public-index #appForm select,
.public-index #appForm .thai-date-grid select,
.public-index #appForm .unit-picker select{
  font-size:18px !important;
  font-weight:700 !important;
  min-height:46px !important;
  padding:9px 11px !important;
  line-height:1.2 !important;
}

.public-index #appForm select option{
  font-size:18px;
  font-weight:700;
}

@media(max-width:800px){
  .public-index #appForm select,
  .public-index #appForm .thai-date-grid select,
  .public-index #appForm .unit-picker select{
    font-size:17px !important;
    min-height:44px !important;
    padding:8px 10px !important;
  }

  .public-index #appForm select option{
    font-size:17px;
  }
}


/* ===== v88: เพิ่มขนาด dropdown/select ขึ้นอีก 1 ระดับ ===== */
.public-index #appForm select,
.public-index #appForm .thai-date-grid select,
.public-index #appForm .unit-picker select{
  font-size:19px !important;
  font-weight:750 !important;
  min-height:48px !important;
  padding:10px 12px !important;
  line-height:1.22 !important;
}

.public-index #appForm select option{
  font-size:19px;
  font-weight:750;
}

@media(max-width:800px){
  .public-index #appForm select,
  .public-index #appForm .thai-date-grid select,
  .public-index #appForm .unit-picker select{
    font-size:18px !important;
    min-height:46px !important;
    padding:9px 11px !important;
  }

  .public-index #appForm select option{
    font-size:18px;
  }
}


/* ===== v89: รูปถ่าย กดเพิ่มรูปที่กรอบอย่างเดียว ซ่อนปุ่มเลือกไฟล์ ===== */
.photo-input{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  overflow:hidden !important;
  pointer-events:none !important;
}

.photo-frame{
  cursor:pointer;
}

.photo-frame::after{
  content:"แตะเพื่อเพิ่ม/เปลี่ยนรูป";
  position:absolute;
  left:0;
  right:0;
  bottom:0;
  background:rgba(15, 109, 179, .88);
  color:#fff;
  font-size:13px;
  font-weight:800;
  padding:3px 2px;
  transform:translateY(100%);
  transition:.18s ease;
}

.photo-frame:hover::after,
.photo-frame:focus-within::after{
  transform:translateY(0);
}

.photo-frame .photo-preview:not(.hidden) ~ .photo-placeholder{
  display:none !important;
}

@media(max-width:800px){
  .photo-frame::after{
    font-size:14px;
    padding:4px 2px;
    transform:translateY(0);
  }
}


/* ===== v91: ปรับขนาดช่องเลือกไฟล์ในหน้าแรกให้เล็กและสมดุลขึ้นบนคอม ===== */
.public-index #appForm input[type="file"],
.public-index #appForm .conditional-doc-field input[type="file"]{
  font-size:16px !important;
  font-weight:700 !important;
  min-height:42px !important;
  padding:7px 9px !important;
  line-height:1.15 !important;
  border-radius:8px !important;
}

.public-index #appForm input[type="file"]::file-selector-button,
.public-index #appForm .conditional-doc-field input[type="file"]::file-selector-button{
  font-size:16px !important;
  font-weight:800 !important;
  padding:6px 12px !important;
  margin-right:8px !important;
  border:0 !important;
  border-radius:7px !important;
  background:#f1f5f9 !important;
  color:#111827 !important;
  cursor:pointer !important;
}

.public-index #appForm input[type="file"]::-webkit-file-upload-button,
.public-index #appForm .conditional-doc-field input[type="file"]::-webkit-file-upload-button{
  font-size:16px !important;
  font-weight:800 !important;
  padding:6px 12px !important;
  margin-right:8px !important;
  border:0 !important;
  border-radius:7px !important;
  background:#f1f5f9 !important;
  color:#111827 !important;
  cursor:pointer !important;
}

@media(max-width:800px){
  .public-index #appForm input[type="file"],
  .public-index #appForm .conditional-doc-field input[type="file"]{
    font-size:15px !important;
    min-height:40px !important;
    padding:6px 8px !important;
  }

  .public-index #appForm input[type="file"]::file-selector-button,
  .public-index #appForm .conditional-doc-field input[type="file"]::file-selector-button,
  .public-index #appForm input[type="file"]::-webkit-file-upload-button,
  .public-index #appForm .conditional-doc-field input[type="file"]::-webkit-file-upload-button{
    font-size:15px !important;
    padding:5px 10px !important;
  }
}



/* v103: ตัวอย่างเอกสารด้านงานกู้ชีพ */
.doc-example-gallery{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:10px 0 12px;
}
.doc-example-card{
  background:#fff;
  border:1px solid #d9e3ef;
  border-radius:14px;
  padding:10px;
  box-shadow:0 6px 16px rgba(19,42,76,.06);
}
.doc-example-thumb{
  position:relative;
  height:130px;
  border-radius:12px;
  overflow:hidden;
  border:1px solid #d9e3ef;
}
.doc-example-thumb.cert{
  background:linear-gradient(135deg,#f6fbff 0%,#eef5ff 100%);
}
.doc-example-thumb.guide{
  background:linear-gradient(135deg,#fffaf0 0%,#fff3d9 100%);
}
.doc-example-header{
  position:absolute;
  left:14px;
  top:14px;
  width:calc(100% - 28px);
  height:18px;
  border-radius:999px;
  background:linear-gradient(90deg,#1959a8,#3e82db);
  opacity:.88;
}
.doc-example-seal{
  position:absolute;
  right:16px;
  top:44px;
  width:52px;
  height:52px;
  border-radius:50%;
  background:#f2c94c;
  color:#7a5200;
  font-size:10px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 4px 10px rgba(0,0,0,.12);
}
.doc-example-line{
  position:absolute;
  left:16px;
  height:8px;
  border-radius:999px;
  background:#c9d9f2;
}
.doc-example-line.w80{ top:54px; width:80%; }
.doc-example-line.w60{ top:72px; width:60%; }
.doc-example-line.w70{ top:90px; width:70%; }

.doc-example-phone{
  position:absolute;
  width:66px;
  height:98px;
  background:#111827;
  border-radius:14px;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  box-shadow:0 10px 18px rgba(0,0,0,.15);
}
.doc-example-phone::before{
  content:'';
  position:absolute;
  inset:7px;
  background:#fff;
  border-radius:10px;
  border:1px solid #eef2f7;
}
.doc-example-phone::after{
  content:'ประกาศนียบัตร';
  position:absolute;
  left:50%;
  top:22px;
  transform:translateX(-50%);
  font-size:9px;
  font-weight:700;
  color:#324154;
  z-index:1;
  white-space:nowrap;
}
.doc-example-check{
  position:absolute;
  right:18px;
  bottom:14px;
  width:36px;
  height:36px;
  border-radius:50%;
  background:#22c55e;
  color:#fff;
  font-size:24px;
  font-weight:800;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 8px 18px rgba(34,197,94,.25);
}
.doc-example-caption{
  margin-top:8px;
  text-align:center;
  font-size:13px;
  font-weight:700;
  color:#1f2937;
}
#skill_career_transition_box .field-help{
  display:none;
}
@media(max-width:800px){
  .doc-example-gallery{
    grid-template-columns:1fr;
  }
  .doc-example-thumb{
    height:118px;
  }
}


/* v107: ใช้รูปจริงเป็นตัวอย่างประกาศนียบัตร */
.doc-example-real-img{
  width:100%;
  height:160px;
  object-fit:contain;
  background:#fff;
  border-radius:12px;
  border:1px solid #d9e3ef;
  display:block;
  padding:4px;
}
.doc-example-gallery .doc-example-card{
  overflow:hidden;
}
@media(max-width:800px){
  .doc-example-real-img{
    height:150px;
  }
}
