/* ---------- tokens ---------- */
:root {
  --teal-900: #0f2b2b;
  --teal-800: #14383a;
  --teal-700: #1a4547;
  --teal-600: #24595c;
  --lime:     #c8f542;
  --lime-600: #b6e130;
  --gsl-green: #72bf44;
  --gsl-green-700: #5ea936;
  --ink:      #0f2b2b;
  --paper:    #ffffff;
  --paper-2:  #f4f6f6;
  --line:     #e5eaea;
  --muted:    #6a7a7a;
  --danger:   #d94f4f;

  --radius:   14px;
  --radius-lg: 22px;
  --shadow:   0 6px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.14);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper-2);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: inherit; }

/* ---------- header ---------- */
.site-header {
  background: var(--teal-900);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: #fff;
}
.brand-logo {
  display: block;
  height: 52px;
  width: auto;
}
.phone {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 18px;
}
.phone-ico {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--teal-900);
  display: inline-grid;
  place-items: center;
  font-size: 18px;
}

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--teal-800) 0%, var(--teal-700) 60%, var(--paper-2) 60%, var(--paper-2) 100%);
  padding: 56px 0 64px;
  min-height: 60vh;
}
.hero-title {
  color: #fff;
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.05;
  margin: 0 0 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-align: center;
}
.accent { color: var(--lime); }
.hero-sub {
  color: rgba(255,255,255,0.85);
  text-align: center;
  max-width: 620px;
  margin: 0 auto 36px;
  font-size: 17px;
}

/* ---------- panel ---------- */
.panel {
  background: var(--paper);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
  max-width: 720px;
  margin: 0 auto;
}

/* ---------- loading ---------- */
#state-loading { text-align: center; }
.spinner {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--line);
  border-top-color: var(--teal-700);
  margin: 0 auto 16px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- days ---------- */
.days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 8px;
}
.day {
  appearance: none;
  -webkit-appearance: none;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s, transform .05s, box-shadow .15s;
}
.day:hover:not(:disabled) {
  border-color: var(--teal-700);
  box-shadow: var(--shadow);
}
.day:active:not(:disabled) { transform: translateY(1px); }
.day[aria-pressed="true"] {
  border: 1.5px solid var(--gsl-green);
  background: var(--gsl-green);
  color: #fff;
}
.day[aria-pressed="true"] .day-dow,
.day[aria-pressed="true"] .day-mon,
.day[aria-pressed="true"] .day-state { opacity: 0.9; color: #fff; }
.day:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--paper-2);
}
.day-dow { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.7; }
.day-num { font-size: 22px; font-weight: 800; line-height: 1.1; margin: 4px 0 2px; }
.day-mon { font-size: 12px; opacity: 0.7; }
.day-state { font-size: 11px; margin-top: 6px; }

/* ---------- slots ---------- */
.slots { margin-top: 28px; }
.slots-title {
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--teal-800);
}
.slot-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.slot {
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  font-weight: 600;
  transition: border-color .15s, background .15s;
}
.slot:hover { border-color: var(--teal-700); background: var(--paper-2); }
.slot .slot-label { display: block; font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }

/* ---------- or divider ---------- */
.or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  margin: 28px 0 16px;
}
.or-divider::before, .or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  padding: 14px 28px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .05s, background .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--lime);
  color: var(--teal-900);
}
.btn-primary:hover { background: var(--lime-600); }
.btn-ghost {
  background: transparent;
  color: var(--teal-800);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal-700); background: var(--paper-2); }
#request-call-btn { width: 100%; }

/* ---------- confirm ---------- */
.confirm-list {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px 20px;
  margin: 20px 0 24px;
}
.confirm-list dt { color: var(--muted); font-size: 14px; }
.confirm-list dd { margin: 0; font-weight: 600; white-space: pre-line; }
.field {
  display: block;
  margin: 0 0 24px;
}
.field-label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 8px;
}
.field-hint { color: var(--muted); font-weight: 400; }
.field textarea {
  width: 100%;
  min-height: 90px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  resize: vertical;
  transition: border-color .15s;
}
.field textarea:focus {
  outline: none;
  border-color: var(--gsl-green);
}
.actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* ---------- success / error ---------- */
.tick, .cross {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
  font-size: 28px;
  font-weight: 800;
}
.tick { background: var(--lime); color: var(--teal-900); }
.cross { background: #fde3e3; color: var(--danger); }
#state-success, #state-call-requested, #state-error { text-align: center; }
#state-success h2, #state-error h2, #state-call-requested h2 { margin: 0 0 8px; }
.muted { color: var(--muted); font-size: 14px; margin-top: 12px; }
#error-retry { margin-top: 16px; }

/* ---------- trust strip (Trustpilot widget) ---------- */
.trust {
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0;
}
.trust .profile-url { padding: 18px 24px; transition: background .15s; }
.trust .profile-url:hover { background: var(--paper-2); }
.profile-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.2;
}
.profile-url:hover .tp-widget-rating strong { text-decoration: underline; }
.tp-widget-customerssay { color: var(--muted); }
.tp-widget-trustscore { font-weight: 700; color: var(--ink); }
.tp-widget-stars {
  width: 120px;
  display: flex;
  align-items: center;
}
.tp-widget-stars > div,
.tp-widget-stars .tp-stars {
  width: 100%;
}
.tp-stars-wrap {
  position: relative;
  height: 0;
  width: 100%;
  padding: 0 0 18.326693227091635%;
}
.tp-stars-wrap svg {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}
.tp-stars--5 .tp-star__canvas,
.tp-stars--5 .tp-star__canvas--half { fill: #00b67a; }
.tp-widget-rating { color: var(--muted); }
.tp-widget-rating strong { color: var(--ink); font-weight: 700; }
.tp-widget-poweredby { display: flex; align-items: center; }
.tp-widget-logo {
  width: 68px;
  display: flex;
  align-items: center;
}
.tp-widget-logo > div { width: 100%; }
.tp-logo-wrap {
  position: relative;
  height: 0;
  width: 100%;
  padding: 0 0 24.6031746031746%;
}
.tp-logo-wrap svg {
  position: absolute;
  height: 100%;
  width: 100%;
  left: 0;
  top: 0;
}

@media (prefers-color-scheme: dark) {
  /* keep light look — this widget is intentionally on the light strip */
}

/* ---------- footer ---------- */
.site-footer {
  background: #4c5757;
  color: #fff;
  padding: 48px 0 36px;
  margin-top: 48px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
}
.foot-logo {
  display: block;
  height: 72px;
  width: auto;
  margin-bottom: 8px;
}
.social {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  gap: 14px;
}
.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: #fff;
  text-decoration: none;
  transition: opacity .15s;
}
.social a:hover { opacity: 0.75; }
.social svg { width: 22px; height: 22px; display: block; }
.addr { margin: 20px 0 16px; font-size: 14px; line-height: 1.6; }
.fine { font-size: 12px; color: rgba(255,255,255,0.7); max-width: 380px; }
.foot-contact h3 { margin: 0 0 12px; font-size: 16px; }
.foot-contact p { margin: 0 0 6px; }
.foot-contact a { text-decoration: none; }

@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .header-inner { height: 60px; }
  .brand-logo { height: 40px; }
  .phone { font-size: 15px; }
  .phone span:last-child { display: none; }
  .phone-ico { width: 36px; height: 36px; font-size: 15px; }

  .hero { padding: 28px 0 40px; min-height: 0; background: linear-gradient(180deg, var(--teal-800) 0%, var(--teal-700) 40%, var(--paper-2) 40%, var(--paper-2) 100%); }
  .hero-title { font-size: 26px; margin-bottom: 8px; }
  .hero-sub { font-size: 14px; margin-bottom: 20px; }

  .panel { padding: 18px; border-radius: 16px; }

  /* tighter day tiles: 4 across on typical phone widths */
  .days { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .day { padding: 8px 4px; border-radius: 10px; }
  .day-dow { font-size: 10px; letter-spacing: 0.5px; }
  .day-num { font-size: 18px; margin: 2px 0 0; }
  .day-mon { font-size: 10px; }
  .day-state { display: none; }
  .day:disabled .day-num { text-decoration: line-through; }

  .slots { margin-top: 20px; }
  .slots-title { font-size: 16px; }
  .slot-list { grid-template-columns: 1fr; gap: 8px; }
  .slot { padding: 12px; }

  .or-divider { margin: 20px 0 12px; }
  #request-call-btn { padding: 12px 20px; }

  /* confirm page: compact so it fits with minimal scroll */
  #state-confirm h2 { font-size: 20px; margin: 0 0 12px; }
  .confirm-list { grid-template-columns: 90px 1fr; gap: 8px 12px; margin: 12px 0 16px; font-size: 14px; }
  .confirm-list dt { font-size: 13px; }
  .field { margin: 0 0 16px; }
  .field textarea { min-height: 70px; padding: 10px 12px; }

  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .actions { justify-content: stretch; }
  .actions .btn { flex: 1; }
  .btn { padding: 12px 20px; }
}
