:root {
  --bg-1: #f6ead6;
  --bg-2: #f8d7a0;
  --ink: #1e1a14;
  --muted: #6b6257;
  --card: #fffaf2;
  --line: #e7d8c3;
  --accent: #c24c29;
  --accent-2: #9f3517;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Avenir Next", "Nunito Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 10% 5%, #ffecc8 0%, transparent 35%),
    radial-gradient(circle at 85% 90%, #ffd39f 0%, transparent 35%),
    linear-gradient(130deg, var(--bg-1), var(--bg-2));
  min-height: 100dvh;
}

.page {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 40px 16px 60px;
}

.card {
  background: color-mix(in srgb, var(--card) 88%, white 12%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(20px, 4vw, 36px);
  box-shadow: 0 12px 38px rgb(44 23 2 / 12%);
}

.hero {
  margin: 0 0 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e3d0b6;
  box-shadow: 0 10px 22px rgb(88 42 4 / 16%);
}

.hero img {
  display: block;
  width: 100%;
  height: clamp(190px, 36vw, 420px);
  object-fit: cover;
  object-position: center;
}

h1 {
  margin: 0;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  line-height: 1.2;
}

.subtitle {
  margin: 10px 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.job-info {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
}

.job-info-block {
  border: 1px solid #ecd6b8;
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #fffbf5, #fff6e9);
}

.job-info-block h2 {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.2;
  color: #4f3421;
}

.job-info-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.job-info-block li {
  position: relative;
  padding-left: 20px;
  line-height: 1.35;
}

.job-info-block li::before {
  content: "✔";
  position: absolute;
  left: 0;
  top: 0;
  color: #b46a17;
  font-weight: 700;
}

.job-info-footnote {
  margin: 10px 0 0;
  font-size: 0.84rem;
  color: #7d6651;
}

form {
  display: grid;
  gap: 18px;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  margin: 0;
  display: grid;
  gap: 10px;
}

legend {
  padding: 0 8px;
  font-weight: 700;
}

.field {
  display: grid;
  gap: 8px;
}

.field > span {
  font-weight: 700;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
}

input[type="text"],
input[type="tel"],
button,
.outlet-toggle {
  font: inherit;
}

input[type="text"],
input[type="tel"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  background: #fff;
}

input:focus-visible,
button:focus-visible,
.outlet-toggle:focus-visible {
  outline: 2px solid #874127;
  outline-offset: 2px;
}

.hint {
  color: var(--muted);
  font-size: 0.86rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.outlet-picker {
  position: relative;
}

.outlet-toggle {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: linear-gradient(180deg, #fff, #fffaf3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.outlet-toggle-content {
  display: grid;
  gap: 2px;
}

.outlet-toggle-subtext {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.outlet-toggle-icon {
  font-size: 1.05rem;
  line-height: 1;
  color: #7a5d4c;
  transition: transform 0.2s ease;
}

.outlet-toggle[aria-expanded="true"] .outlet-toggle-icon {
  transform: rotate(180deg);
}

.outlet-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgb(30 13 2 / 15%);
  overflow: hidden;
}

.outlet-tools {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  background: #fffaf1;
  display: grid;
  gap: 8px;
}

.outlet-tool-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.outlet-tool-btn {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: #fffdfa;
  color: #574435;
  cursor: pointer;
  white-space: nowrap;
}

.outlet-tool-btn.primary {
  background: linear-gradient(180deg, #fff5e6, #ffe8c6);
  border-color: #eec796;
  color: #5f3616;
  font-weight: 700;
}

.outlet-tool-btn:hover {
  background: #fff3df;
}

.outlet-search-wrap {
  display: block;
}

.outlet-search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.outlet-sort-note {
  margin: 0;
  color: #7d624f;
  font-size: 0.8rem;
  min-height: 1.1rem;
}

.outlet-list {
  max-height: 360px;
  overflow: auto;
  padding: 8px;
  display: grid;
  gap: 6px;
  background: #fff;
}

.outlet-item {
  border: 1px solid #f1e2cf;
  border-radius: 10px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px 10px;
  padding: 10px;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.outlet-item:hover {
  background: #fff8ef;
  border-color: #ebd1ad;
}

.outlet-item input[type="radio"] {
  margin-top: 3px;
  accent-color: #a34526;
}

.outlet-radio-wrap {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  width: 20px;
}

.outlet-content {
  min-width: 0;
}

.outlet-title {
  display: block;
  font-size: 1rem;
  font-weight: 650;
  color: #2c1f16;
  line-height: 1.28;
}

.outlet-item.selected {
  border-color: #d5a56d;
  background: #fff2df;
}

.outlet-address {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 4px;
  line-height: 1.28;
}

.submit {
  border: 0;
  border-radius: 10px;
  padding: 13px 16px;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.status {
  margin: 12px 0 0;
  min-height: 1.2em;
  font-weight: 600;
}

.status:empty {
  margin: 0;
  min-height: 0;
}

.status.error {
  color: #b3350e;
}

.status.success {
  color: #146a35;
}

.success-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(34 22 14 / 55%);
  display: grid;
  place-items: center;
  z-index: 100;
  padding: 16px;
}

.success-modal-backdrop[hidden] {
  display: none;
}

.success-modal {
  width: min(100%, 460px);
  border-radius: 16px;
  border: 1px solid #f0d2a5;
  background: linear-gradient(180deg, #fffaf3, #fff3de);
  box-shadow: 0 20px 42px rgb(27 15 6 / 35%);
  padding: 20px;
}

.success-modal h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #5d3016;
}

.success-modal p {
  margin: 0 0 16px;
  color: #5f4a3a;
  line-height: 1.4;
}

.success-modal button {
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  background: linear-gradient(160deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 640px) {
  .page {
    padding: 18px 12px 32px;
  }

  .card {
    border-radius: 14px;
    padding: 16px;
  }

  .outlet-panel {
    position: static;
    margin-top: 8px;
  }

  .outlet-tool-row {
    grid-template-columns: 1fr;
  }
}
