:root {
  --bg: #eef3f8;
  --surface: #fff;
  --soft: #f7f9fc;
  --text: #101828;
  --muted: #6b7684;
  --muted-2: #98a2b3;
  --line: #dde5ef;
  --blue: #087cf7;
  --blue-2: #13a3ff;
  --blue-soft: #e8f2ff;
  --green: #16b364;
  --orange: #f79009;
  --red: #ef4444;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

button,
a,
label {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

.mobile-shell {
  position: relative;
  width: min(100%, 430px);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--bg);
  padding-bottom: calc(22px + env(safe-area-inset-bottom));
}

.shop-hero {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(150deg, var(--blue-2) 0%, var(--blue) 48%, #006df0 100%);
  transition: min-height 180ms ease;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0.13;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, rgba(19, 163, 255, 0.94), rgba(8, 124, 247, 0.98));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  padding: calc(22px + env(safe-area-inset-top)) 20px 108px;
  transition: min-height 180ms ease, padding 180ms ease;
}

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

.shop-mark {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--blue);
  background: rgba(255, 255, 255, 0.96);
  font-size: 23px;
  font-style: italic;
  font-weight: 1000;
  line-height: 1;
}

.eyebrow,
.shop-name-line,
.lead,
.helper,
.field-note,
.secure-note,
.secure-footer,
.step-kicker {
  margin: 0;
  line-height: 1.5;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
h4,
p {
  letter-spacing: 0;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

h1 {
  font-size: 15px;
  line-height: 1.2;
}

.shop-address {
  overflow: hidden;
  max-width: 210px;
  margin: 2px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.call-button {
  margin-left: auto;
  border-radius: 999px;
  padding: 8px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}

.hero-copy {
  margin-top: 56px;
}

.shop-name-line {
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 800;
}

h2 {
  max-width: 260px;
  margin-top: 12px;
  color: #fff;
  font-size: 34px;
  line-height: 1.12;
  font-weight: 1000;
}

.hero-copy > p:last-child {
  max-width: 258px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.7;
}

.hero-art {
  position: absolute;
  right: 28px;
  bottom: 88px;
  width: 116px;
  height: 128px;
  opacity: 0.72;
}

.hero-art .device,
.hero-art .watch {
  position: absolute;
  display: block;
  border: 3px solid rgba(255, 255, 255, 0.46);
  background: transparent;
}

.hero-art .device {
  right: 14px;
  top: 0;
  width: 74px;
  height: 118px;
  border-radius: 17px;
  transform: rotate(8deg);
}

.hero-art .watch {
  right: 0;
  bottom: 14px;
  width: 47px;
  height: 54px;
  border-radius: 15px;
}

.compact-mode .shop-hero,
.complete-mode .shop-hero {
  min-height: 118px;
}

.compact-mode .hero-content,
.complete-mode .hero-content {
  min-height: 118px;
  padding: calc(18px + env(safe-area-inset-top)) 18px 46px;
}

.compact-mode .hero-copy,
.compact-mode .hero-art,
.complete-mode .hero-copy,
.complete-mode .hero-art {
  display: none;
}

.step,
.complete {
  position: relative;
  z-index: 2;
  display: none;
  margin: -54px 18px 0;
  border-radius: 26px 26px 8px 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.step.active {
  display: flex;
  min-height: auto;
  flex-direction: column;
  gap: 16px;
  padding: 20px 20px 24px;
}

.entry-step.active {
  min-height: 520px;
  padding: 36px 20px 24px;
}

.step-progress {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 16px;
  margin-bottom: 6px;
}

.step-badge {
  border-radius: 999px;
  padding: 6px 11px;
  color: #fff;
  background: var(--blue);
  font-size: 13px;
  font-weight: 1000;
}

.step-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.step-dots span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #cbd5e1;
}

.step-dots span.active,
.step-dots span.done {
  background: var(--blue);
}

.step-kicker {
  color: var(--blue);
  font-size: 13px;
  font-weight: 1000;
}

h3 {
  color: #111827;
  font-size: 25px;
  line-height: 1.28;
  font-weight: 1000;
}

h4 {
  font-size: 17px;
}

.lead,
.helper,
.field-note {
  color: var(--muted);
  font-size: 14px;
}

.lead.compact {
  margin-top: 2px;
  font-size: 13px;
}

label {
  display: grid;
  gap: 9px;
  color: #111827;
  font-size: 14px;
  font-weight: 900;
}

input,
textarea,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  color: var(--text);
  background: #fff;
  outline: 0;
  font-weight: 700;
}

textarea {
  min-height: 90px;
  padding-top: 14px;
  resize: vertical;
  line-height: 1.5;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(8, 124, 247, 0.12);
}

input::placeholder,
textarea::placeholder {
  color: #9aa5b1;
  font-weight: 700;
}

.inline-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.inline-button {
  min-width: 112px;
  padding-inline: 12px;
}

.primary,
.secondary,
.primary-link,
.secondary-link {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 16px;
  font-weight: 1000;
}

.primary,
.primary-link {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 26px rgba(8, 124, 247, 0.22);
}

.secondary,
.secondary-link {
  color: var(--blue);
  background: #fff;
  border-color: #c7dbf5;
}

.primary:disabled,
.secondary:disabled {
  opacity: 0.5;
  box-shadow: none;
}

.first-start {
  width: 100%;
  margin-top: 10px;
}

.notice-list {
  display: grid;
  gap: 10px;
}

.notice-list div {
  display: grid;
  min-height: 72px;
  grid-template-columns: 36px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 14px;
  border-radius: 8px;
  padding: 13px 16px;
  background: var(--soft);
}

.notice-list strong {
  align-self: end;
  font-size: 15px;
  font-weight: 1000;
}

.notice-list span:last-child {
  align-self: start;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.mini-icon,
.photo-icon-small,
.preview-mark {
  position: relative;
  display: inline-block;
}

.mini-icon {
  grid-row: 1 / span 2;
  width: 26px;
  height: 26px;
}

.user-icon::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.user-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 3px;
  width: 16px;
  height: 10px;
  border-radius: 10px 10px 4px 4px;
  background: var(--blue);
}

.symptom-icon::before {
  content: "";
  position: absolute;
  inset: 4px 5px;
  border: 3px solid var(--blue);
  border-top: 0;
  border-radius: 0 0 12px 12px;
}

.symptom-icon::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 3px;
  width: 9px;
  height: 9px;
  border: 3px solid var(--blue);
  border-radius: 50%;
}

.photo-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 20px;
  height: 15px;
  border-radius: 4px;
  background: var(--blue);
}

.photo-icon::after {
  content: "";
  position: absolute;
  left: 10px;
  top: 11px;
  width: 6px;
  height: 6px;
  border: 2px solid #fff;
  border-radius: 50%;
}

.secure-note {
  margin-top: 4px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 700;
}

.secure-footer {
  margin-top: 12px;
  padding-top: 8px;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  font-weight: 800;
}

.field-group {
  display: grid;
  gap: 10px;
}

.field-title {
  color: #111827;
  font-size: 14px;
  font-weight: 1000;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.category-tabs label {
  display: block;
}

.category-tabs input,
.choice-grid input,
.slot-list input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.category-tabs span {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #4b5563;
  background: #fff;
  font-size: 13px;
  font-weight: 900;
}

.category-tabs label:has(input:checked) span {
  border-color: var(--blue);
  color: var(--blue);
  background: #f7fbff;
  box-shadow: 0 0 0 2px rgba(8, 124, 247, 0.09);
}

.counter {
  margin-top: -4px;
  color: var(--muted-2);
  text-align: right;
  font-size: 12px;
  font-weight: 800;
}

.photo-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.photo-request {
  display: grid;
  min-height: 74px;
  gap: 6px;
  place-items: center;
  border: 1px dashed #b8d2fb;
  border-radius: 8px;
  color: #334155;
  background: #fff;
  font-size: 12px;
  font-weight: 900;
}

.photo-icon-small {
  width: 20px;
  height: 15px;
  border-radius: 4px;
  background: #eaf3ff;
}

.photo-icon-small::before {
  content: "";
  position: absolute;
  inset: 3px 6px;
  border: 2px solid var(--blue);
  border-radius: 50%;
}

.upload-box {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px dashed #b8d2fb;
  border-radius: 8px;
  color: var(--blue);
  background: #fff;
  font-size: 14px;
  font-weight: 1000;
}

.upload-box input {
  display: none;
}

.file-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.choice-grid {
  display: grid;
  gap: 10px;
}

.choice-grid label {
  position: relative;
  display: grid;
  min-height: 66px;
  grid-template-columns: 22px 1fr;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
}

.choice-grid label::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
}

.choice-grid label:has(input:checked) {
  border-color: #b3d4ff;
  box-shadow: 0 0 0 2px rgba(8, 124, 247, 0.08);
}

.choice-grid label:has(input:checked)::before {
  border-color: var(--blue);
  background: radial-gradient(circle, var(--blue) 0 40%, transparent 43%);
}

.choice-grid strong {
  display: block;
  color: #111827;
  font-size: 14px;
  font-weight: 1000;
}

.choice-grid small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.appointment-box {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
}

.appointment-box[hidden] {
  display: none;
}

.appointment-box p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.slot-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.slot-list label {
  display: block;
}

.slot-list span {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #475467;
  background: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 900;
}

.slot-list label:has(input:checked) span {
  border-color: var(--blue);
  color: var(--blue);
  background: #f7fbff;
}

.check-row {
  display: flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fff;
  color: #344054;
}

.check-row input {
  width: 22px;
  min-height: 22px;
  accent-color: var(--blue);
  flex: 0 0 auto;
}

.check-row span {
  min-width: 0;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 5px;
  font-size: 12px;
  font-weight: 900;
}

.policy-links a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.submit-preview {
  display: grid;
  min-height: 96px;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #fff;
}

.preview-mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--blue-soft);
}

.preview-mark::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 9px;
  width: 10px;
  height: 16px;
  border: solid var(--blue);
  border-width: 0 4px 4px 0;
  transform: rotate(45deg);
}

.submit-preview strong {
  display: block;
  font-size: 15px;
  font-weight: 1000;
}

.submit-preview p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 700;
}

.bottom-actions {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 10px;
  margin: 12px 18px 0;
  padding: 0;
}

.bottom-actions.intro-hidden,
.bottom-actions[hidden] {
  display: none;
}

.step-error {
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--red);
  background: #fff1f2;
  font-weight: 900;
}

.helper[data-tone="blue"] {
  color: var(--blue);
  font-weight: 900;
}

.helper[data-tone="error"] {
  color: var(--red);
  font-weight: 900;
}

.complete {
  display: grid;
  gap: 16px;
  padding: 26px 20px 24px;
}

.complete[hidden] {
  display: none;
}

.complete-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 34px;
  font-weight: 1000;
  font-style: italic;
}

.complete-card,
.status-card,
.status-section,
.detail-card {
  display: grid;
  gap: 12px;
  border-radius: 8px;
  background: #fff;
}

.complete-card {
  border: 1px solid var(--line);
  padding: 14px;
}

.complete-card p,
.status-card p {
  margin: 0;
}

.complete-card p {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.complete-card strong {
  color: var(--text);
  white-space: nowrap;
}

.complete-card span {
  text-align: right;
  line-height: 1.5;
  word-break: keep-all;
}

.status-hero {
  min-height: 310px;
}

.status-hero .hero-content {
  min-height: 310px;
  padding-bottom: 62px;
}

.status-card,
.status-section,
.status-actions {
  position: relative;
  z-index: 2;
  margin: 16px 18px 0;
}

.status-card {
  margin-top: -38px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.status-card h3 {
  font-size: 24px;
}

.status-pill-row,
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.status-pill {
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 13px;
  font-weight: 1000;
}

.status-pill[data-tone="green"] {
  color: var(--green);
  background: #ecfdf3;
}

.status-pill[data-tone="orange"] {
  color: var(--orange);
  background: #fff7ed;
}

.status-pill[data-tone="red"] {
  color: var(--red);
  background: #fff1f2;
}

.status-date,
.section-title-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.status-section {
  padding: 20px;
}

.status-timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  color: var(--muted-2);
}

.timeline-dot {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  color: #98a2b3;
  background: #eef2f7;
  font-size: 13px;
  font-weight: 1000;
}

.timeline-item strong {
  color: #98a2b3;
  font-size: 15px;
}

.timeline-item p {
  margin: 4px 0 0;
  line-height: 1.5;
}

.timeline-item.active .timeline-dot,
.timeline-item.done .timeline-dot {
  color: #fff;
  background: var(--blue);
}

.timeline-item.active strong,
.timeline-item.done strong {
  color: var(--text);
}

.timeline-item.green .timeline-dot {
  background: var(--green);
}

.timeline-item.orange.active .timeline-dot {
  background: var(--orange);
}

.timeline-item.red.active .timeline-dot {
  background: var(--red);
}

.detail-card {
  border: 1px solid var(--line);
  padding: 14px;
}

.detail-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 700;
}

.status-actions {
  display: grid;
  gap: 10px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom));
}

.payment-shell .payment-card {
  display: grid;
  gap: 14px;
}

.payment-amount-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0 6px;
  border-top: 1px solid var(--line);
}

.payment-amount-row span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.payment-amount-row strong {
  color: var(--blue);
  font-size: clamp(28px, 7vw, 38px);
  line-height: 1;
  letter-spacing: 0;
}

.payment-detail-lines {
  display: grid;
  gap: 12px;
}

.payment-detail-lines p {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0;
}

.payment-detail-lines span {
  color: var(--muted);
  font-weight: 800;
}

.payment-detail-lines strong {
  text-align: right;
  color: var(--ink);
}

.button-link {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.button-link:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.status-payment-link {
  margin-top: 14px;
}

.status-detail-message {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: left !important;
  line-height: 1.55;
}

.status-detail-message:not([hidden]) {
  display: block;
}

@media (max-width: 374px) {
  .category-tabs,
  .photo-guide,
  .slot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 22px;
  }
}
