:root {
  --soi-green: #008767;
  --soi-green-dark: #006b52;
  --soi-mint: #eaf8f4;
  --soi-yellow: #fee500;
  --ink: #172026;
  --muted: #647178;
  --line: #dce7e4;
  --panel: #ffffff;
  --bg: #f3f8f6;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Arial, "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--ink);
}

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

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

.site-header {
  min-height: 68px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--soi-green);
  color: #fff;
  font-weight: 900;
}

.brand strong {
  display: block;
  color: var(--soi-green);
  font-size: 21px;
  line-height: 1;
}

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

.site-header nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header nav a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 13px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.site-header nav a:hover {
  background: var(--soi-mint);
}

.site-header nav a.active {
  color: var(--soi-green);
  background: var(--soi-mint);
}

.app-shell {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.jg-site-footer {
  padding: 28px 24px 34px;
  background: #f5faf8;
  border-top: 1px solid rgba(15, 123, 99, 0.14);
}

.jg-footer-inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(15, 123, 99, 0.18);
  border-radius: 10px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 34px rgba(18, 38, 63, 0.08);
}

.footer-brand strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-size: 17px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.footer-brand .footer-company {
  margin-top: 4px;
  color: #33514b;
  font-weight: 800;
}

.footer-action-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.footer-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.footer-action.primary {
  border-color: var(--soi-green);
  color: #fff;
  background: var(--soi-green);
}

.step-page {
  display: none;
  min-height: calc(100vh - 124px);
}

.step-page.active {
  display: grid;
  align-content: center;
}

.official-hero {
  min-height: 640px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 43, 51, 0.86), rgba(5, 43, 51, 0.58) 45%, rgba(5, 43, 51, 0.08) 75%),
    url("/assets/joingolfthai-taxi-hero.jpg") center / cover no-repeat;
  box-shadow: 0 24px 60px rgba(9, 34, 42, 0.18);
}

.hero-content {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
}

.eyebrow {
  display: block;
  margin-bottom: 10px;
  color: var(--soi-green);
  font-size: 13px;
  font-weight: 900;
}

.hero-content .eyebrow {
  color: #bdf2df;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero-content h1 {
  max-width: 740px;
  margin-bottom: 18px;
  color: #fff;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.02;
  letter-spacing: 0;
  word-break: keep-all;
}

.hero-content p {
  max-width: 610px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 20px;
  line-height: 1.6;
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-points span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.booking-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  background: var(--panel);
  box-shadow: 0 16px 36px rgba(9, 34, 42, 0.09);
}

.messenger-card {
  margin: 24px;
  align-self: center;
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.2);
}

.narrow-card {
  width: min(760px, 100%);
  margin: 0 auto;
}

.card-head {
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 22px;
}

.step-badge {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soi-mint);
  color: var(--soi-green);
  font-size: 14px;
  font-weight: 900;
}

.card-head h2 {
  margin-bottom: 6px;
  font-size: 26px;
  line-height: 1.22;
  letter-spacing: 0;
}

.card-head p,
.subsection p,
.section-title-row p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.55;
}

.messenger-actions,
.start-actions {
  display: grid;
  gap: 12px;
}

.select-button,
.start-choice,
.ride-type-card {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.select-button:hover,
.ride-type-card:hover,
.start-choice:hover {
  border-color: #9dc9bd;
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(9, 34, 42, 0.09);
}

.select-button strong,
.ride-type-card strong {
  display: block;
  margin-bottom: 5px;
  font-size: 22px;
}

.select-button span,
.ride-type-card span {
  color: var(--muted);
  line-height: 1.45;
}

.select-button.kakao,
.kakao-button {
  background: var(--soi-yellow);
  color: #2b2118;
  border-color: #ead500;
}

.secure-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.ride-type-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ride-type-card {
  min-height: 148px;
}

.ride-type-card small {
  display: block;
  margin-bottom: 10px;
  color: var(--soi-green);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(0, 135, 103, 0.15);
  border-color: var(--soi-green);
}

.wide-field {
  grid-column: 1 / -1;
}

.notice-box {
  margin-top: 16px;
  border-radius: 14px;
  padding: 13px 14px;
  background: #fff7dc;
  color: #5b4310;
  font-weight: 800;
  line-height: 1.5;
}

.divider {
  margin: 24px 0;
  border-top: 1px solid var(--line);
}

.subsection + .subsection {
  margin-top: 24px;
}

.subsection h3,
.section-title-row h3 {
  margin-bottom: 5px;
  font-size: 21px;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.vehicle-grid label {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  color: var(--ink);
  cursor: pointer;
}

.vehicle-grid input {
  position: absolute;
  inset: 12px 12px auto auto;
  width: 18px;
  height: 18px;
}

.vehicle-grid strong,
.vehicle-grid span {
  display: block;
}

.vehicle-grid strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.vehicle-grid span {
  color: var(--muted);
  font-size: 13px;
}

.vehicle-grid label:has(input:checked) {
  border-color: var(--soi-green);
  background: var(--soi-mint);
}

.vehicle-grid label.disabled-option {
  cursor: not-allowed;
  opacity: 0.48;
  background: #f4f7f6;
}

.vehicle-grid label.disabled-option em {
  display: block;
  margin-top: 8px;
  color: #9c3026;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

.vehicle-warning {
  margin-top: 12px;
  border: 1px solid #f0cbc7;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff5f4;
  color: #8f2c22;
  font-weight: 900;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0 16px;
}

.option-grid label,
.consent {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  color: var(--ink);
}

.option-grid input,
.consent input {
  width: 18px;
  min-width: 18px;
  height: 18px;
}

.consent {
  margin-top: 14px;
  align-items: flex-start;
  line-height: 1.45;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.button-row > * {
  flex: 1;
}

button,
.primary-link,
.kakao-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 0 18px;
  background: var(--soi-green);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.primary-link:hover {
  background: var(--soi-green-dark);
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.ghost-button:hover {
  background: var(--soi-mint);
}

.ghost-button.small {
  flex: none;
  min-height: 38px;
}

.addon-panel {
  margin-top: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #f8fcfb;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.stop-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.stop-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px) auto;
  gap: 10px;
  align-items: end;
}

.remove-stop {
  min-height: 44px;
  border: 1px solid #f0cbc7;
  background: #fff5f4;
  color: #9c3026;
}

#orderMessage {
  min-height: 430px;
  resize: vertical;
  line-height: 1.58;
}

.send-message {
  min-height: 190px;
  resize: vertical;
  line-height: 1.6;
  font-weight: 800;
}

.send-status {
  margin-top: 12px;
  border-radius: 12px;
  padding: 12px;
  background: var(--soi-mint);
  color: var(--soi-green);
  font-weight: 900;
  line-height: 1.45;
}

.receipt-body,
.jg-admin-page,
.jg-login-page {
  background: linear-gradient(180deg, #edf8f5 0%, #ffffff 42%, #f3f8f6 100%);
}

.receipt-header,
.jg-admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-note {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.receipt-shell,
.jg-admin-shell,
.jg-login-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.receipt-voucher,
.jg-admin-panel,
.jg-login-card,
.admin-inquiry-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(9, 34, 42, 0.08);
}

.receipt-voucher {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 30px;
  box-shadow: 0 22px 52px rgba(9, 34, 42, 0.12);
}

.receipt-voucher h1,
.jg-admin-heading h1,
.jg-login-brand h1 {
  margin: 8px 0 10px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: 0;
}

.receipt-lead,
.jg-admin-heading p,
.jg-login-brand p {
  color: var(--muted);
  line-height: 1.65;
}

.receipt-code-box {
  margin: 24px 0;
  border-radius: 14px;
  padding: 18px;
  background: var(--soi-green);
  color: #fff;
}

.receipt-code-box span,
.receipt-code-box strong {
  display: block;
}

.receipt-code-box span {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 900;
  opacity: 0.8;
}

.receipt-code-box strong {
  font-size: clamp(22px, 4vw, 34px);
  word-break: break-word;
}

.receipt-summary,
.admin-inquiry-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.receipt-summary div,
.admin-inquiry-card dl div {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfefd;
}

.receipt-summary dt,
.admin-inquiry-card dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.receipt-summary dd,
.admin-inquiry-card dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.45;
}

.receipt-status {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  border-radius: 14px;
  padding: 15px;
  background: var(--soi-mint);
}

.status-dot {
  width: 12px;
  height: 12px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--soi-green);
  box-shadow: 0 0 0 5px rgba(0, 135, 103, 0.13);
}

.receipt-status p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.receipt-actions > * {
  flex: 1;
}

.jg-admin-header {
  min-height: 68px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.jg-admin-header nav {
  display: flex;
  gap: 10px;
  align-items: center;
}

.jg-admin-panel {
  margin-top: 26px;
  padding: 22px;
}

.jg-admin-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.jg-admin-panel-head h2,
.jg-admin-panel-head p {
  margin: 0;
}

.jg-admin-panel-head p {
  color: var(--muted);
}

.jg-reservation-list {
  display: grid;
  gap: 14px;
}

.admin-inquiry-card {
  padding: 18px;
}

.inquiry-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.inquiry-card-top h3 {
  margin: 7px 0 0;
  font-size: 24px;
}

.status-badge {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--soi-mint);
  color: var(--soi-green);
  font-size: 12px;
  font-weight: 900;
}

.admin-inquiry-card .wide {
  grid-column: 1 / -1;
}

.admin-inquiry-card pre {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font: inherit;
  line-height: 1.55;
}

.inquiry-actions {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(220px, 1fr) minmax(220px, 1fr) auto;
  gap: 10px;
  margin-top: 14px;
}

.status-select,
.voucher-url-input,
.admin-note-input {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font: inherit;
}

.voucher-link-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  border: 1px solid #bfe4d9;
  border-radius: 14px;
  padding: 15px;
  background: #f4fcfa;
}

.voucher-link-box span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.voucher-link-box a {
  color: var(--soi-green);
  font-size: 18px;
  font-weight: 900;
}

.lookup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 20px;
}

.my-booking-results {
  margin-top: 18px;
}

.disabled-link {
  opacity: 0.62;
  cursor: default;
}

.jg-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 24px;
  align-items: center;
}

.jg-login-card {
  padding: 24px;
}

.jg-login-card h2 {
  margin: 0 0 18px;
}

.jg-login-card form {
  display: grid;
  gap: 14px;
}

.error-message {
  margin: 0;
  color: #9c3026;
  font-weight: 900;
}

@media (max-width: 980px) {
  .official-hero {
    grid-template-columns: 1fr;
  }

  .messenger-card {
    margin-top: 0;
  }

  .ride-type-grid,
  .vehicle-grid,
  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .jg-login-shell {
    grid-template-columns: 1fr;
  }

  .inquiry-actions {
    grid-template-columns: 1fr;
  }

  .lookup-form {
    grid-template-columns: 1fr;
  }

  .jg-footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-action-grid {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header nav {
    width: 100%;
    overflow-x: auto;
  }

  .site-header nav a {
    flex: 0 0 auto;
  }

  .app-shell {
    width: min(100% - 20px, 1160px);
    padding-top: 10px;
  }

  .official-hero {
    min-height: auto;
  }

  .hero-content {
    min-height: 360px;
    padding: 28px;
  }

  .hero-content h1 {
    font-size: 34px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .messenger-card {
    margin: 0;
    border-radius: 0;
  }

  .booking-card {
    padding: 18px;
  }

  .card-head {
    grid-template-columns: 1fr;
  }

  .ride-type-grid,
  .form-grid,
  .vehicle-grid,
  .option-grid,
  .stop-row {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  .receipt-summary,
  .admin-inquiry-card dl {
    grid-template-columns: 1fr;
  }

  .jg-admin-header {
    padding: 12px 14px;
    align-items: flex-start;
    flex-direction: column;
  }

  .jg-site-footer {
    padding: 18px 14px 24px;
  }

  .jg-footer-inner {
    padding: 13px;
  }

  .footer-action-grid {
    display: grid;
    grid-template-columns: 1fr;
  }
}
