:root {
  --paper: #f4f8fc;
  --sheet: #ffffff;
  --ink: #16324a;
  --muted: #5c7388;
  --line: #d4e4f2;
  --blue: #1a73c7;
  --blue-deep: #0e4d86;
  --sky: #3d98e0;
  --soft: #e7f3fc;
  --shadow: 0 12px 28px rgba(22, 74, 130, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100dvh;
  background: #d7e8f6;
  color: var(--ink);
  font-family: "Segoe UI", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.sheet {
  width: min(100%, 440px);
  min-height: 100dvh;
  margin: 0 auto;
  background:
    linear-gradient(90deg, #0e4d86, #1a73c7 62%, #8ecaf5) 0 0 / 100% 8px no-repeat,
    var(--paper);
  padding-top: 8px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px 0;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
}

.brand {
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.langs {
  display: flex;
  flex: 0 0 auto;
  gap: 4px;
  margin: 0;
}

.langs button {
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet);
  color: var(--blue-deep);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.langs button.is-current {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: #fff;
}

.screen {
  padding: 18px 20px 28px;
  padding-left: max(20px, env(safe-area-inset-left));
  padding-right: max(20px, env(safe-area-inset-right));
  padding-bottom: max(28px, env(safe-area-inset-bottom));
}

.eyebrow {
  margin: 8px 0 0;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 8px 0 10px;
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.lead, .note, .hint {
  color: var(--muted);
  margin: 0;
}

.note { margin-top: 22px; font-size: 14px; }

.choices {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.choice {
  display: flex;
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.choice-complaint { box-shadow: inset 6px 0 0 var(--blue-deep), var(--shadow); }
.choice-suggestion { box-shadow: inset 6px 0 0 var(--sky), var(--shadow); }
.choice-map { box-shadow: inset 6px 0 0 var(--blue), var(--shadow); }
.choice-ai { box-shadow: inset 6px 0 0 #2f6fad, var(--shadow); }

.choice:active { transform: scale(0.99); }

.choice-icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--soft);
}

.choice-complaint .choice-icon { color: var(--blue-deep); }
.choice-suggestion .choice-icon { color: var(--sky); }
.choice-map .choice-icon { color: var(--blue); }
.choice-ai .choice-icon { color: var(--blue-deep); }

.lead a {
  color: var(--blue);
}

.agents {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.agent {
  display: grid;
  gap: 10px;
  align-content: start;
  justify-items: center;
  min-height: 156px;
  padding: 14px 10px 16px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.agent:active { transform: scale(0.99); }

.agent img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.agent img.on-dark {
  background: #102a44;
  border-radius: 16px;
}

.agent span {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

.choice-text { display: grid; gap: 4px; }

.choice-title {
  font-size: 20px;
  font-weight: 700;
}

.choice-desc {
  color: var(--muted);
  font-size: 14px;
}

.back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--blue-deep);
  font-weight: 650;
  text-decoration: none;
}

.banner {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--soft);
  color: var(--blue-deep);
}

.field { margin: 0 0 18px; }

fieldset.field {
  border: 0;
  padding: 0;
  min-inline-size: 0;
}

legend, .field label, .optional h2 {
  display: block;
  margin-bottom: 8px;
  font-size: 15px;
  font-weight: 700;
}

.optional h2 { margin: 0 0 4px; font-size: 18px; }

.optional {
  margin-top: 8px;
  padding-top: 8px;
}

.hint { margin-bottom: 14px; font-size: 14px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sheet);
  font-size: 14px;
}

.chip input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.form-complaint .chip:has(input:checked) {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
  color: white;
}

.form-suggestion .chip:has(input:checked) {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}

.chip:has(input:focus-visible) {
  outline: 2px solid var(--blue-deep);
  outline-offset: 2px;
}

textarea, input[type="text"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sheet);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  padding: 14px 16px;
}

textarea {
  min-height: 148px;
  resize: vertical;
  line-height: 1.4;
}

textarea:focus, input[type="text"]:focus {
  outline: 2px solid var(--blue);
  border-color: transparent;
}

.is-invalid textarea,
.is-invalid input[type="text"] {
  border-color: var(--blue-deep);
}

.error {
  margin: 8px 0 0;
  color: var(--blue-deep);
  font-size: 14px;
}

.submit-bar {
  position: sticky;
  bottom: 0;
  margin: 0 -20px;
  padding: 18px 20px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(244, 248, 252, 0), var(--paper) 32%);
}

.submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  border: 0;
  border-radius: 16px;
  background: var(--blue);
  color: white;
  font: inherit;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.form-complaint .submit { background: var(--blue-deep); }

.submit:active { transform: translateY(1px); }

.thanks { padding-top: 36px; text-align: center; }

.mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue);
}

.ticket {
  margin: 18px 0 22px;
  padding: 14px;
  border-radius: 14px;
  background: var(--sheet);
  border: 1px solid var(--line);
}

.submit-link { margin-top: 8px; }

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.sheet-map {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.sheet-map .screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0;
}

.map-search {
  position: relative;
  z-index: 800;
  padding: 12px 16px 10px;
}

.map-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
}

.map-results {
  position: absolute;
  left: 16px;
  right: 16px;
  top: calc(100% - 4px);
  max-height: 240px;
  overflow: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.map-results button {
  display: grid;
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: white;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.map-results button span,
.map-result-empty {
  color: var(--muted);
  font-size: 13px;
}

.map-result-empty { margin: 0; padding: 12px 14px; }

#campus-map {
  flex: 1;
  min-height: 240px;
  background: #d7e8f6;
}

.map-card {
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
  background: white;
  border-top: 1px solid var(--line);
}

.map-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.map-card select {
  width: 100%;
  min-height: 48px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.map-card .submit { margin-bottom: 8px; }

.map-empty {
  margin: 0;
  padding: 10px 16px 14px;
  color: var(--muted);
  font-size: 14px;
}

.leaflet-control-attribution {
  font-size: 10px;
}

@media (min-width: 560px) {
  body { padding: 28px 16px; }
  .sheet {
    min-height: calc(100dvh - 56px);
    border-radius: 28px;
    overflow: clip;
    box-shadow: 0 20px 50px rgba(22, 74, 130, 0.12);
  }
}
