/* Guest Wi-Fi portal: cubettech.com palette (teal #3EBFC1/#00A6A8/#0D4F4F, ink #091B1B).
   The site's licensed font (PP Neue Montreal) is not copied; a close system stack is used. */
:root {
  --ink: #091b1b;
  --muted: #606f70;
  --faint: #909898;
  --teal: #3ebfc1;
  --teal-strong: #00a6a8;
  --teal-deep: #0d4f4f;
  --bg: #ecf4f4;
  --card: #ffffff;
  --line: #d0d0d0;
  --soft: #c3ebec;
  --warn: #f4a261;
  --bad: #b42318;
  --font: "Helvetica Neue", "Segoe UI", Roboto, Arial, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 40px;
}
header { width: 100%; max-width: 480px; margin-bottom: 20px; }
header img { height: 34px; width: auto; display: block; }
main {
  width: 100%;
  max-width: 480px;
  background: var(--card);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 1px 2px rgba(9, 27, 27, .06), 0 8px 24px rgba(9, 27, 27, .06);
}
h1 { font-size: 24px; line-height: 1.25; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
p.lead { color: var(--muted); margin: 0 0 22px; }
label { display: block; font-size: 14px; font-weight: 500; margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=tel], textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
textarea { min-height: 76px; resize: vertical; }
input:focus, textarea:focus { border-color: var(--teal-strong); box-shadow: 0 0 0 3px rgba(62, 191, 193, .25); }
.row { display: flex; gap: 12px; }
.row > div { flex: 1; min-width: 0; }
.hint { font-size: 13px; color: var(--faint); margin-top: 4px; }
.notice {
  margin-top: 20px;
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
  font-size: 13px;
  color: var(--muted);
}
.notice b { color: var(--ink); font-weight: 600; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-top: 14px; }
.consent input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--teal-deep); flex: none; }
button, .btn {
  display: inline-block;
  width: 100%;
  margin-top: 22px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}
button:hover { background: var(--teal-deep); }
button:disabled { opacity: .55; cursor: progress; }
.error {
  display: none;
  margin-top: 16px;
  background: #fdecea;
  color: var(--bad);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}
.error.show { display: block; }
.state { text-align: center; padding: 8px 0; }
.state h1 { margin-top: 14px; }
.state p { color: var(--muted); margin: 6px 0 0; }
.badge {
  width: 64px; height: 64px; border-radius: 50%;
  margin: 0 auto; display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700;
}
.badge.ok { background: var(--soft); color: var(--teal-deep); }
.badge.no { background: #fdecea; color: var(--bad); }
.badge.wait { background: var(--bg); }
.spinner {
  width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--soft); border-top-color: var(--teal-strong);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.facts { margin: 18px 0 0; padding: 0; list-style: none; text-align: left; font-size: 14px; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--bg); }
.facts li span:first-child { color: var(--muted); }
.facts li span:last-child { text-align: right; overflow-wrap: anywhere; }
footer { margin-top: 20px; font-size: 12px; color: var(--faint); text-align: center; max-width: 480px; }
[hidden] { display: none !important; }
@media (max-width: 380px) { .row { flex-direction: column; gap: 0; } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
