.application-body {
  min-height: 100dvh;
  font-family: "DM Sans", system-ui, sans-serif;
}
.application-header {
  max-width: 608px;
  margin: 0 auto;
  padding: 16px 24px 10px;
}
.application-main {
  max-width: 560px;
  margin: 0 auto;
  padding: 20px 24px 0;
}
#progress ol {
  list-style: none;
  display: flex;
  gap: 14px;
  padding: 0;
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--muted);
}
#progress li {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  line-height: 1.3;
}
#progress li span {
  display: grid;
  place-items: center;
  flex: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--ink);
  font-weight: 600;
}
#progress li.current {
  color: var(--rust);
  font-weight: 700;
}
#progress li.current span {
  background: var(--rust);
  color: white;
}
#progress li.done span {
  background: var(--olive);
  color: white;
}
.preview-note {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 25px;
}
.application-main h1 {
  font:
    500 clamp(34px, 8vw, 44px) / 1.08 "Fraunces",
    Georgia,
    serif;
  letter-spacing: -0.025em;
  margin: 10px 0 14px;
  outline: none;
}
.application-main h1 em {
  color: var(--rust);
  font-style: italic;
}
.application-main .intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0 0 28px;
}
.application-main label,
.application-main legend {
  display: block;
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  margin: 23px 0 9px;
  color: var(--ink);
}
.application-main input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  min-width: 0;
  height: 56px;
  padding: 0 16px;
  border: 1.5px solid #cbb99e;
  border-radius: 15px;
  background: #fffdf8;
  font:
    400 16px "DM Sans",
    system-ui,
    sans-serif;
  color: var(--ink);
}
.application-main input:focus {
  outline: 2px solid var(--rust);
  outline-offset: 2px;
}
.application-main input[aria-invalid="true"] {
  border-color: var(--rust);
}
.application-main input::placeholder {
  color: #928575;
}
.application-main input:disabled {
  opacity: 0.65;
}
.application-phone {
  display: flex;
  align-items: center;
  border: 1.5px solid #cbb99e;
  border-radius: 15px;
  background: #fffdf8;
}
.application-phone > span {
  padding: 0 14px;
  border-right: 1px solid var(--line);
  font-size: 18px;
}
.application-phone input:not([type="checkbox"]) {
  border: 0;
}
.application-main .field-hint {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 8px 0;
}
.application-main .field-error {
  font-size: 14px;
  line-height: 1.5;
  color: var(--rust-dark);
  margin: 8px 0;
}
.application-actions {
  padding: 22px 0 max(14px, env(safe-area-inset-bottom));
  margin-top: 20px;
  background: var(--cream);
}
.application-actions .primary {
  width: 100%;
  box-shadow: 0 14px 24px -15px #b5472a99;
}
.application-main .back-link {
  display: block;
  margin: 12px auto 0;
  padding: 10px;
  text-align: center;
  background: none;
  border: 0;
  color: var(--rust);
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.location-button {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sand);
  color: var(--ink);
  font:
    600 15px "DM Sans",
    sans-serif;
  cursor: pointer;
}
.map-search {
  position: relative;
  z-index: 3;
}
.map-search ul {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  list-style: none;
  margin: 5px 0 0;
  padding: 0;
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 30px #2a23201f;
  overflow: hidden;
  max-height: 280px;
  overflow-y: auto;
}
.map-search li button {
  width: 100%;
  text-align: left;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.map-search li button small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.map-search .google-credit {
  padding: 8px 14px;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
}
.kitchen-map {
  height: clamp(240px, 40dvh, 340px);
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: #e9e5d9;
  display: grid;
  place-items: center;
}
.map-loading {
  padding: 20px;
  color: var(--muted);
  font-size: 14px;
}
.map-status {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  min-height: 0;
  margin: 10px 0;
}
.selected-location {
  display: flex;
  gap: 12px;
  padding: 16px;
  margin-top: 16px;
  border: 1px solid var(--line);
  background: #f2e8d3;
  border-radius: 16px;
}
.kitchen-place-name {
  font-weight: 600;
}
.selected-pin {
  color: var(--rust);
  font-size: 26px;
}
.selected-location p {
  margin: 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.application-main .primary:disabled,
.location-button:disabled {
  cursor: wait;
  opacity: 0.55;
  box-shadow: none;
}
.application-main fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 24px;
  min-width: 0;
}
.application-main legend {
  padding: 0;
  margin: 0;
}
.choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}
.regional-cuisines {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 16px;
}
.cuisine-group-title {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.application-main .choice {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  padding: 12px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.choice:has(input:checked) {
  border-color: var(--rust);
  background: #f4e3d8;
  color: var(--rust-dark);
}
.choice input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--rust);
}
.selection-count {
  font-size: 12px;
  color: var(--rust);
  margin: 10px 0;
}
.origin-fieldset {
  padding-top: 14px !important;
}
.origin-picker {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fffdf8;
  overflow: hidden;
}
.origin-picker summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 56px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.origin-picker summary span {
  font-weight: 400;
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.origin-picker summary::after {
  content: "⌄";
}
.origin-picker[open] summary::after {
  content: "⌃";
}
.application-main .picker-label {
  padding: 0 14px;
}
.origin-picker input[type="search"] {
  width: calc(100% - 28px);
  margin: 0 14px 12px;
}
.origin-options {
  max-height: 240px;
  overflow: auto;
  padding: 0 14px;
  overscroll-behavior: contain;
}
.application-main .origin-option {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 0;
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  border-top: 1px solid #e6dccb;
  cursor: pointer;
}
.origin-option input {
  width: 18px;
  height: 18px;
  accent-color: var(--rust);
}
.origin-option:has(input:disabled) {
  opacity: 0.48;
  cursor: default;
}
.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.selected-chips button {
  min-height: 40px;
  border: 1px solid #d9b49f;
  border-radius: 999px;
  padding: 8px 14px;
  background: #f4e3d8;
  color: var(--rust-dark);
  font:
    500 14px "DM Sans",
    sans-serif;
  cursor: pointer;
}
.review-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  margin: 16px 0;
}
.review-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.review-heading h2 {
  font:
    500 23px "Fraunces",
    Georgia,
    serif;
  margin: 0;
}
.text-button,
.text-link {
  border: 0;
  background: none;
  color: var(--rust);
  padding: 8px 0;
  font:
    600 14px "DM Sans",
    sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.review-card dl {
  margin: 0;
}
.review-card dt {
  font-size: 12px;
  color: var(--muted);
  margin: 12px 0 4px;
}
.review-card dd {
  margin: 0;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.review-card p {
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.completion-mark {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--olive);
  color: white;
  font-size: 32px;
  margin: 35px 0;
}
.application-footer {
  margin-top: 24px;
  padding: 10px 0 24px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.application-footer a {
  color: inherit;
  text-underline-offset: 3px;
}
.application-footer .text-button {
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
[hidden] {
  display: none !important;
}
@media (max-width: 350px) {
  .application-main {
    padding: 16px 20px 0;
  }
  #progress ol {
    gap: 8px;
    font-size: 11px;
  }
  .choice-grid {
    gap: 8px;
  }
  .application-main .choice {
    padding: 10px 8px;
    font-size: 13px;
  }
}

.device-location-status {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  margin: 12px 0;
}
.device-location-status[data-error="true"] {
  color: var(--rust-dark);
  border-left: 3px solid var(--rust);
  padding-left: 12px;
}
.device-recovery {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.device-recovery button {
  min-height: 44px;
  text-align: left;
}
.location-help {
  margin: 10px 0 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 14px;
  background: #fffdf8;
}
.location-help summary {
  min-height: 48px;
  padding: 14px 0;
  cursor: pointer;
  color: var(--rust);
  font-size: 14px;
  font-weight: 600;
}
.location-help p {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}
