/* Looks like the Jzilla Google Form: pale green page, white cards, green accents. */
:root {
  --green: #016733;
  --page: #e6f0eb;
  --line: #dadce0;
  --ink: #202124;
  --muted: #5f6368;
  --red: #d93025;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  padding: 12px 12px calc(40px + env(safe-area-inset-bottom));
  background: var(--page);
  color: var(--ink);
  font: 14px/1.5 Roboto, "Segoe UI", Arial, sans-serif;
}
[hidden] { display: none !important; }
.wrap { max-width: 640px; margin: 0 auto; }

/* ---- cards ---- */
.banner { display: block; width: 100%; height: auto; margin-bottom: 12px; border-radius: 8px; background: var(--green); aspect-ratio: 638 / 158; }
.card { margin-bottom: 12px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.head { padding: 0; border-top: 10px solid var(--green); }
.head h1 { margin: 0; padding: 22px 24px 12px; font: 400 32px/1.25 Roboto, Arial, sans-serif; }
.head p { margin: 0; padding: 0 24px 16px; }
.head .req-note { padding: 16px 24px; border-top: 1px solid var(--line); color: var(--red); }

/* ---- questions ---- */
.q { display: block; margin: 0 0 16px; font-size: 16px; font-weight: 400; }
.q.req::after { content: " *"; color: var(--red); }
.hint { margin: -10px 0 12px; color: var(--muted); font-size: 12px; }
.msg { min-height: 1em; margin: 12px 0 0; color: var(--red); }

input[type=text], input[type=password], textarea {
  width: 50%; min-width: 220px; padding: 6px 0;
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid #c4c7c5; border-radius: 0; outline: 0;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus { border-bottom: 2px solid var(--green); }
textarea { width: 100%; min-height: 90px; resize: vertical; }

select {
  appearance: none; -webkit-appearance: none;
  min-width: 220px; max-width: 100%; padding: 12px 40px 12px 14px;
  font: inherit; color: var(--ink);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%235f6368' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 8px center;
  border: 1px solid var(--line); border-radius: 4px;
}
select:disabled { color: var(--muted); background-color: #f8f9fa; }
select:focus-visible { outline: 2px solid var(--green); outline-offset: 1px; }

/* ---- 1-5 rating scale ---- */
.scale { display: flex; justify-content: center; align-items: flex-end; }
.scale .end { width: 78px; padding: 0 10px 9px 0; text-align: right; }
.scale .end.high { padding: 0 0 9px 10px; text-align: left; }
.scale label { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 6px; max-width: 64px; padding: 4px 0; cursor: pointer; }
.scale input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); cursor: pointer; }
.scale input:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---- buttons ---- */
.btn { min-height: 40px; padding: 10px 24px; font: 500 14px Roboto, Arial, sans-serif; color: #fff; background: var(--green); border: 0; border-radius: 4px; cursor: pointer; }
.btn:hover { filter: brightness(1.12); }
.btn:disabled { opacity: .55; cursor: default; }
.btn:focus-visible { outline: 3px solid #7bc79d; outline-offset: 2px; }
.link { padding: 0; font: inherit; color: #1a73e8; background: none; border: 0; text-decoration: underline; cursor: pointer; }

/* ---- tabs ---- */
.tabs { display: flex; padding: 0; overflow: hidden; }
.tabs button { flex: 1; padding: 14px 8px; font: 500 14px Roboto, Arial, sans-serif; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.tabs button[aria-selected=true] { color: var(--green); border-bottom-color: var(--green); }
.tabs button:focus-visible { outline: 2px solid var(--green); outline-offset: -4px; }

/* ---- confirmation ---- */
.done h2 { margin: 0 0 8px; font: 400 22px Roboto, Arial, sans-serif; }

/* ---- past reviews ---- */
.student-name { margin: 0; font: 500 20px/1.3 Roboto, Arial, sans-serif; }
.vehicle { margin: 0 0 4px; color: var(--muted); }
.summary { margin: 4px 0 8px; color: var(--muted); font-size: 12px; }
.review { padding: 10px 0; border-top: 1px solid var(--line); }
.review summary { cursor: pointer; }
.review .when { font-weight: 500; }
.review .meta { display: block; color: var(--muted); font-size: 12px; }
.notes { margin-top: 8px; white-space: pre-wrap; overflow-wrap: anywhere; }

#msr-attribution { margin-top: 24px; text-align: center; }

@media (max-width: 480px) {
  .card { padding: 16px; }
  .card.head { padding: 0; }
  .head h1 { font-size: 26px; }
  input[type=text], input[type=password] { width: 100%; }
  .scale .end { width: 58px; padding-right: 6px; font-size: 12px; }
  .scale .end.high { padding-left: 6px; }
}
