/* site.css – โครงพื้นฐานของหน้าสาธารณะที่ใช้ includes/site_header.php
   (หน้าเดิมมี <style> ของตัวเอง; ไฟล์นี้ใช้กับหน้าใหม่ เช่น track.php, privacy_request.php, certificate) */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { line-height: 1.6; color: #1e293b; }
a { color: var(--primary); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: 720px; }

.top-bar { color: #fff; }
.top-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.top-bar a { color: #fff; text-decoration: none; margin-left: 16px; }
header { color: #fff; }
.header-content { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.logo { color: #fff; text-decoration: none; font-weight: 700; gap: 10px; }
.header-nav a { text-decoration: none; font-weight: 500; }

.page-intro { text-align: center; padding: 36px 0 22px; }
.page-intro h1 { font-size: 1.8em; margin-bottom: 6px; }
.page-intro p { color: var(--muted); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; margin-bottom: 18px; }
.panel h2 { font-size: 1.2em; margin-bottom: 14px; }
.form-group label { display: block; }
.form-group input, .form-group select, .form-group textarea { width: 100%; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }
.btn-block { width: 100%; }
.muted { color: var(--muted); }
.small { font-size: .88em; }
.alert-error { background: #ffe4e6; color: #9f1239; border-left: 4px solid #e11d48; }
.alert-success { background: #f4ecd8; color: #6f5419; border-left: 4px solid #a8822f; }
.alert-info { background: #e0f2fe; color: #075985; border-left: 4px solid #0891b2; }
.alert { margin-bottom: 16px; }

footer { color: #cbd5e1; text-align: center; }
footer a { color: #e3d7b8; }

/* ---------- Timeline ติดตามใบสมัคร ---------- */
.timeline { list-style: none; position: relative; margin: 8px 0 0; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 18px; color: #94a3b8; }
.timeline li::before { content: ''; position: absolute; left: -24px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 2px solid #cbd5e1; }
.timeline li.done { color: #1e293b; }
.timeline li.done::before { background: var(--accent); border-color: var(--accent); }
.timeline li.current { color: var(--primary); font-weight: 700; }
.timeline li.current::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-ring); }
.timeline li.rejected { color: var(--danger); font-weight: 700; }
.timeline li.rejected::before { background: var(--danger); border-color: var(--danger); }
.track-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.track-summary div { background: #f8fafc; border-radius: 10px; padding: 10px 14px; }
.track-summary small { display: block; color: var(--muted); }
.offer-table { width: 100%; border-collapse: collapse; margin: 10px 0 18px; }
.offer-table th { width: 34%; text-align: left; padding: 8px 10px; background: #f8fafc; border-bottom: 1px solid var(--line); color: #475569; font-weight: 600; }
.offer-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); }
.offer-accept { background: #faf6ec; border: 1px solid #ece5d3; border-radius: 12px; padding: 16px; }

.slot-option { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; font-weight: 600; }
.slot-option:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.slot-option.is-past { opacity: .45; cursor: not-allowed; }
.license-note { font-size: 12px; opacity: .8; }
