/*!
 * fare-calc.css — Sydney Fixed Fare Taxi calculator widget.
 * Drop-in, self-scoped under .ffc.
 * Variables fall back so the widget looks right whether or not the host page
 * defines them.
 */
.ffc {
  --ffc-ink:       #0F1E3D;
  --ffc-ink-2:     #2A3754;
  --ffc-ink-3:     #6B7591;
  --ffc-line:      #E4E8EF;
  --ffc-line-dark: #CBD2DE;
  --ffc-bg:        #ffffff;
  --ffc-bg-soft:   #F5F7FA;
  --ffc-gold:      #C4A35E;
  --ffc-gold-2:    #a07a32;
  --ffc-gold-soft: #f7efd9;
  --ffc-red:       #c53030;
  --ffc-blue-info: #1e6fd9;
  --ffc-info-bg:   #eaf2fb;

  font-family: 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ffc-ink-2);
  background: var(--ffc-bg);
  border: 1px solid var(--ffc-line);
  border-radius: 16px;
  padding: 26px;
  box-shadow: 0 14px 36px rgba(13,21,33,.08);
  display: block;
  max-width: 100%;
}
.ffc * { box-sizing: border-box; }

.ffc-honey { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.ffc-form { display: flex; flex-direction: column; gap: 16px; }

.ffc-row { display: grid; gap: 10px; align-items: end; }
.ffc-row-route { grid-template-columns: 1fr auto 1fr; }
.ffc-row-address { grid-template-columns: 1fr 1fr; gap: 12px; }
.ffc-row-options { grid-template-columns: 1.6fr 70px 78px 78px 78px; }
.ffc-luggage-hint {
  font-size: 12px;
  color: var(--ffc-ink-3);
  line-height: 1.45;
  margin: -8px 2px -4px;
}

/* ---- Tier picker (Premium Sedan / SUV / People Mover) -------------- */
.ffc-tier-row {
  background: var(--ffc-bg-soft);
  border: 1px solid var(--ffc-line);
  border-radius: 12px;
  padding: 14px 14px 12px;
  display: flex; flex-direction: column; gap: 12px;
}
.ffc-tier-row-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--ffc-ink);
}
.ffc-tier-row-sub {
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ffc-ink-3);
  font-size: 11px;
}
.ffc-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ffc-tier {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 2px solid var(--ffc-line);
  border-radius: 12px;
  padding: 14px 13px 12px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--ffc-ink-2);
  display: flex; flex-direction: column; gap: 6px;
  transition: border-color .15s, box-shadow .15s, transform .08s;
  position: relative;
}
.ffc-tier:hover:not(.is-disabled) {
  border-color: var(--ffc-ink-3);
}
.ffc-tier.is-selected {
  border-color: var(--ffc-gold);
  box-shadow: 0 0 0 3px var(--ffc-gold-soft);
}
.ffc-tier.is-disabled {
  opacity: .42;
  cursor: not-allowed;
  background: var(--ffc-bg-soft);
}
.ffc-tier-head {
  display: flex; flex-direction: column; gap: 2px;
}
.ffc-tier-name {
  font-family: 'Cormorant Garamond', 'Hanken Grotesk', serif;
  font-size: 19px;
  font-weight: 600;
  color: var(--ffc-ink);
  letter-spacing: -.01em;
  line-height: 1.1;
}
.ffc-tier-eg {
  font-size: 11px;
  color: var(--ffc-ink-3);
  line-height: 1.35;
}
.ffc-tier-cap {
  font-size: 12px;
  color: var(--ffc-ink-2);
  line-height: 1.4;
  flex: 1;
}
.ffc-tier-price {
  display: flex; align-items: baseline; gap: 3px;
  font-family: 'Cormorant Garamond', 'Hanken Grotesk', serif;
  font-size: 30px;
  font-weight: 600;
  line-height: 1;
  color: var(--ffc-ink);
}
.ffc-tier-price .ffc-cur { font-size: 14px; font-weight: 500; color: var(--ffc-ink-3); }
.ffc-tier-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  min-height: 14px;
  line-height: 1.2;
  color: var(--ffc-ink-3);
}
.ffc-tier-tag.is-recommended { color: var(--ffc-gold-2); }
.ffc-tier-tag.is-upgrade { color: var(--ffc-blue-info); }
.ffc-tier-tag.is-blocked { color: var(--ffc-red); }

.ffc-wheelchair-toggle {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 1px dashed var(--ffc-line-dark);
  border-radius: 10px;
  padding: 8px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ffc-ink-2);
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  text-align: left;
}
.ffc-wheelchair-toggle:hover { border-color: var(--ffc-ink-3); }
.ffc-wheelchair-toggle.is-on {
  background: var(--ffc-gold-soft);
  border-style: solid;
  border-color: var(--ffc-gold);
  color: var(--ffc-ink);
}
.ffc-wheel-icon { font-size: 18px; line-height: 1; }
.ffc-wheel-text { flex: 1; }
.ffc-wheel-action { font-weight: 600; color: var(--ffc-gold-2); }

/* ---- Google Places suggestion dropdown ------------------------------ */
.ffc-places-dropdown {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  background: #fff;
  border: 1px solid var(--ffc-line-dark);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(13,21,33,.12);
  max-height: 280px;
  overflow-y: auto;
  display: flex; flex-direction: column;
}
.ffc-places-item {
  appearance: none;
  -webkit-appearance: none;
  background: #fff;
  border: 0;
  border-bottom: 1px solid var(--ffc-line);
  padding: 11px 14px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 2px;
  color: var(--ffc-ink-2);
}
.ffc-places-item:last-child { border-bottom: 0; }
.ffc-places-item:hover,
.ffc-places-item.is-active {
  background: var(--ffc-gold-soft);
  color: var(--ffc-ink);
}
.ffc-places-main {
  font-size: 14px;
  font-weight: 600;
  color: var(--ffc-ink);
  line-height: 1.3;
}
.ffc-places-sec {
  font-size: 12px;
  color: var(--ffc-ink-3);
  line-height: 1.3;
}
.ffc-row-second {
  background: var(--ffc-gold-soft);
  border: 1px solid var(--ffc-gold);
  border-radius: 10px;
  padding: 14px 16px;
  display: grid; grid-template-columns: 1fr;
}
.ffc-row-extras {
  background: var(--ffc-bg-soft);
  border: 1px solid var(--ffc-line);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center;
}

.ffc-req { color: var(--ffc-red); font-weight: 700; }
.ffc-opt { font-weight: 500; color: var(--ffc-ink-3); text-transform: none; letter-spacing: 0; }
.ffc-hint { font-size: 12px; color: var(--ffc-ink-3); margin-top: 6px; line-height: 1.4; }
.ffc-banner-warn {
  background: #fff5e0;
  border: 1px solid #fbe2a5;
  color: #6e4a14;
  padding: 11px 14px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.ffc-banner-warn strong { color: #4a2f08; }
.ffc-banner-warn em { font-style: italic; color: #6e4a14; }
.ffc input[type=text] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--ffc-line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ffc-ink);
}
.ffc input[type=text]:focus { outline: 2px solid var(--ffc-gold); outline-offset: -1px; border-color: var(--ffc-gold); }

.ffc-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ffc-narrow { max-width: 100px; }
.ffc-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .12em;
  color: var(--ffc-ink-3);
}
.ffc select,
.ffc input[type=number],
.ffc input[type=datetime-local] {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--ffc-line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ffc-ink);
  appearance: none;
}
.ffc select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f7888' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; padding-right: 32px; }
.ffc select:focus,
.ffc input:focus { outline: 2px solid var(--ffc-gold); outline-offset: -1px; border-color: var(--ffc-gold); }

.ffc-arrow {
  font-size: 22px; color: var(--ffc-gold); font-weight: 600;
  align-self: end; padding-bottom: 12px; user-select: none;
}

.ffc-extras-label {
  font-size: 12px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ffc-ink-3);
  width: 100%; margin-bottom: 2px;
}
.ffc-chk { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 14px; color: var(--ffc-ink-2); }
.ffc-chk input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--ffc-gold); cursor: pointer; }
.ffc-chk:hover { color: var(--ffc-ink); }
.ffc-px { font-weight: 700; color: var(--ffc-gold); font-size: 13px; margin-left: 4px; }
.ffc-px-free { color: #1e7a4a; }

.ffc-banner { padding: 11px 14px; border-radius: 10px; font-size: 14px; }
.ffc-banner-info { background: var(--ffc-info-bg); border: 1px solid #b5cfee; color: var(--ffc-blue-info); }
.ffc-banner-info strong { color: #14457e; }
.ffc-banner-err  { background: #fdecec; border: 1px solid #fab1b1; color: var(--ffc-red); }

.ffc-result {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--ffc-ink);
  color: #fff;
  border-radius: 12px;
  padding: 18px 22px;
  gap: 14px;
}
.ffc-result-label {
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ffc-gold);
  display: block; margin-bottom: 4px;
}
.ffc-result-detail { font-size: 13px; color: #cfd4dc; }
.ffc-result-price { display: flex; align-items: baseline; gap: 4px; }
.ffc-cur { font-size: 18px; color: #cfd4dc; font-weight: 500; }
.ffc-result-price [data-role=fare] { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }

.ffc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ffc-btn {
  flex: 1; min-width: 200px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  font-family: inherit; font-weight: 700; font-size: 15px;
  border-radius: 10px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: .18s ease;
}
.ffc-btn-primary { background: var(--ffc-gold); color: #fff; }
.ffc-btn-primary:hover { background: var(--ffc-gold-2); transform: translateY(-1px); }
.ffc-btn-ghost   { background: transparent; color: var(--ffc-ink); border-color: var(--ffc-line-dark); }
.ffc-btn-ghost:hover   { background: var(--ffc-ink); color: #fff; border-color: var(--ffc-ink); }

.ffc-fine { font-size: 12px; color: var(--ffc-ink-3); text-align: center; margin: 0; }

.ffc-failed { padding: 18px; text-align: center; color: var(--ffc-ink-3); font-size: 14px; }

/* Compact variant (route page sidebar) */
.ffc--compact { padding: 18px; }
.ffc--compact .ffc-row-route { grid-template-columns: 1fr; gap: 8px; }
.ffc--compact .ffc-arrow { display: none; }
.ffc--compact .ffc-row-options { grid-template-columns: 1fr 1fr; }
.ffc--compact .ffc-tier-grid { grid-template-columns: 1fr; }
.ffc--compact .ffc-narrow { max-width: 100%; }
.ffc--compact .ffc-result-price [data-role=fare] { font-size: 32px; }

/* Mobile */
@media (max-width: 860px) {
  .ffc-tier-grid { grid-template-columns: 1fr; }
  .ffc-tier { flex-direction: row; align-items: center; flex-wrap: wrap; }
  .ffc-tier-head { flex: 1 1 60%; }
  .ffc-tier-cap { flex: 1 1 100%; order: 4; }
  .ffc-tier-price { flex: 0 0 auto; }
  .ffc-tier-tag { flex: 1 1 100%; order: 5; }
}
@media (max-width: 720px) {
  .ffc { padding: 20px; }
  .ffc-row-route { grid-template-columns: 1fr; }
  .ffc-row-address { grid-template-columns: 1fr; }
  .ffc-arrow { display: none; }
  .ffc-row-options { grid-template-columns: 1fr 1fr; }
  .ffc-row-options .ffc-field:first-child { grid-column: 1 / -1; }
  .ffc-row-options .ffc-narrow { grid-column: auto; max-width: 100%; }
  .ffc-narrow { max-width: 100%; }
  .ffc-result { flex-direction: column; align-items: flex-start; }
  .ffc-result-price [data-role=fare] { font-size: 36px; }
  .ffc-btn { min-width: 100%; }
}

/* ---- Booking-form refresh 2026-05-31: clean date/time row, single counter
   row, featured SUV card (operator: push the Lexus RX 350 SUV) ---------- */
.ffc-row-when { grid-template-columns: 1fr; }
.ffc-row-counts { grid-template-columns: repeat(4, 1fr); }

/* Featured SUV tier — recommended/most-chosen, sedan stays the default. */
.ffc-tier { position: relative; }
.ffc-tier--featured { border-color: #C7A15B; box-shadow: 0 0 0 3px rgba(199,161,91,0.18); }
.ffc-tier--featured.is-selected { border-color: #A8853F; }
.ffc-tier-ribbon {
  position: absolute; top: -9px; right: 10px;
  background: #C7A15B; color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  padding: 2px 8px; border-radius: 999px; text-transform: uppercase;
  white-space: nowrap; pointer-events: none;
}

@media (max-width: 560px) {
  .ffc-row-counts { grid-template-columns: 1fr 1fr; }
}
.ffc--compact .ffc-row-counts { grid-template-columns: 1fr 1fr; }
