/*
  全國行租車｜深藍金商務版配色
  主色：深藍 #1F3A5F
  輔色：金色 #C8A45D
  背景：柔和米白 #F6F3EE
*/
:root {
  --bg: #F6F3EE;
  --panel: #FFFFFF;
  --panel-soft: #F2EDE5;
  --text: #2F3338;
  --text-soft: #77706A;
  --line: #DDD5CA;
  --line-strong: #C9BDAE;
  --brand-main: #1F3A5F;
  --brand-deep: #132A46;
  --brand-gold: #C8A45D;
  --danger: #B85C5C;
  --danger-soft: #FFF1F1;
  --shadow: 0 12px 34px rgba(19, 42, 70, 0.10);
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
}

a {
  color: var(--danger);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.hidden {
  display: none !important;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: linear-gradient(180deg, var(--brand-main) 0%, var(--brand-deep) 100%);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.site-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px;
  text-align: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.layout {
  max-width: 1320px;
  margin: 28px auto 80px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
}

.content {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 110px;
}

.notice-banner {
  background: linear-gradient(180deg, #fffefc 0%, #f5fbf5 100%);
  border: 1px solid #d8e8d8;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 26px;
  margin-bottom: 24px;
}

.notice-banner h1 {
  margin: 0 0 12px;
  color: var(--brand-gold);
  font-size: 22px;
  font-weight: 800;
}

.notice-banner p {
  margin: 8px 0;
  font-size: 18px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 24px 72px;
  margin-bottom: 24px;
  position: relative;
  overflow: visible !important;
}

.panel--dark {
  background: linear-gradient(180deg, var(--brand-main) 0%, var(--brand-deep) 100%);
  border-color: transparent;
  color: #fff;
  padding-bottom: 28px;
}

.panel__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.panel__title {
  margin: 0 0 18px;
  font-size: 18px;
  font-weight: 800;
  color: var(--brand-main);
}

.panel__title--light {
  color: #fff;
}

.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

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

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.field {
  position: relative;
  overflow: visible !important;
}

.field label {
  display: block;
  margin-bottom: 8px;
  font-size: 16px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #a09486;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-main);
  box-shadow: 0 0 0 4px rgba(128, 185, 128, 0.18);
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field-tip {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-soft);
}

.field-tip--red {
  color: var(--danger);
  font-weight: 700;
}

.time-group {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.time-group span {
  font-weight: 800;
  font-size: 20px;
  color: var(--brand-main);
}

.checkbox-inline,
.radio-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.checkbox-inline input,
.radio-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--brand-main);
}

.radio-row {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.addon-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.is-disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.summary-row:last-of-type {
  border-bottom: none;
}

.summary-row strong {
  text-align: right;
  max-width: 60%;
  word-break: break-word;
}

.summary-row--total {
  margin-top: 6px;
  padding-top: 18px;
  font-size: 20px;
  font-weight: 800;
}

.estimate-note {
  margin-top: 14px;
  font-size: 13px;
  opacity: 0.9;
}

.terms-box {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--panel-soft);
}

.terms-box summary {
  padding: 16px 18px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  list-style: none;
}

.terms-box summary::-webkit-details-marker {
  display: none;
}

.terms-box__content {
  padding: 0 18px 18px;
  color: var(--text-soft);
  font-size: 15px;
}

.terms-box__content strong {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--brand-main);
  font-size: 16px;
}

.terms-scroll {
  max-height: 260px;
  overflow-y: auto;
  padding-right: 8px;
  border-top: 1px solid #e7ddd1;
}

.terms-scroll::-webkit-scrollbar {
  width: 10px;
}

.terms-scroll::-webkit-scrollbar-thumb {
  background: #c8beb1;
  border-radius: 999px;
}

.terms-box + .terms-box {
  margin-top: 14px;
}

.agree-box {
  margin-top: 6px;
}

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

.agree-box--disabled input {
  pointer-events: none;
}

.terms-read-status {
  margin: 10px 0 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #FBF4E5;
  color: #8A6A2A;
  font-size: 14px;
  font-weight: 700;
}

.terms-read-status--done {
  background: #EEF3F8;
  color: var(--brand-main);
}

.submit-button {
  width: 100%;
  border: none;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--brand-main) 0%, var(--brand-deep) 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  padding: 18px 20px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(19, 42, 70, 0.24);
}

.warning-box {
  margin-top: 18px;
  background: var(--danger-soft);
  border: 1px solid #efc7c7;
  border-radius: 18px;
  color: var(--danger);
  padding: 18px 18px 18px 22px;
  font-size: 15px;
}

.warning-box ul {
  margin: 10px 0 0 0;
  padding-left: 22px;
}

.sidebar-panel {
  background: #fffdf9;
}

.live-summary {
  white-space: pre-line;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.9;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(35, 28, 22, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-card {
  width: min(100%, 560px);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
  padding: 34px 30px;
  text-align: center;
}

.modal-card h2 {
  margin: 0 0 14px;
  font-size: 36px;
  font-weight: 900;
  color: #4a4139;
}

.modal-card p {
  margin: 10px 0;
  font-size: 18px;
  color: #5e554d;
  line-height: 1.8;
}

.modal-card--error {
  text-align: left;
}

.modal-card--error h2 {
  text-align: center;
}

.modal-error-text {
  text-align: center;
  margin-bottom: 10px;
}

.modal-error-list {
  margin: 18px 0 0;
  padding-left: 24px;
  color: var(--danger);
  font-size: 16px;
  line-height: 1.9;
}

.modal-error-list li {
  margin-bottom: 6px;
}

.modal-icon {
  width: 94px;
  height: 94px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 54px;
  font-weight: 800;
}

.modal-icon--blue {
  color: var(--brand-main);
  border: 4px solid var(--brand-main);
}

.modal-icon--gold {
  color: var(--brand-gold);
  border: 4px solid var(--brand-gold);
}

.modal-subtitle {
  font-weight: 800;
  color: var(--brand-gold) !important;
}

.modal-emphasis {
  font-weight: 800;
  color: var(--brand-main) !important;
}

.modal-phone-note {
  font-size: 14px;
  color: var(--text-soft);
  margin-top: 10px;
}

.phone-chip {
  display: inline-block;
  margin-top: 12px;
  padding: 14px 28px;
  border-radius: 999px;
  border: 2px solid var(--brand-gold);
  color: var(--brand-main);
  background: #FBF4E5;
  font-size: 28px;
  font-weight: 900;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}

.modal-actions--stack {
  flex-direction: column;
}

.btn {
  border: none;
  border-radius: 14px;
  padding: 14px 24px;
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
}

.btn--primary {
  background: linear-gradient(180deg, var(--brand-main) 0%, var(--brand-deep) 100%);
  color: #fff;
}

.btn--accent {
  background: var(--brand-gold);
  color: #132A46;
}

.address-field {
  position: relative;
  z-index: 1;
  margin-bottom: 220px;
  padding-bottom: 12px;
  width: 100%;
  max-width: 100%;
  overflow: visible !important;
}

.autocomplete-host {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 56px;
  z-index: 1;
  overflow: visible !important;
}

.google-place-widget,
gmp-place-autocomplete,
gmp-basic-place-autocomplete {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 56px;
  overflow: visible !important;
}

.google-place-widget::part(input),
gmp-place-autocomplete::part(input),
gmp-basic-place-autocomplete::part(input) {
  width: 100% !important;
  max-width: 100% !important;
  min-height: 54px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  padding: 14px 16px;
  box-sizing: border-box;
}

.google-place-widget::part(input):focus,
gmp-place-autocomplete::part(input):focus,
gmp-basic-place-autocomplete::part(input):focus {
  border-color: var(--brand-main);
  box-shadow: 0 0 0 4px rgba(128, 185, 128, 0.18);
  outline: none;
}

.google-place-widget::part(predictions),
gmp-place-autocomplete::part(predictions),
gmp-basic-place-autocomplete::part(predictions) {
  z-index: 2000 !important;
}

.selected-address {
  margin-top: 10px;
  font-size: 13px;
  color: var(--text-soft);
  word-break: break-word;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .site-header__inner {
    font-size: 18px;
    padding: 22px 16px;
  }

  .layout {
    padding: 0 14px;
    margin-top: 18px;
  }

  .panel,
  .notice-banner {
    padding: 22px 18px 72px;
  }

  .panel--dark {
    padding-bottom: 22px;
  }

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

  .modal-card {
    padding: 26px 20px;
  }

  .modal-card h2 {
    font-size: 28px;
  }

  .modal-card p {
    font-size: 16px;
  }

  .phone-chip {
    font-size: 24px;
  }

  .summary-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-row strong {
    max-width: 100%;
    text-align: left;
  }

  .address-field {
    margin-bottom: 260px;
  }

  .terms-scroll {
    max-height: 220px;
  }
}

/* Complete version additions */
.modal-card--success {
  text-align: center;
}

.success-message-text {
  width: 100%;
  min-height: 220px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: #fffdf9;
  color: var(--text);
  font-size: 15px;
  line-height: 1.7;
  resize: vertical;
}

.btn--ghost {
  background: #f1ede6;
  color: var(--text);
}

.manual-address-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  padding: 14px 16px;
  min-height: 54px;
  outline: none;
}

.manual-address-input:focus {
  border-color: var(--brand-main);
  box-shadow: 0 0 0 4px rgba(128, 185, 128, 0.18);
}


/* 深藍金商務版微調 */
.notice-banner {
  border-color: rgba(200, 164, 93, 0.35);
}

.panel__title {
  letter-spacing: 0.02em;
}

.summary-row--total strong {
  color: #FFF0C7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  box-shadow: 0 0 0 4px rgba(31, 58, 95, 0.14);
}

.checkbox-inline input,
.radio-row input {
  accent-color: var(--brand-main);
}

/* 2026-05 手機修正版：保留 Google 地址與原生下拉選單 */
.address-field {
  margin-bottom: 18px !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}

.autocomplete-host {
  min-height: auto !important;
}

.google-address-input,
.manual-address-input {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 16px;
  padding: 14px 16px;
  min-height: 54px;
  outline: none;
  box-sizing: border-box;
}

.google-address-input:focus,
.manual-address-input:focus {
  border-color: var(--brand-main);
  box-shadow: 0 0 0 4px rgba(31, 58, 95, 0.14);
}

.pac-container {
  z-index: 100000 !important;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 34px rgba(19, 42, 70, 0.18);
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.pac-item {
  padding: 10px 12px;
  font-size: 15px;
  line-height: 1.5;
}

.pac-item-query {
  font-size: 15px;
}

.field select {
  -webkit-appearance: menulist !important;
  appearance: auto !important;
  background-color: #fff !important;
  color: var(--text) !important;
  position: relative;
  z-index: 2;
}

.field select option {
  background: #fff;
  color: var(--text);
}

@media (max-width: 768px) {
  .address-field {
    margin-bottom: 18px !important;
  }

  .field select,
  .field input,
  .field textarea,
  .google-address-input {
    font-size: 16px !important;
    min-height: 54px;
  }
}

/* LINE 身份驗證區塊 */
.line-identity-card {
  margin-top: 18px;
  border: 1px solid rgba(31, 58, 95, 0.18);
  border-radius: 18px;
  background: #f7f9fb;
  padding: 16px;
}

.line-identity-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--brand-main);
  margin-bottom: 10px;
}

.line-identity-card__body {
  white-space: pre-line;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.7;
}

.line-identity-card__actions {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.line-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.line-badge--pending {
  background: #f3eee4;
  color: #8c6a28;
}

.line-badge--warning {
  background: #fff7e8;
  color: #9a6a1a;
}

.line-badge--ok {
  background: #eaf5ed;
  color: #28703a;
}

.line-badge--error {
  background: #fff1f1;
  color: #b84f4f;
}

.btn--small {
  padding: 10px 14px;
  font-size: 14px;
  border-radius: 12px;
}

.btn--ghost {
  background: #f1f1f1;
  color: var(--text);
}

/* 保留原生下拉選單，避免改成按鈕式；加強 Android/iPhone 可點擊性 */
.field select,
.time-group select {
  appearance: auto;
  -webkit-appearance: menulist;
  min-height: 52px;
  touch-action: manipulation;
}

.field input,
.field select,
.field textarea,
.google-address-input {
  touch-action: manipulation;
}

/* Google Places 建議清單強制白底，避免 LINE 內建瀏覽器或深色模式變黑 */
.pac-container,
.pac-container * {
  background-color: #ffffff !important;
  color: #2f3338 !important;
}

.pac-item:hover,
.pac-item-selected {
  background-color: #f2ede5 !important;
}

@media (max-width: 768px) {
  .line-identity-card__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .line-identity-card__actions .btn {
    width: 100%;
  }
}


/* Google Places 自訂建議清單：保留 Google 地址功能，但避開 LINE 內建瀏覽器的 pac-container 顯示錯亂 */
.autocomplete-host {
  position: relative !important;
  overflow: visible !important;
}

.places-predictions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 10050;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(19, 42, 70, 0.18);
  max-height: 280px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.places-prediction-item {
  width: 100%;
  display: block;
  border: 0;
  border-bottom: 1px solid #eee7dd;
  background: #fff;
  color: var(--text);
  text-align: left;
  padding: 12px 14px;
  font-size: 15px;
  line-height: 1.45;
  cursor: pointer;
}

.places-prediction-item:last-child {
  border-bottom: 0;
}

.places-prediction-item:active,
.places-prediction-item:hover {
  background: #f5f1ea;
}

.places-prediction-main,
.places-prediction-sub {
  display: block;
}

.places-prediction-main {
  font-weight: 800;
  color: var(--brand-main);
}

.places-prediction-sub {
  margin-top: 3px;
  font-size: 13px;
  color: var(--text-soft);
}

.places-prediction-empty {
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text-soft);
  background: #fff;
}

/* 不再使用 Google 原生 pac-container UI，避免手機 LINE 內建瀏覽器出現灰色驚嘆號圖示 */
.pac-container {
  display: none !important;
}

@media (max-width: 768px) {
  .places-predictions {
    max-height: 240px;
    font-size: 15px;
  }
}


/* 2026-05 mobile/privacy refinement */
.line-identity-card--private .line-identity-card__body {
  word-break: break-word;
}

.line-identity-card--private .line-identity-card__actions.hidden {
  display: none !important;
}

.places-predictions {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 10050;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(19, 42, 70, 0.18);
  overflow: hidden;
}

.places-prediction-item {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #eee5d8;
  background: #fff;
  text-align: left;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  cursor: pointer;
}

.places-prediction-item:last-child {
  border-bottom: 0;
}

.places-prediction-main {
  display: block;
  font-weight: 800;
  color: var(--text);
}

.places-prediction-sub {
  display: block;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 13px;
}

.places-prediction-empty {
  padding: 14px 16px;
  color: var(--text-soft);
  font-size: 14px;
  background: #fff;
}

.address-field {
  overflow: visible !important;
}

.autocomplete-host {
  overflow: visible !important;
}

.google-address-input {
  appearance: none;
  -webkit-appearance: none;
}

/* 2026-05-26 地址建議清單層級修正
   讓 Google 地址建議清單佔版面，不覆蓋到下一個欄位或躲在後面。 */
.autocomplete-host {
  position: relative !important;
  overflow: visible !important;
}

.autocomplete-host .places-predictions {
  position: relative !important;
  left: auto !important;
  right: auto !important;
  top: auto !important;
  z-index: 20 !important;
  display: block;
  width: 100%;
  margin: 8px 0 10px;
  background: #ffffff !important;
  border: 1px solid var(--line-strong) !important;
  border-radius: 16px !important;
  box-shadow: 0 12px 28px rgba(19, 42, 70, 0.14) !important;
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.autocomplete-host .places-predictions.hidden {
  display: none !important;
}

.autocomplete-host .places-prediction-item {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 64px;
  display: block;
  padding: 14px 16px !important;
  border: 0;
  border-bottom: 1px solid #eee5d8;
  background: #ffffff !important;
  color: var(--text) !important;
  text-align: left;
  line-height: 1.45;
}

.autocomplete-host .places-prediction-main {
  display: block;
  font-size: 16px;
  font-weight: 800;
  color: var(--text) !important;
  word-break: break-word;
}

.autocomplete-host .places-prediction-sub {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--text-soft) !important;
  word-break: break-word;
}

.autocomplete-host .places-prediction-empty {
  padding: 14px 16px !important;
  background: #ffffff !important;
  color: var(--text-soft) !important;
}

.address-field {
  overflow: visible !important;
  margin-bottom: 18px !important;
}

.selected-address {
  position: relative;
  z-index: 1;
  clear: both;
}

@media (max-width: 768px) {
  .autocomplete-host .places-predictions {
    max-height: 230px;
  }

  .autocomplete-host .places-prediction-item {
    min-height: 62px;
    padding: 13px 14px !important;
  }
}

.google-address-input.is-airport-autofill {
  background: #f4f7fb !important;
  color: #26384f;
  font-weight: 800;
  cursor: default;
}

.google-address-input.is-airport-autofill:focus {
  border-color: var(--brand-main);
  box-shadow: 0 0 0 4px rgba(31, 58, 95, 0.12);
}


/* 提示可展開閱讀 */
.terms-box summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.terms-box summary::after {
  content: "⌄";
  flex: 0 0 auto;
  font-size: 20px;
  line-height: 1;
  color: var(--brand-main);
  transition: transform 0.2s ease;
}

.terms-box[open] summary::after {
  transform: rotate(180deg);
}

#lineIdentityCard.hidden {
  display: none !important;
}


/* 快速報價流程 */
.quote-flow-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-soft);
  text-align: center;
}

.quote-flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 18px;
  font-weight: 900;
  color: #9a958f;
}

.quote-flow-step {
  color: #a7a19b;
}

.quote-flow-step--active {
  color: var(--brand-main);
}

.quote-flow-arrow {
  color: #c5bdb4;
}

.quote-flow-subtitle {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
}

.quote-actions-panel {
  border: 1px solid rgba(31, 58, 95, 0.18);
  background: #fbfaf7;
}

.quote-actions-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--brand-main);
  margin-bottom: 8px;
}

.quote-actions-text {
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 16px;
}

.quote-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.quote-route-reminder {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(214, 184, 102, 0.12);
  color: #fff5c8;
  line-height: 1.7;
  font-size: 14px;
  font-weight: 700;
}

.booking-details.hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .quote-actions {
    grid-template-columns: 1.3fr 0.8fr;
  }
}

@media (max-width: 768px) {
  .quote-flow-steps {
    font-size: 15px;
  }

  .quote-route-reminder {
    font-size: 13px;
  }
}


.native-select-hidden {
  display: none !important;
}

.car-choice-list {
  display: grid;
  gap: 14px;
  margin-top: 10px;
}

.car-choice-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 18px;
  border: 2px solid #ddd7d0;
  border-radius: 18px;
  background: #fff;
  cursor: pointer;
  transition: all .2s ease;
}

.car-choice-card:hover {
  border-color: rgba(31, 58, 95, 0.4);
}

.car-choice-card.is-selected {
  border-color: #6f4b7d;
  box-shadow: 0 0 0 3px rgba(111, 75, 125, 0.08);
  background: #fffdfd;
}

.car-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.car-choice-card__control {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid #a6a1aa;
  flex: 0 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.car-choice-card.is-selected .car-choice-card__control {
  border-color: #6f4b7d;
}

.car-choice-card.is-selected .car-choice-card__control::after {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #6f4b7d;
}

.car-choice-card__label {
  font-size: 16px;
  line-height: 1.5;
  font-weight: 800;
  color: var(--text-main);
}

.car-choice-empty {
  border: 1px dashed #c9b9b9;
  border-radius: 16px;
  padding: 16px;
  color: #9a5959;
  background: #fff7f7;
  font-weight: 700;
}


.car-capacity-warning {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #fff5e7;
  color: #9a5a19;
  border: 1px solid #f0d1a1;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.6;
}


/* 保留原本版本，只壓縮快速報價區高度 */
#bookingForm .quote-step-panel {
  padding-top: 18px;
  padding-bottom: 18px;
}

#bookingForm .quote-step-panel .field {
  margin-bottom: 12px;
}

#bookingForm .quote-step-panel .grid {
  gap: 12px;
}

#bookingForm .quote-step-panel .field-tip {
  margin-top: 4px;
  font-size: 12px;
}

#bookingForm .quote-step-panel .time-group {
  gap: 8px;
}

#bookingForm .quote-step-panel input,
#bookingForm .quote-step-panel select {
  min-height: 44px;
}

#bookingForm .quote-step-panel .autocomplete-host {
  min-height: 44px;
}

#bookingForm .quote-step-panel .google-address-input {
  min-height: 44px;
}

#bookingForm .quote-step-panel .checkbox-group,
#bookingForm .quote-step-panel .checkbox-inline {
  margin-top: 6px;
  margin-bottom: 6px;
}

@media (max-width: 768px) {
  .quote-flow-card {
    margin-bottom: 14px;
    padding: 14px 16px;
  }

  #bookingForm .quote-step-panel {
    padding: 14px 14px;
  }

  #bookingForm .quote-step-panel .panel__title {
    margin-bottom: 12px;
  }

  #bookingForm .quote-step-panel .grid.grid-2 {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  #bookingForm .quote-step-panel .address-field {
    margin-bottom: 10px;
  }

  #bookingForm .quote-step-panel label,
  #bookingForm .quote-step-panel .field label {
    font-size: 14px;
  }

  #bookingForm .quote-step-panel input,
  #bookingForm .quote-step-panel select,
  #bookingForm .quote-step-panel .google-address-input {
    min-height: 42px;
    font-size: 15px;
  }

  #bookingForm .quote-step-panel .field-tip {
    line-height: 1.4;
  }
}

@media (max-width: 430px) {
  #bookingForm .quote-step-panel .grid.grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  #bookingForm .quote-step-panel #airportFields {
    grid-template-columns: 1fr 1fr;
  }

  #bookingForm .quote-step-panel .field-tip {
    font-size: 11px;
  }
}


/* Google 地址建議下拉層級修正 */
.autocomplete-host {
  position: relative;
  z-index: 50;
}

.address-field:focus-within {
  z-index: 3000;
}

.places-predictions {
  z-index: 9999 !important;
  max-height: 260px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}


/* 2026 iPhone / LINE 內建瀏覽器：乘車時間欄位超出版面修正 */
*, *::before, *::after {
  box-sizing: border-box;
}

.panel,
.grid,
.field,
.time-group,
.time-group > * {
  min-width: 0;
}

#bookingForm .quote-step-panel .ride-date-time-grid {
  align-items: start;
}

#bookingForm .quote-step-panel #rideDate {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

/* 時間欄位固定：小時 / 冒號 / 分鐘，避免 iPhone select 撐破 */
#bookingForm .quote-step-panel .time-group {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) !important;
  gap: 6px !important;
  align-items: center;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

#bookingForm .quote-step-panel .time-group span {
  display: block;
  width: 16px;
  min-width: 16px;
  max-width: 16px;
  text-align: center;
  font-size: 20px;
  line-height: 1;
  color: var(--brand-main);
  padding: 0;
  margin: 0;
}

#bookingForm .quote-step-panel .time-group select {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box;
  text-align: center;
  font-size: 16px;
  padding-left: 10px !important;
  padding-right: 26px !important;
  white-space: nowrap;
}

/* 手機版：日期獨立一行，時間獨立一行，避免左右兩欄互相擠壓 */
@media (max-width: 520px) {
  #bookingForm .quote-step-panel .ride-date-time-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  #bookingForm .quote-step-panel .ride-date-time-grid > .field {
    width: 100%;
    max-width: 100%;
    grid-column: 1 / -1;
  }

  #bookingForm .quote-step-panel .time-group {
    grid-template-columns: minmax(0, 1fr) 14px minmax(0, 1fr) !important;
    gap: 6px !important;
  }

  #bookingForm .quote-step-panel .time-group span {
    width: 14px;
    min-width: 14px;
    max-width: 14px;
    font-size: 18px;
  }

  #bookingForm .quote-step-panel .time-group select {
    min-height: 42px;
    padding-left: 8px !important;
    padding-right: 22px !important;
  }
}

/* 超窄 LINE 視窗再縮一點 */
@media (max-width: 390px) {
  #bookingForm .quote-step-panel .time-group {
    grid-template-columns: minmax(0, 1fr) 12px minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  #bookingForm .quote-step-panel .time-group span {
    width: 12px;
    min-width: 12px;
    max-width: 12px;
    font-size: 17px;
  }

  #bookingForm .quote-step-panel .time-group select {
    padding-left: 6px !important;
    padding-right: 20px !important;
  }
}


/* FINAL iPhone / LINE 日期時間欄位修正：避免日期與時間輸入框超出卡片 */
@media (max-width: 640px) {
  #bookingForm .quote-step-panel .ride-date-time-grid {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  #bookingForm .quote-step-panel .ride-date-time-grid > .field {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  #bookingForm .quote-step-panel .ride-date-time-grid > .field:last-child {
    margin-bottom: 0 !important;
  }

  #bookingForm .quote-step-panel #rideDate {
    display: block !important;
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100% !important;
    max-inline-size: 100% !important;
    min-width: 0 !important;
    min-inline-size: 0 !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    text-align: center;
    font-size: 16px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  #bookingForm .quote-step-panel .time-group {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr) !important;
    width: 100% !important;
    max-width: 100% !important;
    gap: 8px !important;
    overflow: visible !important;
  }

  #bookingForm .quote-step-panel .time-group select {
    display: block !important;
    width: 100% !important;
    inline-size: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    font-size: 16px !important;
    text-align: center;
    padding-left: 8px !important;
    padding-right: 22px !important;
  }

  #bookingForm .quote-step-panel .time-group span {
    width: 16px !important;
    min-width: 16px !important;
    max-width: 16px !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
  }
}

/* iPhone 日期 input 原生 UI 會有內部寬度，這裡強制不要撐開 */
#rideDate::-webkit-date-and-time-value {
  text-align: center;
  width: 100%;
  min-width: 0;
}

#rideDate::-webkit-calendar-picker-indicator {
  margin-left: 0;
}
