/* Sunrise AI — technical support form
   Tokens follow the Sunrise Business design system (warm neutrals, Sunrise
   red, Figtree, 12px cards, 25px pills). */

:root {
  --sr-red: #DA291C;
  --sr-red-hover: #E6003C;
  --sr-white: #FFFFFF;
  --sr-ink: #3D3935;
  --sr-ink-2: #575452;
  --sr-ink-3: #5F5955;
  --sr-ink-4: #86807C;
  --sr-divider: #B3AEAA;
  --sr-border: #E6E3DF;
  --sr-surface: #F7F6F5;

  --focus-ring: rgba(218, 41, 28, 0.35);
  --shadow-sm: 0 2px 4px 0 rgba(87, 84, 82, 0.20);
  --shadow-md: 0 4px 16px 0 rgba(0, 0, 0, 0.08);

  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 25px;

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

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.sr {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 24px;
  color: var(--sr-ink);
  background: var(--sr-surface);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--sr-red); text-decoration: none; font-weight: 700; }
a:hover { text-decoration: underline; }

.small { font-size: 14px; line-height: 20px; }
.muted { color: var(--sr-ink-2); }
.lead { font-size: 18px; line-height: 26px; font-weight: 500; }

/* ---------------------------------------------------------------- top bar */

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--sr-white);
  box-shadow: var(--shadow-sm);
}
.topbar__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--sr-ink);
  text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand__logo { display: block; width: auto; height: 46px; }
.brand__divider { width: 1px; height: 36px; background: var(--sr-border); }
.brand__name { font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -0.01em; }

.topbar__right { display: flex; align-items: center; gap: 20px; }

.swiss {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  color: var(--sr-ink-2);
  white-space: nowrap;
}

.lang { display: inline-flex; border: 1px solid var(--sr-border); border-radius: var(--r-pill); padding: 2px; background: var(--sr-white); }
.lang__btn {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  color: var(--sr-ink-2);
  padding: 4px 12px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.lang__btn[aria-pressed="true"] { background: var(--sr-ink); color: var(--sr-white); }
.lang__btn:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 1px; }

/* ------------------------------------------------------------------ page */

.page {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.intro { max-width: 720px; margin-bottom: 28px; }
.eyebrow {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 20px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--sr-red);
}
.intro__title { margin: 0 0 12px; font-size: 32px; line-height: 40px; font-weight: 700; }
.intro__lead { margin: 0; color: var(--sr-ink-2); }

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  align-items: start;
}

.card {
  background: var(--sr-white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 32px;
}

/* ------------------------------------------------------------------ form */

.group { border: 0; margin: 0 0 8px; padding: 0; min-width: 0; }
.group + .group { margin-top: 20px; padding-top: 28px; border-top: 1px solid var(--sr-border); }
.group__title { padding: 0; margin: 0 0 16px; font-size: 20px; line-height: 28px; font-weight: 700; }

.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.grid .field { margin-bottom: 0; }
.grid { margin-bottom: 16px; }

.label { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--sr-ink); }
.req { color: var(--sr-red); }
.hint { margin: 0; font-size: 13px; line-height: 18px; color: var(--sr-ink-4); }
.error { margin: 0; font-size: 13px; line-height: 18px; color: var(--sr-red); font-weight: 500; }

.input {
  width: 100%;
  font: inherit;
  color: var(--sr-ink);
  background: var(--sr-white);
  border: 1px solid var(--sr-divider);
  border-radius: var(--r-md);
  padding: 11px 14px;
  line-height: 24px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: var(--sr-ink-4); }
.input:hover { border-color: var(--sr-ink-4); }
.input:focus { outline: none; border-color: var(--sr-red); box-shadow: 0 0 0 3px var(--focus-ring); }
.input[aria-invalid="true"] { border-color: var(--sr-red); }
.textarea { resize: vertical; min-height: 96px; }

.select-wrap { position: relative; }
.select { appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap__chevron { position: absolute; right: 12px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--sr-ink-2); pointer-events: none; }

.segmented {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--sr-divider);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sr-white);
}
.segmented__item { position: relative; }
.segmented__item + .segmented__item { border-left: 1px solid var(--sr-border); }
.segmented__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented__label {
  display: block;
  text-align: center;
  padding: 10px 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: var(--sr-ink-2);
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.segmented__label:hover { background: var(--sr-surface); }
.segmented__input:checked + .segmented__label { background: var(--sr-ink); color: var(--sr-white); }
.segmented__input[value="critical"]:checked + .segmented__label { background: var(--sr-red); }
.segmented__input:focus-visible + .segmented__label { box-shadow: inset 0 0 0 2px var(--focus-ring); }

.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.form__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid var(--sr-border);
}
.form__footer .small { margin: 0; max-width: 420px; }

.alert {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  background: rgba(218, 41, 28, 0.06);
  border: 1px solid rgba(218, 41, 28, 0.35);
  color: var(--sr-ink);
  font-size: 14px;
  line-height: 20px;
}

/* --------------------------------------------------------------- buttons */

.sr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 14px 28px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, box-shadow .15s ease, transform .05s ease;
}
.sr-btn:hover { text-decoration: none; }
.sr-btn:focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 2px; }
.sr-btn--primary { background: var(--sr-red); color: var(--sr-white); }
.sr-btn--primary:hover { background: var(--sr-red-hover); }
.sr-btn--primary:active { transform: translateY(1px); }
.sr-btn--primary[disabled] { opacity: .7; cursor: progress; }
.sr-btn--ghost { background: transparent; color: var(--sr-red); box-shadow: inset 0 0 0 1px var(--sr-red); }
.sr-btn--ghost:hover { background: rgba(218, 41, 28, 0.06); }

.btn__spinner {
  display: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: var(--sr-white);
  animation: spin .8s linear infinite;
}
.is-busy .btn__spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --------------------------------------------------------------- success */

.success { text-align: center; padding: 48px 32px; }
.success__icon { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--sr-red); }
.success__icon svg { width: 100%; height: 100%; }
.success__title { margin: 0 0 8px; font-size: 28px; line-height: 36px; }
.success__text { margin: 0 auto 20px; max-width: 520px; color: var(--sr-ink-2); }
.reference {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  padding: 10px 16px;
  background: var(--sr-surface);
  border-radius: var(--r-md);
}
.reference__label { font-size: 14px; color: var(--sr-ink-2); }
.reference code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; font-weight: 700; letter-spacing: .04em; }
.success__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ------------------------------------------------------------------ side */

.side { display: flex; flex-direction: column; gap: 16px; }
.side__block { background: var(--sr-white); border: 1px solid var(--sr-border); border-radius: var(--r-lg); padding: 20px; }
.side__block--critical { background: transparent; border-color: var(--sr-divider); }
.side__title { margin: 0 0 10px; font-size: 16px; line-height: 24px; font-weight: 700; }
.side__list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; }
.side__list--checks li { position: relative; padding-left: 24px; color: var(--sr-ink-2); }
.side__list--checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--sr-red);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.4-4-4 1.7-1.7 2.3 2.3 5.3-5.3 1.7 1.7-7 7Z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.4-4-4 1.7-1.7 2.3 2.3 5.3-5.3 1.7 1.7-7 7Z'/></svg>") center/contain no-repeat;
}
.side__block .small { margin: 0; color: var(--sr-ink-2); }

/* ---------------------------------------------------------------- footer */

.footer { background: var(--sr-ink); color: var(--sr-border); font-size: 14px; line-height: 20px; }
.footer__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer a { color: var(--sr-white); font-weight: 500; }
.footer__links { display: inline-flex; gap: 20px; }

/* ------------------------------------------------------------ responsive */

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .side { order: 2; }
}

@media (max-width: 640px) {
  .topbar__inner { padding: 10px 16px; }
  .page { padding: 28px 16px 48px; }
  .intro__title { font-size: 28px; line-height: 36px; }
  .card { padding: 24px 20px; }
  .grid { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: 1fr 1fr; }
  .segmented__item:nth-child(3) { border-left: 0; }
  .segmented__item:nth-child(n+3) { border-top: 1px solid var(--sr-border); }
  .form__footer { flex-direction: column; align-items: stretch; }
  .form__footer .sr-btn { width: 100%; }
}

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

/* ================================================================
   Self-check additions — same tokens, same radii, same shadows.
   Everything above this line is the unmodified support.ai stylesheet.
   ================================================================ */

.progress { height: 4px; background: var(--sr-surface); border-radius: 2px; overflow: hidden; margin: 0 0 20px; }
.progress__bar { height: 100%; width: 0; background: var(--sr-red); transition: width .25s ease; }

.step__meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 6px; font-size: 13px; line-height: 20px; color: var(--sr-ink-4); }
.step__meta .pill { display: inline-block; padding: 2px 10px; border-radius: var(--r-pill); background: var(--sr-surface); color: var(--sr-ink-2); font-weight: 600; font-size: 12px; }

.block__title { margin: 0 0 4px; font-size: 20px; line-height: 28px; font-weight: 700; }
.block__lead { margin: 0 0 20px; color: var(--sr-ink-2); }

.q__text { margin: 0 0 18px; font-size: 20px; line-height: 28px; font-weight: 700; }
.q__hint { margin: -10px 0 16px; font-size: 13px; line-height: 18px; color: var(--sr-ink-4); }

/* stacked option tiles */
.options { display: flex; flex-direction: column; gap: 10px; margin: 0 0 8px; }
.opt { position: relative; }
.opt__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt__label {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--sr-divider);
  border-radius: var(--r-md);
  background: var(--sr-white);
  font-size: 16px; line-height: 24px; font-weight: 500; color: var(--sr-ink);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.opt__label:hover { border-color: var(--sr-ink-4); background: var(--sr-surface); }
.opt__mark {
  flex: 0 0 20px; width: 20px; height: 20px;
  border: 2px solid var(--sr-divider); border-radius: 50%;
  background: var(--sr-white);
  position: relative;
  transition: border-color .15s ease, background-color .15s ease;
}
.opt--multi .opt__mark { border-radius: 5px; }
.opt__mark::after {
  content: ""; position: absolute; inset: 4px; border-radius: 50%;
  background: var(--sr-white); transform: scale(0); transition: transform .15s ease;
}
.opt--multi .opt__mark::after { display: none; }
.opt--multi .opt__input:checked + .opt__label .opt__mark { background: var(--sr-ink) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9.5 16.2 5.3 12l1.4-1.4 2.8 2.8 7.8-7.8 1.4 1.4z' fill='white'/></svg>") center/16px no-repeat; }
.opt__input:checked + .opt__label { border-color: var(--sr-ink); background: var(--sr-white); box-shadow: inset 0 0 0 1px var(--sr-ink); }
.opt__input:checked + .opt__label .opt__mark { border-color: var(--sr-ink); background: var(--sr-ink); }
.opt__input:checked + .opt__label .opt__mark::after { transform: scale(1); }
.opt__input:focus-visible + .opt__label { box-shadow: 0 0 0 3px var(--focus-ring); }

/* short answer sets (2–3 options) reuse the segmented control */
.segmented--2 { grid-template-columns: repeat(2, 1fr); }
.segmented--3 { grid-template-columns: repeat(3, 1fr); }
.segmented__label { padding: 14px 12px; font-size: 16px; line-height: 24px; }

.step__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--sr-border); }
.step__nav .sr-btn--ghost { box-shadow: none; padding-left: 12px; }
.step__nav .sr-btn--ghost:hover { background: transparent; text-decoration: underline; }
.link-btn { appearance: none; border: 0; background: none; font: inherit; font-weight: 700; color: var(--sr-red); cursor: pointer; padding: 0; }
.link-btn:hover { text-decoration: underline; }

/* consent checkbox */
.check { display: flex; align-items: flex-start; gap: 12px; margin: 4px 0 16px; cursor: pointer; }
.check__input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px; border: 2px solid var(--sr-divider); border-radius: 5px; background: var(--sr-white); position: relative; transition: border-color .15s ease, background-color .15s ease; }
.check__input:checked + .check__box { border-color: var(--sr-ink); background: var(--sr-ink) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9.5 16.2 5.3 12l1.4-1.4 2.8 2.8 7.8-7.8 1.4 1.4z' fill='white'/></svg>") center/18px no-repeat; }
.check__input:focus-visible + .check__box { box-shadow: 0 0 0 3px var(--focus-ring); }
.check__text { font-size: 14px; line-height: 20px; color: var(--sr-ink); }
.check[aria-invalid="true"] .check__box { border-color: var(--sr-red); }

/* success teaser */
.teaser { display: flex; width: max-content; flex-direction: column; align-items: center; gap: 2px; margin: 0 auto 16px; padding: 16px 28px; background: var(--sr-surface); border-radius: var(--r-lg); }
.teaser__label { font-size: 13px; line-height: 18px; color: var(--sr-ink-2); }
.teaser__level { font-size: 40px; line-height: 44px; font-weight: 700; color: var(--sr-red); }
.teaser__name { font-size: 14px; line-height: 20px; font-weight: 600; color: var(--sr-ink); }

.intro-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.facts { display: flex; gap: 24px; flex-wrap: wrap; margin: 0 0 24px; padding: 0; list-style: none; }
.facts li { font-size: 14px; line-height: 20px; color: var(--sr-ink-2); position: relative; padding-left: 22px; }
.facts li::before { content: ""; position: absolute; left: 0; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--sr-red);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.4-4-4 1.7-1.7 2.3 2.3 5.3-5.3 1.7 1.7-7 7Z'/></svg>") center/contain no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.4-4-4 1.7-1.7 2.3 2.3 5.3-5.3 1.7 1.7-7 7Z'/></svg>") center/contain no-repeat; }

.dims { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 20px; }
.dims li { display: flex; justify-content: space-between; gap: 12px; }
.dims li span:last-child { color: var(--sr-ink-4); }

@media (max-width: 640px) {
  .segmented--3 { grid-template-columns: 1fr; }
  .segmented--3 .segmented__item + .segmented__item { border-left: 0; border-top: 1px solid var(--sr-border); }
  .step__nav { flex-direction: column-reverse; align-items: stretch; }
  .step__nav .sr-btn { width: 100%; }
}

/* compact top bar on phones: keep the flag and the language pills, drop the label text */
@media (max-width: 640px) {
  .swiss span { display: none; }
  .brand { gap: 10px; }
  .brand__logo { height: 36px; }
  .brand__divider { height: 28px; }
  .brand__name { font-size: 16px; line-height: 24px; white-space: nowrap; }
  .topbar__right { gap: 10px; }
  .lang__btn { padding: 4px 8px; font-size: 12px; }
}
