/* PublicInsight brand system — colors/typography lifted from publicinsight.se
   (--colorPrimary #197df6, --colorSecondary #132e65, --colorSuccess #4dea9e,
   Inter). Kept in the same variable names the rest of this file already uses. */
:root {
  --blue: #197df6;          /* colorPrimary */
  --blue-dark: #1670dd;     /* colorPrimaryHover */
  --navy: #132e65;          /* colorSecondary — headings / brand accent */
  --navy-dark: #11295b;     /* colorSecondaryHover */
  --ink: #132e65;           /* body headings read in brand navy */
  --text: #1f2733;          /* long-form text (softer than pure navy) */
  --muted: #7a7878;         /* colorMuted */
  --line: #dfe4ea;          /* colorBorder */
  --bg: #f1f2f6;            /* colorNeutral */
  --ok: #4dea9e;            /* colorSuccess */
  --ok-ink: #0f5132;        /* readable check on the mint success chip */
  --bad: #e63f24;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 16px 48px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.head {
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f5f8ff, #fff);
}

.brand-logo {
  display: block;
  height: 26px;
  width: auto;
  margin-bottom: 16px;
}

h1 { font-size: 22px; margin: 0; color: var(--navy); font-weight: 700; letter-spacing: -0.01em; }
.subtitle { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.section-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  /* 28px horizontal to line up with .meta / #slots / .confirm, which are all inset 28px */
  margin: 22px 28px 10px;
}

.state {
  padding: 40px 28px;
  text-align: center;
  color: var(--muted);
}

.meta {
  padding: 16px 28px 0;
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.meta .row { display: flex; gap: 8px; }
.meta .k { color: var(--muted); min-width: 96px; }
.meta .v { color: var(--ink); font-weight: 500; }

#slots { padding: 0 28px; }

.day { margin-bottom: 18px; }
.day-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: capitalize;
  margin: 0 0 8px;
}
.day-slots { display: flex; flex-wrap: wrap; gap: 8px; }

.slot {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.12s ease;
}
.slot:hover { border-color: var(--blue); color: var(--blue); }
.slot.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.confirm {
  padding: 18px 28px 4px;
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.chosen {
  background: #eff6ff;
  color: var(--blue-dark);
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 15px;
  font-family: inherit;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 0 22px;
}

.btn-primary {
  display: inline-block;
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s ease;
}
.btn-primary:hover { background: var(--blue-dark); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }

.btn-ghost {
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 15px;
  cursor: pointer;
}

.icon-good, .icon-bad {
  width: 56px; height: 56px; line-height: 56px;
  border-radius: 50%;
  font-size: 28px; font-weight: 700;
  margin: 0 auto 14px;
  color: #fff;
}
.icon-good { background: var(--ok); color: var(--ok-ink); }
.icon-bad { background: var(--bad); }
#done-title { margin: 0 0 6px; color: var(--navy); }
#state-done .btn-primary { margin-top: 14px; }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

.foot {
  padding: 16px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.foot-brand { color: var(--navy); font-weight: 600; }

.spinner {
  width: 34px; height: 34px;
  border: 3px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }
