/* Matches teatimedrinks.com: white, black DM Sans, brand blue buttons, light gray surfaces. */
:root {
  --blue: #22a5dd;
  --blue-dark: #1b8fc2;
  --blue-soft: #eef8fd;
  --ink: #111111;
  --text: #303030;
  --muted: #6b6b6b;
  --line: #e2e2e2;
  --bg: #ffffff;
  --surface: #f6f6f6;
  --card: #ffffff;
  --danger: #d63a2f;
  --danger-soft: #fdf0ef;
  --ok: #2e7d4f;
  --ok-soft: #eef7f1;
  --warn-soft: #fff8e1;
  --radius: 8px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

a { color: var(--blue-dark); }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header .inner { max-width: 1120px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-header img { height: 44px; width: auto; display: block; }
.site-header .link { color: var(--text); font-size: 14px; font-weight: 500; text-decoration: none; }
.site-header .link:hover { color: var(--blue-dark); }

.page-title { background: var(--surface); border-bottom: 1px solid var(--line); text-align: center; padding: 44px 16px; }
.page-title h1 { margin: 0 0 8px; font-size: clamp(28px, 4.5vw, 40px); line-height: 1.15; font-weight: 700; }
.page-title p { margin: 0 auto; max-width: 560px; color: var(--muted); }

/* ---------- Form page hero ---------- */
.hero {
  background:
    radial-gradient(700px 320px at 85% -10%, rgba(34, 165, 221, 0.45), transparent 65%),
    radial-gradient(500px 260px at 0% 110%, rgba(34, 165, 221, 0.18), transparent 70%),
    #0f1b22;
  color: #fff;
  padding: 64px 16px 132px;
}
.hero .inner { max-width: 1088px; margin: 0 auto; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: #7fd0f2; margin-bottom: 14px; }
.hero h1 { margin: 0 0 14px; color: #fff; font-size: clamp(32px, 5vw, 50px); line-height: 1.08; font-weight: 700; letter-spacing: -0.02em; max-width: 640px; }
.hero h1 span { color: var(--blue); }
.hero p { margin: 0; max-width: 560px; color: #c3d0d7; font-size: 17px; }
.trust { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #e4ecf0; }
.trust svg { color: var(--blue); flex-shrink: 0; }

.layout {
  max-width: 1120px;
  margin: -92px auto 64px;
  padding: 0 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .layout { grid-template-columns: 1fr; } }

.form-card { border: 0; border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 27, 34, 0.06), 0 12px 32px rgba(15, 27, 34, 0.1); padding: 36px; }
@media (max-width: 560px) { .form-card { padding: 24px 18px; } }

.side { position: sticky; top: 24px; display: grid; gap: 16px; }
@media (max-width: 900px) { .side { position: static; } }
.panel { background: #fff; border-radius: 14px; box-shadow: 0 1px 2px rgba(15, 27, 34, 0.06), 0 12px 32px rgba(15, 27, 34, 0.1); padding: 24px; }
.panel h3 { margin: 0 0 16px; font-size: 16px; font-weight: 700; }
.panel .steps li { font-size: 13.5px; }
.panel .steps li strong { font-size: 14.5px; }
.panel.contact { background: var(--surface); box-shadow: none; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.panel.contact p { margin: 0; }
.panel.contact a { color: var(--ink); font-weight: 600; }

.sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.sec-head .no { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: 0.05em; }
.sec-head h2 { margin: 0; }
.section .hint { padding-left: 0; }

/* selectable chips (flavors, yes/no) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; margin: 0 !important; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cfcfcf;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chip span::before {
  content: '';
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid #bdbdbd;
  background: #fff center / 10px no-repeat;
  transition: all 0.15s;
}
.chip:hover span { border-color: #9a9a9a; }
.chip input:checked + span { border-color: var(--blue); background: var(--blue-soft); color: var(--ink); }
.chip input:checked + span::before {
  border-color: var(--blue);
  background-color: var(--blue);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-4.9' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(34, 165, 221, 0.25); }

.fade-up { animation: fadeUp 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.fade-up.d2 { animation-delay: 0.1s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Layout ---------- */
.wrap { max-width: 760px; margin: 40px auto 64px; padding: 0 16px; }
.wrap.wide { max-width: 1040px; margin-top: 28px; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
@media (max-width: 560px) { .card { padding: 22px 16px; } }

/* ---------- Form ---------- */
.section + .section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.section h2 { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.section .hint { margin: 0 0 18px; color: var(--muted); font-size: 14px; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid .full { grid-column: 1 / -1; }
.grid.three { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 600px) { .grid, .grid.three { grid-template-columns: 1fr; } }

.field label, .field legend { display: block; font-weight: 500; font-size: 14px; color: var(--ink); margin-bottom: 6px; padding: 0; }
.req { color: var(--danger); margin-left: 2px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

input[type='text'], input[type='email'], input[type='tel'], input[type='url'], input[type='password'], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d4d4d4;
  border-radius: 6px;
  padding: 11px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: #9a9a9a; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(34, 165, 221, 0.15); }
.touched input:invalid, .touched select:invalid, .touched textarea:invalid { border-color: var(--danger); }
textarea { min-height: 110px; resize: vertical; }

/* simple checkbox / radio lists */
.choices { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.field .choice { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; font-weight: 400; color: var(--text); cursor: pointer; }
.choice input { width: 17px; height: 17px; margin: 0; accent-color: var(--blue); cursor: pointer; }

.drop {
  border: 1px dashed #bdbdbd;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  color: var(--muted);
  position: relative;
  transition: border-color 0.15s, background 0.15s;
}
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop strong { color: var(--blue-dark); font-weight: 600; }
.drop small { display: block; margin-top: 4px; font-size: 13px; }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; font-size: 14px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.file-list li span:first-child { color: var(--ink); overflow-wrap: anywhere; }
.file-list li span:last-child { color: var(--muted); white-space: nowrap; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  padding: 11px 24px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); }
.btn:disabled { opacity: 0.6; cursor: wait; }
.btn.block { width: 100%; }
.btn.big { padding: 14px 28px; font-size: 16px; }
.btn.small { padding: 6px 14px; font-size: 13px; }
.btn.ghost { background: #fff; color: var(--ink); border-color: #cfcfcf; }
.btn.ghost:hover { background: var(--surface); border-color: #bdbdbd; }
.btn.danger { background: #fff; color: var(--danger); border-color: #cfcfcf; }
.btn.danger:hover { background: var(--danger-soft); border-color: var(--danger); }

.alert { border-radius: 6px; padding: 12px 14px; font-size: 14px; margin: 16px 0 0; border: 1px solid transparent; }
.alert.error { background: var(--danger-soft); color: #9f241b; border-color: #f3c9c5; }
.alert.success { background: var(--ok-soft); color: var(--ok); border-color: #c9e6d4; }
.alert.warn { background: var(--warn-soft); color: var(--text); border-color: #f0dfa6; }

.fine { text-align: center; color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* numbered steps (admin email setup) */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 30px 1fr; gap: 12px; font-size: 14px; color: var(--muted); }
.steps li strong { display: block; color: var(--ink); font-size: 15px; font-weight: 600; }
.steps li::before {
  content: counter(s);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

/* ---------- States ---------- */
.state { text-align: center; padding: 36px 8px; }
.state .icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-dark); }
.state .icon.muted { background: var(--surface); color: var(--muted); }
.state h2 { margin: 0 0 8px; font-size: 24px; font-weight: 700; }
.state p { margin: 0 auto; max-width: 440px; color: var(--muted); }
.state .btn { margin-top: 22px; }
.loader { width: 32px; height: 32px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--blue); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }

.footer { border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; padding: 24px 16px; }
.footer a { color: var(--text); }
