@font-face{font-family:'Brut Thai';font-weight:400;font-display:swap;src:url(assets/BrutThai-Regular.woff) format('woff')}
@font-face{font-family:'Brut Thai';font-weight:800;font-display:swap;src:url(assets/BrutThai-ExtraBold.woff) format('woff')}
:root{--orange:#FD6202;--brown:#FD6202;--cream:#fff;--peach:#fff5ee;--gray:#F3F2F2;--muted:#A9A0A0;--red:#C0392B;--orange-dark:#E65902;--white:#fff}
*{box-sizing:border-box}
body{margin:0;background:var(--cream);color:#333;font-family:'Brut Thai','Leelawadee UI','Thonburi','Noto Sans Thai','Sukhumvit Set','Segoe UI',Tahoma,sans-serif;line-height:1.55}
button,input,select,textarea{font:inherit}
.shell{max-width:1040px;margin:auto;padding:24px}
header{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
header img{width:112px;height:auto}
.tag{font-size:13px;background:var(--peach);padding:7px 12px;border-radius:99px}
.hero{background:var(--orange);color:white;padding:30px;border-radius:8px;display:grid;grid-template-columns:1fr auto;gap:20px;align-items:end}
.hero h1{font-size:clamp(28px,5vw,52px);line-height:1.12;margin:0 0 8px}
.hero p{margin:0;color:#FDF3E9}
.date{font-size:18px;font-weight:800;color:#333;background:var(--cream);padding:8px 12px;border-radius:8px;margin-bottom:6px}
.steps{display:flex;gap:8px;margin:22px 0}
.step{flex:1;background:#fff;padding:10px;border-radius:8px;color:var(--muted);text-align:center;font-size:14px}
.step.on{background:var(--orange);color:#fff;font-weight:800}
.panel{background:#fff;border-radius:8px;padding:24px;min-height:380px}
h2{margin:0 0 6px;font-size:26px}
.sub{color:#786b67;margin:0 0 20px}
.types{display:grid;grid-template-columns:repeat(4,1fr);gap:14px}
.type{text-align:left;padding:22px;background:var(--gray);border:0;border-radius:8px;cursor:pointer;color:#333}
.type:hover,.type.active{background:var(--peach);outline:3px solid var(--orange)}
.type b{display:block;font-size:19px;margin-bottom:6px}
.icon{width:42px;height:42px;display:grid;place-items:center;border-radius:8px;background:#fff;color:var(--orange);font-weight:800;margin-bottom:18px}
.slots{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.slot{text-align:left;border:0;background:var(--gray);border-radius:8px;padding:16px;cursor:pointer}
.slot:hover,.slot.active{background:var(--peach);outline:3px solid var(--orange)}
.slot .time{font-size:20px;font-weight:800}
.slot small{display:block;color:#766863;margin-top:4px}
.notice{padding:12px 14px;background:var(--cream);border-radius:8px;margin:12px 0;color:#766863}
.form{display:grid;grid-template-columns:1fr 1fr;gap:16px}
label{font-weight:800;font-size:14px}
input,select,textarea{width:100%;padding:12px 14px;border:0;background:var(--gray);border-radius:8px;margin-top:6px;color:#333}
textarea{min-height:90px;resize:vertical}
.full{grid-column:1/-1}
.actions{display:flex;justify-content:space-between;gap:12px;margin-top:24px}
.btn{border:0;border-radius:8px;padding:12px 20px;cursor:pointer;font-weight:800}
.primary{background:var(--orange);color:#fff}
.secondary{background:var(--gray);color:#333}
.btn:disabled{opacity:.4;cursor:not-allowed}
.summary{background:var(--gray);border-radius:8px;padding:18px;margin-bottom:20px}
.summary-row{display:flex;justify-content:space-between;gap:20px;padding:8px 0}
.success{text-align:center;padding:25px 0}
.check{width:74px;height:74px;border-radius:50%;margin:0 auto 18px;display:grid;place-items:center;background:var(--orange);color:#fff;font-size:38px}
.ref{font-size:24px;font-weight:800;color:var(--orange)}
.privacy{font-size:12px;color:#786b67;margin-top:20px}
footer{font-size:12px;color:#786b67;margin-top:18px;display:flex;justify-content:space-between;gap:10px}
.hidden{display:none!important}
@media(max-width:720px){.shell{padding:14px}
header{margin:6px 0 16px}
.hero{grid-template-columns:1fr;padding:22px}
.types,.slots{grid-template-columns:1fr}
.form{grid-template-columns:1fr}
.full{grid-column:auto}
.steps .step span{display:none}
.panel{padding:18px}
footer{display:block}
}
@media print{.actions,.steps,.type,.privacy,.who{display:none!important}
body{background:#fff}
.shell{padding:0}
.panel,.hero{break-inside:avoid}
}
/* --- เพิ่มสำหรับเวอร์ชันมีฐานข้อมูล --- */
.who{display:flex;align-items:center;gap:10px}
.link{background:none;border:0;color:var(--orange);cursor:pointer;font-size:13px;text-decoration:underline}
.login{display:flex;flex-direction:column;align-items:center;text-align:center;gap:14px;padding:30px 0}
.btn.big{padding:16px 24px;font-size:17px;width:100%;max-width:420px;text-align:center;text-decoration:none}
.dates{display:flex;gap:12px;flex-wrap:wrap}
.dateBtn{border:0;background:var(--gray);border-radius:8px;padding:12px 18px;cursor:pointer;min-width:96px;display:flex;flex-direction:column;align-items:center;color:#333}
.dateBtn b{font-size:26px;line-height:1.1}
.dateBtn small{color:#766863}
.dateBtn:hover,.dateBtn.active{background:var(--peach);outline:3px solid var(--orange)}
.slot.booked{opacity:.45;cursor:not-allowed;text-decoration:line-through}
.slot.booked:hover{background:var(--gray);outline:0}
.notice.error{background:#fdecea;color:var(--red)}
@media(max-width:960px) and (min-width:721px){.types{grid-template-columns:repeat(2,1fr)}}
.clash{background:#fff;border-radius:8px;padding:10px 14px;margin:10px 0;color:#333}
.clash div{display:flex;justify-content:space-between;gap:16px;padding:3px 0}
.clash span{color:#766863}
.notice.error small{display:block;color:#766863}
