/* sacmautaisinh2026.forfuture.vn — Cuộc thi Trình diễn Thời trang tái chế 2026 (04/11/2026). Giao diện theo mẫu điện thoại của user;
   máy tính: cột giữa tối đa 600px. */
:root {
  --navy: #12385a;
  --ink: #22374a;
  --text: #4b5c6b;
  --muted: #6f8090;
  --line: #d3e0ea;
  --line-soft: #e3ebf2;
  --orange: #e8702b;
  --orange-2: #f39c48;
  --teal: #1b7da5;
  --blue: #1b6b9b;
  --blue-soft: #edf6fc;
  --danger: #d23c2f;
  --bg: #eef3f8;
  --radius: 10px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.page {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  overflow: hidden;
}
@media (min-width: 640px) {
  body { padding: 28px 16px 40px; background: radial-gradient(1200px 600px at 85% -10%, #fde6d2 0%, transparent 60%), radial-gradient(900px 600px at 0% 100%, #dcecf8 0%, transparent 60%), var(--bg); }
  .page { border-radius: 22px; box-shadow: 0 24px 60px rgba(18, 56, 90, .12), 0 2px 6px rgba(18, 56, 90, .05); }
}

/* ---------------- banner ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 26px 20px 30px;
  background: linear-gradient(135deg, #fff5ec 0%, #fbf8f5 45%, #eef6fc 100%);
  border-bottom: 1px solid var(--line-soft);
}
.hero > :not(.hero-ring) { position: relative; }
.hero-ring {
  position: absolute;
  top: -120px;
  right: -150px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  border: 38px solid rgba(243, 156, 72, .09);
  box-shadow: inset 0 0 0 30px rgba(255, 255, 255, .35);
  pointer-events: none;
}
.hero-pill {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 13px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, .85);
  color: #3a4c5c;
  font-size: clamp(10px, 2.85vw, 11.5px);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
@media (min-width: 370px) { .hero-pill { white-space: nowrap; } }
.hero-title {
  margin: 0 0 12px;
  font-size: clamp(26px, 7.6vw, 34px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.01em;
  text-transform: uppercase;
  color: var(--navy);
}
.hero-title span { display: block; }
.hero-title .is-accent { color: var(--orange); }
.hero-sub {
  margin: 0 0 12px;
  color: var(--teal);
  font-size: clamp(13px, 3.75vw, 16px);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.hero-text { margin: 0 0 16px; color: var(--text); font-size: 15px; line-height: 1.6; }
.hero-text b { color: #2c3f50; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.hero-chips li {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}
.hero-chips li.is-free { border-color: #f6d2a6; background: #fff2e2; color: #b05a16; letter-spacing: .02em; text-transform: uppercase; }
.hero-place { margin: 0; color: var(--muted); font-size: 13px; }

/* ---------------- form ---------------- */
.reg { padding: 28px 20px 0; }
.step { margin-bottom: 30px; }
.step-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.step-no {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  margin-top: 4px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange-2), var(--orange));
  box-shadow: 0 4px 10px rgba(232, 112, 43, .25);
  color: #fff;
  font-size: 12.5px;
  font-weight: 800;
}
.step-head h2 { margin: 0; color: var(--navy); font-size: 19px; font-weight: 700; line-height: 1.3; }
.step-head p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.field { margin-bottom: 16px; }
.label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 13.5px; font-weight: 700; }
.label i, .check i { color: var(--orange); font-style: normal; }

input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 16px; /* ≥16px: iPhone không tự phóng to khi bấm vào ô */
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
}
input[type="date"] { line-height: 1.5; }
input::placeholder, textarea::placeholder { color: #8b9aa7; opacity: 1; }
select {
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2322374a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select:invalid, select.is-empty { color: #5d6e7c; }
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
#f-idea { min-height: 120px; }
input:focus, select:focus, textarea:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(27, 125, 165, .14); }

.hint { margin: 6px 0 0; color: var(--muted); font-size: 12px; }
.hint.warn { color: #a8590f; }
.hint.is-over { color: var(--danger); font-weight: 600; }
.err { display: none; margin: 6px 0 0; color: var(--danger); font-size: 12.5px; font-weight: 600; }
.field.is-bad .err { display: block; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(210, 60, 47, .1); }

.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-size: 14.5px;
  font-weight: 700;
  color: #2c3f50;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.choice-item input {
  flex: 0 0 auto;
  width: 19px;
  height: 19px;
  margin: 0;
  border: 1.5px solid #6b7c8a;
  border-radius: 50%;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.choice-item input:checked { border-color: var(--blue); background: radial-gradient(circle, var(--blue) 0 42%, #fff 47%); }
.choice-item:has(input:checked) { border: 2px solid var(--blue); padding: 9px 13px; background: var(--blue-soft); }
.choice-item input:focus-visible { box-shadow: 0 0 0 3px rgba(27, 107, 155, .25); }

.check { display: flex; align-items: flex-start; gap: 12px; color: #2c3f50; font-size: 14px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  border: 1.5px solid #6b7c8a;
  border-radius: 4px;
  background: #fff;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.check input:checked {
  border-color: var(--blue);
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4.2L19 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.check input:focus-visible { box-shadow: 0 0 0 3px rgba(27, 107, 155, .25); }
.field.is-bad .check input { border-color: var(--danger); }
.link { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.submit {
  margin: 0 -20px;
  padding: 22px 20px 26px;
  border-top: 1px solid var(--line-soft);
  background: #f4f8fb;
}
.note { margin: 0 0 18px; color: var(--text); font-size: 13.5px; line-height: 1.6; }
.note b { color: #2c3f50; }

.btn-main, .btn-ghost {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px 18px;
  border-radius: 12px;
  font-size: 15.5px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s, box-shadow .15s, opacity .15s;
}
.btn-main {
  border: 0;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  box-shadow: 0 10px 22px rgba(232, 112, 43, .28);
  color: #fff;
  letter-spacing: .03em;
  text-transform: uppercase;
}
.btn-main:hover { box-shadow: 0 12px 26px rgba(232, 112, 43, .36); }
.btn-main:active { transform: translateY(1px); }
.btn-main:disabled { opacity: .65; cursor: progress; }
.btn-ghost { border: 1px solid var(--line); background: #fff; color: var(--navy); }
.btn-ghost:hover { border-color: var(--blue); }

/* ---------------- đăng ký xong ---------------- */
.done { padding: 10px 0 34px; text-align: center; outline: none; }
.done-icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 6px auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2fb67c, #1f9a66);
  box-shadow: 0 10px 24px rgba(31, 154, 102, .3);
  color: #fff;
}
.done-icon svg { width: 38px; height: 38px; }
.done h2 { margin: 0 0 8px; color: var(--navy); font-size: 22px; font-weight: 800; text-transform: uppercase; }
.done > p { margin: 0 0 18px; color: var(--text); }
.done > p b { color: #2c3f50; }
.done-steps { margin: 0 0 22px; padding: 14px 16px 14px 34px; border: 1px solid var(--line-soft); border-radius: 12px; background: #f7fafc; text-align: left; color: var(--text); font-size: 14px; }
.done-steps li + li { margin-top: 8px; }
.done-steps b { color: #2c3f50; }
#done-phone { white-space: nowrap; }

.foot { padding: 18px 20px 22px; border-top: 1px solid var(--line-soft); background: #eef3f7; text-align: center; color: var(--muted); font-size: 12px; }
.foot p { margin: 0; }

/* ---------------- hộp thoại ---------------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: end center;
  padding: 0;
  background: rgba(15, 34, 52, .48);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.modal-card {
  width: 100%;
  max-width: 600px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 22px 20px calc(18px + env(safe-area-inset-bottom));
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -10px 40px rgba(15, 34, 52, .2);
  animation: rise .22s ease-out;
}
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
@media (min-width: 640px) {
  .modal { place-items: center; padding: 24px; }
  .modal-card { border-radius: 18px; padding-bottom: 20px; }
}
.modal-card h2 { margin: 0 0 4px; color: var(--navy); font-size: 19px; font-weight: 800; }
.modal-sub { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.modal-actions { position: sticky; bottom: -18px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 16px; padding-top: 10px; background: #fff; }
.modal-actions:has(> :only-child) { grid-template-columns: 1fr; }
.modal-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdecea; color: #a52a20; font-size: 13.5px; font-weight: 600; }

.review-body h3 { margin: 14px 0 6px; color: var(--orange); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.review-body h3:first-child { margin-top: 4px; }
.review-body dl { margin: 0; border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.review-body .row { display: grid; grid-template-columns: 38% 1fr; gap: 10px; padding: 9px 12px; font-size: 14px; }
.review-body .row + .row { border-top: 1px solid var(--line-soft); }
.review-body dt { color: var(--muted); }
.review-body dd { margin: 0; color: var(--ink); font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }

.privacy p { margin: 10px 0 0; color: var(--text); font-size: 14px; line-height: 1.6; }
.privacy b { color: #2c3f50; }

@media (max-width: 360px) {
  .hero, .reg { padding-left: 16px; padding-right: 16px; }
  .submit { margin: 0 -16px; padding-left: 16px; padding-right: 16px; }
  .choice { gap: 8px; }
  .choice-item { padding-left: 10px; padding-right: 10px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
