/* 一般送迎ウィザード（スマートフォン最優先） */

.ytb-gen-form .ytb-gen-chrome {
  margin: 0 0 8px;
  padding-bottom: 8px;
}

.ytb-gen-kicker {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #b45309;
}

.ytb-gen-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.ytb-gen-steps li {
  position: relative;
  padding: 8px 4px 6px;
  border-bottom: 3px solid #d1d5db;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.ytb-gen-steps li.is-done {
  border-bottom-color: #0b1f3a;
  color: #0b1f3a;
}

.ytb-gen-steps li.is-current {
  border-bottom-color: #d4af37;
  color: #0b1f3a;
}

.ytb-gen-progress {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #0b1f3a;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.ytb-gen-panel h3 {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.4;
  color: #0b1220;
}

.ytb-gen-lead,
.ytb-gen-hint,
.ytb-gen-time-label {
  margin: 0 0 12px;
  font-size: 15px;
  color: #374151;
}

.ytb-gen-choice {
  display: grid;
  gap: 12px;
}

.ytb-gen-choice-btn,
.ytb-gen-select,
.ytb-gen-next,
.ytb-gen-back,
.ytb-gen-change {
  min-height: 52px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  -webkit-tap-highlight-color: transparent;
}

.ytb-gen-choice-btn {
  border: 2px solid #0b1f3a;
  background: #fff;
  color: #0b1f3a;
}

.ytb-gen-choice-btn.is-on {
  background: #0b1f3a;
  color: #fff;
}

.ytb-gen-time-input {
  width: 100%;
  min-height: 56px;
  font-size: 20px;
  padding: 12px;
  border: 1px solid #aeb6c2;
  border-radius: 12px;
}

.ytb-gen-panel[hidden] {
  display: none !important;
}

.ytb-gen-lock-service,
.ytb-gen-omit,
.ytb-gen-omit-stash {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 0 !important;
}

.ytb-gen-native-time {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ytb-gen-trip {
  margin: 0 0 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
}

.ytb-gen-trip h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.ytb-gen-trip dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.ytb-gen-trip dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.ytb-gen-summary-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.ytb-gen-trip dt {
  color: #6b7280;
  font-weight: 600;
  flex: 0 0 7.5em;
}

.ytb-gen-summary-list li span {
  color: #374151;
  font-weight: 600;
  flex: 0 0 7.5em;
}

.ytb-gen-summary-list li,
.ytb-gen-summary-list li strong {
  color: #0b1220;
}

.ytb-gen-trip dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.ytb-gen-trip-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.ytb-gen-change {
  min-height: 44px;
  font-size: 14px;
  border: 1px solid #0b1f3a;
  background: #fff;
  color: #0b1f3a;
}

.ytb-gen-cards {
  display: grid;
  gap: 14px;
  padding-bottom: 24px;
}

.ytb-gen-card {
  padding: 16px;
  border: 2px solid #d1d5db;
  border-radius: 16px;
  background: #fff;
}

.ytb-gen-card.is-toll {
  border-top: 6px solid #1d4ed8;
}

.ytb-gen-card.is-local {
  border-top: 6px solid #15803d;
}

.ytb-gen-card.is-selected {
  border-width: 3px;
  border-color: #0b1f3a;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.5);
}

.ytb-gen-card:not(.is-selected) {
  border-color: #d1d5db;
  background: #f8fafc;
}

.ytb-gen-card.is-toll.is-selected {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.28);
}

.ytb-gen-card.is-local.is-selected {
  border-color: #15803d;
  box-shadow: 0 0 0 4px rgba(21, 128, 61, 0.28);
}

.ytb-gen-card-head {
  margin: 0 0 10px;
}

.ytb-gen-card h4 {
  margin: 6px 0 4px;
  font-size: 17px;
  line-height: 1.35;
}

.ytb-gen-card-sub {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.ytb-gen-badge,
.ytb-gen-chosen {
  display: inline-block;
  margin: 0 6px 0 0;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.ytb-gen-badge {
  background: #fef3c7;
  color: #92400e;
}

.ytb-gen-chosen {
  background: #15803d;
  color: #fff;
}

.ytb-gen-map {
  height: 180px;
  margin: 0 0 10px;
  border-radius: 12px;
  overflow: hidden;
  background: #e5e7eb;
}

.ytb-gen-map .leaflet-container {
  width: 100%;
  height: 100%;
  font: inherit;
}

.ytb-gen-map-fallback {
  margin: 0;
  padding: 16px;
  font-size: 13px;
  color: #4b5563;
}

.ytb-gen-card dl {
  margin: 0;
  display: grid;
  gap: 8px;
}

.ytb-gen-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 15px;
}

.ytb-gen-card dt {
  color: #4b5563;
  font-weight: 600;
}

.ytb-gen-card dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.ytb-gen-traffic.is-light {
  color: #15803d;
}

.ytb-gen-traffic.is-mild,
.ytb-gen-traffic.is-partial {
  color: #b45309;
}

.ytb-gen-traffic.is-busy,
.ytb-gen-traffic.is-heavy {
  color: #b91c1c;
}

.ytb-gen-total {
  margin: 14px 0 10px;
  font-size: 16px;
}

.ytb-gen-total strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  color: #0b1f3a;
}

.ytb-gen-route-path {
  margin: 4px 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f3f4f6;
  font-size: 14px;
  line-height: 1.5;
  color: #1f2937;
}

.ytb-gen-route-path-label {
  display: block;
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
}

.ytb-gen-select {
  background: #0b1f3a;
  color: #fff;
  border: 0;
}

.ytb-gen-card.is-selected .ytb-gen-select {
  background: #15803d;
}

.ytb-gen-select:disabled {
  background: #9ca3af;
}

.ytb-gen-card-warn,
.ytb-gen-error,
.ytb-gen-card-fail {
  color: #b91c1c;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.ytb-gen-error {
  margin: 8px 0;
  padding: 10px 12px;
  background: #fef2f2;
  border-radius: 10px;
}

.ytb-gen-disclaimer,
.ytb-gen-card-note {
  font-size: 12px;
  line-height: 1.6;
  color: #4b5563;
}

.ytb-gen-nav {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 10px;
  margin-top: 16px;
  position: sticky;
  bottom: 0;
  z-index: 40;
  padding: 10px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  box-shadow: 0 -10px 18px rgba(255, 255, 255, 0.95);
}

.ytb-gen-back {
  background: #fff;
  border: 2px solid #0b1f3a;
  color: #0b1f3a;
}

.ytb-gen-next {
  background: #d4af37;
  border: 0;
  color: #0b1220;
}

.ytb-gen-next:disabled {
  background: #d1d5db;
  color: #6b7280;
}

.ytb-gen-summary-list {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #f8fafc;
  border-radius: 14px;
  list-style: none;
}

.ytb-gen-summary-list li {
  margin: 0 0 8px;
  font-size: 15px;
}

.ytb-gen-summary-route {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  font-size: 14px;
  font-weight: 400;
  color: #374151;
  text-align: left;
}

.ytb-gen-summary-total strong {
  font-size: 18px;
  color: #0b1f3a;
}

.ytb-gen-form .wpcf7-submit {
  min-height: 54px;
  width: 100%;
  font-size: 17px;
  font-weight: 800;
  border-radius: 14px;
}

.ytb-gen-form .wpcf7-submit:disabled {
  opacity: 0.45;
}

@media (min-width: 720px) {
  .ytb-gen-steps li {
    font-size: 12px;
  }

  .ytb-gen-cards {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .ytb-gen-map {
    height: 220px;
  }

  .ytb-gen-trip dl {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }

  .ytb-gen-summary-list {
    max-width: 850px;
  }

  .ytb-gen-summary-list li {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    column-gap: 24px;
    align-items: start;
    justify-content: initial;
    text-align: left;
  }

  .ytb-gen-summary-list li span {
    flex: none;
    color: #374151;
  }

  .ytb-gen-summary-list li,
  .ytb-gen-summary-list li strong {
    text-align: left;
    color: #0b1220;
  }

  .ytb-gen-summary-route {
    grid-template-columns: 180px minmax(0, 1fr);
  }
}

.ytb-gen-route-path {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 719px) {
  .ytb-gen-form {
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
  }

  .ytb-gen-cards {
    padding-bottom: 8px;
  }

  .ytb-gen-select,
  .ytb-gen-next,
  .ytb-gen-back {
    min-height: 48px;
  }
}

html.ytb-gen-wizard-active .yt-mobile-cta,
body.ytb-gen-wizard-active .yt-mobile-cta {
  display: none !important;
}

html.ytb-gen-wizard-active .yt-header a.yt-btn-header,
body.ytb-gen-wizard-active .yt-header a.yt-btn-header {
  display: none !important;
}

@media (max-width: 720px) {
  body.yt-home.ytb-gen-wizard-active {
    padding-bottom: 0 !important;
  }
}

.ytb-gen-chrome.is-confirm .ytb-gen-nav {
  grid-template-columns: 1fr;
}

.ytb-gen-panel[data-panel="confirm"] {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ytb-gen-panel[data-panel="confirm"][hidden] {
  display: none !important;
}

.ytb-gen-panel[data-panel="confirm"] > p {
  margin: 0;
}

.ytb-gen-panel[data-panel="confirm"] .ytb-place-wrap,
.ytb-gen-panel[data-panel="confirm"] .ytb-place-map-panel,
.ytb-gen-panel[data-panel="confirm"] .ytb-place-map,
.ytb-gen-panel[data-panel="confirm"] .leaflet-container,
.ytb-gen-panel[data-panel="confirm"] .ytb-gen-native-time {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.ytb-gen-form > p:empty,
.ytb-gen-panel[data-panel="confirm"] > p:empty {
  display: none !important;
  margin: 0 !important;
  height: 0 !important;
}

.ytb-gen-form .wpcf7-turnstile,
.ytb-gen-form .cf-turnstile,
.ytb-gen-panel[data-panel="confirm"] .wpcf7-turnstile,
.ytb-gen-panel[data-panel="confirm"] .cf-turnstile {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  min-height: 65px;
  margin: 4px 0 12px;
  overflow: visible !important;
  opacity: 1 !important;
  clip: auto !important;
  background-color: #fff;
  color-scheme: light;
}

.ytb-gen-panel[data-panel="confirm"] .wpcf7-turnstile > div,
.ytb-gen-panel[data-panel="confirm"] .cf-turnstile > div {
  background-color: #fff;
  color-scheme: light;
}

.ytb-gen-panel[data-panel="confirm"] .wpcf7-turnstile iframe,
.ytb-gen-panel[data-panel="confirm"] .cf-turnstile iframe {
  background-color: #fff;
}

.ytb-gen-panel[data-panel="confirm"] [data-name="your-message"] textarea,
.ytb-gen-panel[data-panel="confirm"] textarea[name="your-message"] {
  min-height: 140px;
  color: #0b1220;
  background: #fff;
  border: 1px solid #aeb6c2;
  border-radius: 10px;
}

.ytb-gen-panel[data-panel="confirm"] > p > label,
.ytb-gen-panel[data-panel="confirm"] .privacy-consent label,
.ytb-gen-panel[data-panel="confirm"] .privacy-consent .wpcf7-list-item-label {
  color: #0b1220;
  font-weight: 700;
}
