:root {
  --genz-navy: #0A1650;
  --genz-blue: #1432A5;
  --genz-light-blue: #EFF6FF;
  --genz-border-blue: #BFDBFE;
  --genz-whatsapp: #25D366;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --white: #FFFFFF;
  --red: #EF4444;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius-xl: 18px;
}

@font-face {
  font-family: "SweiSansCJKtc";
  src: url("fonts/SweiSansCJKtc-Thin.ttf") format("truetype");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SweiSansCJKtc";
  src: url("fonts/SweiSansCJKtc-DemiLight.ttf") format("truetype");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SweiSansCJKtc";
  src: url("fonts/SweiSansCJKtc-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SweiSansCJKtc";
  src: url("fonts/SweiSansCJKtc-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SweiSansCJKtc";
  src: url("fonts/SweiSansCJKtc-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SweiSansCJKtc";
  src: url("fonts/SweiSansCJKtc-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SweiSansCJKtc";
  src: url("fonts/SweiSansCJKtc-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "SweiSansCJKtc", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--slate-50);
  color: var(--slate-900);
  padding-top: 82px;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 90px;
  z-index: 9999;
  background-color: var(--genz-navy);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08);
}

.site-header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-logo {
  display: block;
  width: auto;
  height: 50px;
  max-width: 180px;
  object-fit: contain;
}

.genz-booking-page {
  min-height: 100vh;
  padding: 36px 16px;
  background:
    radial-gradient(circle at top left, rgba(20, 50, 165, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 42%, #f1f5f9 100%);
}

.genz-booking-container {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

.genz-header {
  text-align: center;
  margin-bottom: 30px;
}

.genz-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--genz-navy);
  color: #ffffff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 16px;
  box-shadow: 0 10px 28px rgba(10, 22, 80, 0.22);
}

.booking-service-heading {
  text-align: center;
  margin: 20px 0 50px;
}

.service-zh,
.service-en {
  display: block;
  color: #0A1650;
}

.service-zh {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 600;
  letter-spacing: 2px;
}

.service-en {
  padding: 20px 10px;
  font-size: clamp(12px, 2vw, 16px);
  font-weight: 400;
  letter-spacing: 3px;
  line-height: 1.35;
  text-transform: uppercase;
}

.genz-header h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 44px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -0.045em;
  color: #020617;
}

.genz-header p {
  margin: 12px 0 0;
  color: var(--slate-500);
  font-size: 16px;
  line-height: 1.65;
}

.genz-progress {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin: 0 auto 24px;
  padding: 0 8px;
}

.genz-progress::before {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  top: 20px;
  height: 2px;
  background: var(--slate-200);
  z-index: 0;
}

.genz-step {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.genz-step-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  background: var(--slate-100);
  color: var(--slate-400);
  transition: 0.22s ease;
  margin-bottom: 5px;
}

.genz-step.active .genz-step-circle,
.genz-step.done .genz-step-circle {
  background: var(--genz-blue);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(20, 50, 165, 0.15);
}

.genz-step-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-400);
  margin-top: 9px;
  line-height: 1.6;
}

.genz-step.active .genz-step-label,
.genz-step.done .genz-step-label {
  color: var(--genz-blue);
}

.genz-card {
  background: var(--white);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.genz-panel {
  display: none;
  padding: 28px;
}

.genz-panel.active {
  display: block;
  animation: fadeUp 0.24s ease both;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.genz-panel-title {
  margin: 0;
  padding-bottom: 10px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--slate-900);
}

.genz-panel-desc-zh {
  margin: 8px 0 5px;
  font-size: 16px;
  color: var(--slate-500);
  line-height: 1.8;
}

.genz-panel-desc-en {
  margin: 8px 0 22px;
  font-size: 14px;
  color: var(--slate-500);
  line-height: 1.8;
}

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

.genz-option-card,
.genz-car-card {
  width: 100%;
  appearance: none;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  color: var(--slate-800);
  border-radius: var(--radius-xl);
  padding: 18px;
  text-align: left;
  cursor: pointer;
  transition: 0.18s ease;
}

.genz-option-card:hover,
.genz-car-card:hover {
  border-color: #93C5FD;
  transform: translateY(-1px);
}

.genz-option-card.selected,
.genz-car-card.selected {
  border-color: var(--genz-blue);
  background: var(--genz-light-blue);
  box-shadow: 0 12px 30px rgba(20, 50, 165, 0.1);
}

.genz-option-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  font-size: 18px;
}

.genz-option-card.selected .genz-option-icon,
.genz-car-card.selected .genz-option-icon {
  background: var(--genz-blue);
  color: #ffffff;
}

.genz-option-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 5px;
}

.genz-option-subtitle {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
  line-height: 1.45;
}

.genz-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.genz-field {
  display: block;
}

.genz-field.full {
  grid-column: 1 / -1;
}

.genz-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-700);
  margin-top: 5px;
  margin-bottom: 10px;
}

.genz-required {
  color: var(--red);
}

.genz-input,
.genz-select,
.genz-textarea {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: 14px;
  background: #ffffff;
  color: var(--slate-900);
  padding: 12px 14px;
  font-size: 15px;
  outline: none;
  transition: 0.18s ease;
  min-height: 60px;
}

.genz-input:focus,
.genz-select:focus,
.genz-textarea:focus {
  border-color: var(--genz-blue);
  box-shadow: 0 0 0 4px rgba(20, 50, 165, 0.12);
}

.genz-input::placeholder {
  color: var(--slate-400);
  opacity: 1;
}

.genz-select:invalid {
  color: var(--slate-400);
}

.genz-select option {
  color: var(--slate-800);
}

.genz-select optgroup {
  color: var(--slate-700);
}

.genz-textarea {
  min-height: 96px;
  resize: vertical;
}

.genz-car-card {
  display: block;
  margin-bottom: 14px;
}

.genz-car-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.genz-car-name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 18px;
  font-weight: 950;
  color: var(--slate-900);
}

.genz-car-desc {
  margin: 0;
  color: var(--slate-500);
  font-size: 14px;
  line-height: 1.55;
}

.genz-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}

.genz-tag {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--slate-200);
  background: #ffffff;
  color: var(--slate-600);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 650;
}

.genz-price-box {
  text-align: right;
  min-width: 120px;
}

.genz-price-label {
  display: block;
  font-size: 12px;
  color: var(--slate-400);
  font-weight: 700;
  margin-bottom: 4px;
}

.genz-price-value {
  display: block;
  font-size: 26px;
  font-weight: 950;
  color: var(--genz-blue);
  letter-spacing: -0.04em;
}

.genz-summary {
  background: var(--genz-light-blue);
  border: 1px solid var(--genz-border-blue);
  border-radius: var(--radius-xl);
  padding: 18px;
  margin-bottom: 20px;
}

.genz-summary-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 900;
  color: #1E40AF;
  margin-bottom: 12px;
}

.genz-summary-grid {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 7px 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--slate-700);
}

.genz-summary-grid .label {
  color: var(--slate-500);
}

.genz-summary-grid .value {
  font-weight: 750;
}

.genz-summary-grid .price {
  font-weight: 950;
  color: var(--genz-blue);
}

.genz-checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--slate-200);
  background: var(--slate-50);
  border-radius: 14px;
  padding: 12px 14px;
  cursor: pointer;
  user-select: none;
}

.genz-checkbox-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--genz-whatsapp);
}

.genz-checkbox-row span {
  font-size: 14px;
  color: var(--slate-700);
  font-weight: 700;
}

.genz-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.genz-btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 14px 18px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: 0.18s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.genz-btn-primary {
  background: var(--genz-blue);
  color: #ffffff;
  flex: 1;
  box-shadow: 0 14px 30px rgba(20, 50, 165, 0.22);
}

.genz-btn-primary:hover {
  background: var(--genz-navy);
  transform: translateY(-1px);
}

.genz-btn-secondary {
  background: #ffffff;
  color: var(--slate-600);
  border: 1px solid var(--slate-300);
  min-width: 120px;
}

.genz-btn-secondary:hover {
  background: var(--slate-50);
}

.genz-btn-whatsapp {
  background: var(--genz-whatsapp);
  color: #ffffff;
  flex: 1;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.24);
}

.genz-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.genz-notice {
  border-left: 4px solid var(--genz-blue);
  background: #F8FAFC;
  color: var(--slate-600);
  border-radius: 14px;
  padding: 14px 16px;
  line-height: 1.6;
  font-size: 14px;
  margin-top: 20px;
}

.genz-success {
  display: none;
  padding: 34px 28px;
  text-align: center;
}

.genz-success.active {
  display: block;
  animation: fadeUp 0.24s ease both;
}

.genz-success-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.12);
  color: var(--genz-whatsapp);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 34px;
  font-weight: 900;
}

.genz-success h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 950;
  letter-spacing: -0.04em;
}

.genz-success p {
  color: var(--slate-500);
  line-height: 1.65;
  margin: 12px auto 0;
  max-width: 560px;
}

.genz-footer {
  text-align: center;
  color: var(--slate-400);
  font-size: 12px;
  margin-top: 26px;
}

.genz-error {
  display: none;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-top: 20px;
  margin-bottom: 20px;
}

.genz-error.active {
  display: block;
}

@media (max-width: 720px) {
  .genz-booking-page {
    padding: 24px 12px;
  }

  .genz-panel {
    padding: 22px 16px;
  }

  .genz-grid-2,
  .genz-form-grid {
    grid-template-columns: 1fr;
  }

  .genz-progress::before {
    display: none;
  }

  .genz-step-label {
    font-size: 11px;
  }

  .genz-car-inner {
    flex-direction: column;
  }

  .genz-price-box {
    text-align: left;
  }

  .genz-summary-grid {
    grid-template-columns: 100px 1fr;
  }

  .genz-actions {
    flex-direction: column;
  }

  .genz-btn-secondary {
    width: 100%;
  }
}

/* ================================
   GENZ TAXI Location UI
================================ */

.genz-popular-box {
  grid-column: 1 / -1;
  padding: 24px 28px;
  border: 1px solid var(--genz-border-blue);
  border-radius: 16px;
  background-color: var(--genz-light-blue);
  margin-bottom: 8px;
}

.genz-popular-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.genz-popular-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--genz-blue);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
}

.genz-popular-icon {
  font-size: 22px;
  line-height: 1;
}

.genz-popular-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--genz-border-blue);
  border-radius: 14px;
  background-color: var(--white);
}

.genz-toggle-btn {
  border: 0;
  border-radius: 10px;
  padding: 10px 18px;
  background-color: transparent;
  color: var(--genz-blue);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.genz-toggle-btn:hover {
  background-color: var(--genz-light-blue);
}

.genz-toggle-btn.active {
  background-color: var(--genz-blue);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(20, 50, 165, 0.18);
}

.genz-popular-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.genz-chip {
  border: 1px solid var(--genz-border-blue);
  border-radius: 999px;
  padding: 10px 18px;
  background-color: var(--white);
  color: var(--genz-blue);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
  cursor: pointer;
  transition: all 0.2s ease;
}

.genz-chip:hover {
  border-color: var(--genz-blue);
  background-color: rgba(20, 50, 165, 0.08);
}

.genz-chip.active {
  border-color: var(--genz-blue);
  background-color: var(--genz-blue);
  color: var(--white);
  box-shadow: 0 8px 18px rgba(20, 50, 165, 0.16);
}

.genz-swap-location-btn {
  grid-column: 1 / -1;
  justify-self: end;
  width: 44px;
  height: 44px;
  margin: -4px 4px -4px 0;
  border-radius: 999px;
  border: 1px solid var(--slate-200);
  background-color: var(--slate-100);
  color: var(--slate-600);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s ease;
}

.genz-swap-location-btn:hover {
  background-color: var(--genz-light-blue);
  border-color: var(--genz-border-blue);
  color: var(--genz-blue);
}

.genz-swap-location-btn:active {
  transform: scale(0.95);
}

/* Select placeholder 灰色 */
.genz-select:invalid {
  color: var(--slate-400);
}

.genz-select option {
  color: var(--slate-800);
}

.genz-select optgroup {
  color: var(--slate-700);
}

/* 隱藏欄位 */
[hidden] {
  display: none !important;
}

/* 手機版 */
@media (max-width: 768px) {
  .genz-popular-box {
    padding: 20px 18px;
  }

  .genz-popular-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .genz-popular-title {
    font-size: 19px;
  }

  .genz-popular-toggle {
    width: 100%;
  }

  .genz-toggle-btn {
    flex: 1;
    padding: 10px 12px;
    font-size: 14px;
  }

  .genz-chip {
    width: 100%;
    text-align: left;
    padding: 11px 16px;
    font-size: 14px;
  }

  .genz-swap-location-btn {
    width: 42px;
    height: 42px;
    font-size: 21px;
  }
}
