/* iOS 26-inspired theme (glass + soft depth). No external frameworks required. */
:root{
  --bg1:#0b1220;
  --bg2:#111a2e;
  --card: rgba(255,255,255,.10);
  --card2: rgba(255,255,255,.14);
  --stroke: rgba(255,255,255,.18);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --muted2: rgba(255,255,255,.55);
  --shadow: 0 20px 60px rgba(0,0,0,.45);
  --shadow2: 0 10px 28px rgba(0,0,0,.32);
  --radius: 22px;
  --radius2: 16px;
  --accent: #4aa3ff;
  --accent2:#7c5cff;
  --good:#22c55e;
  --bad:#ef4444;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display","SF Pro Text",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans Thai", "Sarabun", sans-serif;
  color:var(--text);
  background:
    radial-gradient(1200px 800px at 15% 10%, rgba(74,163,255,.20), transparent 55%),
    radial-gradient(900px 700px at 85% 20%, rgba(124,92,255,.18), transparent 55%),
    radial-gradient(900px 700px at 50% 90%, rgba(34,197,94,.10), transparent 55%),
    linear-gradient(160deg, var(--bg1), var(--bg2));
  overflow-x:hidden;
}

a{color:inherit; text-decoration:none}
.container{width:min(980px, 92vw); margin:0 auto; padding:24px 0 64px}

.topbar{
  position:sticky; top:0; z-index:50;
  padding:14px 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 16, 28, .55);
  border-bottom: 1px solid rgba(255,255,255,.10);
}

.topbar-inner{
  width:min(980px, 92vw); margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:14px;
}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:700; letter-spacing:.2px;
}
.brand-badge{
  width:34px; height:34px; border-radius:12px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.22), transparent 55%),
    linear-gradient(135deg, rgba(74,163,255,.95), rgba(124,92,255,.90));
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
}
.brand small{display:block; font-weight:600; color:var(--muted2); letter-spacing:.3px}

.pill{
  padding:8px 12px;
  border-radius:999px;
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  color:var(--muted);
  font-size:13px;
}

.card{
  background: linear-gradient(180deg, var(--card2), var(--card));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow2);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card-header{
  padding:18px 20px 0;
}
.card-title{
  margin:0;
  font-size:20px;
  font-weight:800;
  letter-spacing:.1px;
}
.card-sub{
  margin:10px 0 0;
  color:var(--muted);
  line-height:1.6;
  font-size:14.5px;
}

.card-body{padding:18px 20px 20px}

.grid{display:grid; gap:16px}
.grid-2{grid-template-columns: 1fr; }
@media (min-width:860px){
  .grid-2{grid-template-columns: 1.2fr .8fr}
}

.section{
  padding:16px 16px;
  border-radius: var(--radius2);
  background: rgba(0,0,0,.14);
  border: 1px solid rgba(255,255,255,.10);
}

.label{
  font-size:13px;
  color:var(--muted);
  margin:0 0 8px;
  display:flex; gap:8px; align-items:center;
}
.hint{
  font-size:12.5px;
  color:var(--muted2);
  line-height:1.5;
  margin-top:8px;
  text-align:center;
}

.section .rating{
  margin-top:6px;
}

.section .hint{
  margin-top:10px;
}


textarea{
  width:100%;
  min-height: 110px;
  padding:14px 14px;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.22);
  color:var(--text);
  outline:none;
  resize: vertical;
}
textarea:focus{
  border-color: rgba(74,163,255,.55);
  box-shadow: 0 0 0 4px rgba(74,163,255,.14);
}

.actions{
  display:flex; align-items:center; justify-content:space-between; gap:14px; flex-wrap:wrap;
  margin-top:14px;
}
.btn{
  cursor:pointer;
  border:0;
  color: rgba(255,255,255,.95);
  padding:12px 16px;
  border-radius: 14px;
  font-weight:800;
  letter-spacing:.2px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.20), transparent 55%),
    linear-gradient(135deg, rgba(74,163,255,.95), rgba(124,92,255,.90));
  box-shadow: 0 14px 30px rgba(0,0,0,.35);
}
.btn:active{transform: translateY(1px)}
.btn.secondary{
  background: rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:none;
  font-weight:700;
  color: var(--muted);
}

.error{
  padding:12px 14px;
  border-radius: 14px;
  border:1px solid rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
  color: rgba(255,255,255,.90);
  margin-bottom:14px;
  line-height:1.5;
}

.footer{
  margin-top:18px;
  padding:16px 0 0;
  color: var(--muted2);
  font-size:12.5px;
  line-height:1.6;
  text-align:center;
}

/* Star rating (pure CSS, accessible radio inputs) */
.rating{
  display:flex;
  flex-direction:row-reverse;
  justify-content:center;  
  gap:8px;
}

.rating input{position:absolute; opacity:0; pointer-events:none}
.rating label{
  width:44px; height:44px;
  display:grid; place-items:center;
  border-radius: 14px;
  border:1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.18);
  cursor:pointer;
  transition: transform .12s ease, border-color .12s ease, background .12s ease;
}
.rating label svg{
  width:22px; height:22px;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.22));
  fill: rgba(255,255,255,.35);
}
.rating label:hover{transform: translateY(-1px); border-color: rgba(255,255,255,.24)}
.rating input:focus + label{
  outline: none;
  box-shadow: 0 0 0 4px rgba(74,163,255,.14);
  border-color: rgba(74,163,255,.55);
}
/* fill stars when checked */
.rating input:checked ~ label svg{ fill: rgba(255,255,255,.28); }
.rating input:checked + label svg,
.rating input:checked + label ~ label svg{ fill: rgba(255,214,10,.95); }

/* Modal (success) */
.modal-backdrop{
  position:fixed; inset:0;
  background: rgba(0,0,0,.45);
  display:none;
  align-items:center; justify-content:center;
  padding:18px;
  z-index:200;
}
.modal{
  width:min(520px, 92vw);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.10));
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding:18px 18px 16px;
}
.modal h3{margin:8px 0 0; font-size:18px}
.modal p{margin:8px 0 0; color: var(--muted); line-height:1.6}
.modal .ok{
  margin-top:14px;
  width:100%;
}
.modal .icon{
  width:48px; height:48px;
  border-radius: 18px;
  display:grid; place-items:center;
  background: rgba(34,197,94,.16);
  border: 1px solid rgba(34,197,94,.35);
}
.modal .icon svg{width:22px; height:22px; fill: rgba(34,197,94,.95)}
