/* Service desk — complaint registration and tracking (extends theme.css) */
.service-page {
  padding: 28px 0 clamp(56px, 6vw, 88px);
}
.service-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.3fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.service-intro {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(80% 90% at 0% 110%, rgba(215, 38, 30, 0.42), transparent 60%),
    var(--night);
  color: #c9ccd3;
}
.service-intro .eyebrow {
  color: #ffb4a4;
}
.service-intro h1 {
  color: #fff;
  font-size: clamp(34px, 3.6vw, 52px);
  margin: 12px 0 12px;
}
.service-intro p {
  margin: 0;
  line-height: 1.65;
}
.service-photo {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  margin: 24px 0;
  border-radius: var(--radius);
}
.service-call {
  display: grid;
  gap: 4px;
  margin-top: 22px;
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.service-call span {
  font-size: 13px;
  color: #aeb3bc;
}
.service-call a {
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.service-call a:hover {
  color: #ffb4a4;
}
.service-intro .inline-link {
  margin-top: 18px;
  color: #fff;
}
.service-intro .inline-link:hover {
  color: #ffb4a4;
}
.service-card {
  min-width: 0;
  padding: clamp(18px, 2.6vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.service-tabs {
  display: flex;
  gap: 4px;
  margin: 0 0 26px;
  padding: 5px;
  border-radius: 999px;
  background: var(--canvas);
}
.service-tabs button {
  flex: 1;
  padding: 11px 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.service-tabs button:hover {
  color: var(--ink);
}
.service-tabs [aria-selected="true"] {
  background: #fff;
  color: var(--brand);
  box-shadow: var(--shadow-sm);
}
.service-card fieldset {
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}
.service-card fieldset + fieldset {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.service-card legend {
  float: left;
  width: 100%;
  margin-bottom: 14px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.service-grid {
  clear: both;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.service-grid input,
.service-grid select,
.service-grid textarea {
  min-width: 0;
  font-size: 16px;
}
.service-grid input[type="file"] {
  padding: 16px;
  border: 1.5px dashed var(--line-strong);
  background: var(--canvas);
  cursor: pointer;
}
.service-grid input[type="file"]:hover {
  border-color: var(--brand);
}
.service-grid input[type="file"]::file-selector-button {
  margin-right: 12px;
  padding: 8px 14px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 650;
  cursor: pointer;
}
.service-grid small {
  color: var(--muted);
  font-weight: 450;
}
.service-wide {
  grid-column: 1 / -1;
}
.service-card .btn[type="submit"] {
  min-width: 220px;
  background: var(--brand);
}
.service-card .btn[type="submit"]:hover {
  background: var(--brand-strong);
}
.service-feedback {
  color: var(--brand-strong);
  line-height: 1.5;
}
.service-feedback:empty {
  margin: 0;
}
#receipt,
#track-result {
  margin-top: 8px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--canvas);
}
#receipt h2,
#current-status {
  font-size: clamp(26px, 2.6vw, 34px);
  margin: 6px 0 10px;
}
#receipt p {
  max-width: 48ch;
  line-height: 1.7;
}
#receipt-number {
  padding: 2px 8px;
  border-radius: 6px;
  background: #fff;
  color: var(--brand);
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
#receipt .actions,
#receipt > .btn {
  margin-top: 8px;
}
#track-result {
  margin-top: 24px;
}
#status-history {
  margin: 16px 0 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--line-strong);
  list-style: none;
}
#status-history li {
  position: relative;
  padding: 6px 0;
}
#status-history li::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 13px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--brand);
}
.registration-page .service-intro .service-photo {
  display: none;
}
@media (max-width: 900px) {
  .service-layout {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .service-intro {
    position: static;
    width: 100%;
  }
  .service-intro .service-photo {
    display: none;
  }
}
@media (max-width: 560px) {
  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-card {
    padding: 16px;
  }
  .service-tabs button {
    padding-inline: 6px;
    font-size: 14px;
  }
  .service-card .btn[type="submit"] {
    width: 100%;
  }
}

/* ---------- Connection, marketplace and symptom pickers ---------- */
.field-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 650; color: var(--ink); }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; display: inline-flex; cursor: pointer; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.service-grid .choice input { min-width: 0; }
.choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff; font-weight: 650; font-size: 15px; transition: border-color 0.15s, background 0.15s, color 0.15s; }
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.choice input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.choice-row.market .choice span { min-width: 120px; justify-content: center; border-radius: 12px; min-height: 52px; }
.marketplace-box { display: grid; gap: 14px; padding: 16px; border: 1px solid #f3c7b8; border-radius: 14px; background: #fff8f5; animation: rise 0.2s ease-out; }
.marketplace-box[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.symptom-hint { clear: both; margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.symptom-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.symptom-group { padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); }
.symptom-group > strong { display: block; margin-bottom: 8px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.symptom { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; border-radius: 8px; font-size: 14.5px; line-height: 1.35; cursor: pointer; }
.symptom:hover { background: #fff; }
.symptom input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--brand); }
.symptom.urgent span::after { content: "Safety"; margin-left: 6px; padding: 1px 6px; border-radius: 999px; background: #fde2e1; color: var(--brand-strong); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.safety-alert { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; border: 1px solid #f5b5b1; background: #fff1f0; color: #7f1d1d; }
.safety-alert p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; }
.visit-note { margin: 4px 0 10px; padding: 10px 14px; border-radius: 10px; background: #ecfdf3; color: #14532d; font-weight: 600; }
#status-history small { color: var(--muted); }
@media (max-width: 760px) { .symptom-groups { grid-template-columns: 1fr; } }
