/* Flight Odyssey — Charter Flight Cost Calculator
 * Inherits GeneratePress global colors (--accent, --contrast, --base…) and the theme's fonts.
 * Override any token on .focc in Customize → Additional CSS. */
.focc {
  --focc-accent: var(--accent, #1e73be);
  --focc-text: var(--contrast, #222);
  --focc-muted: var(--contrast-2, #5b6270);
  --focc-line: var(--base, #e3e5e8);
  --focc-soft: var(--base-2, #f6f7f9);
  --focc-bg: var(--base-3, #fff);
  --focc-error: #b42318;
  --focc-radius: 10px;
  font: inherit;
  color: var(--focc-text);
  margin: 1.5em 0 2em;
  line-height: 1.5;
}
.focc *, .focc *::before, .focc *::after { box-sizing: border-box; }
.focc [hidden] { display: none !important; }

.focc-card {
  background: var(--focc-bg);
  border: 1px solid var(--focc-line);
  border-radius: var(--focc-radius);
  padding: 20px;
}
.focc-form { display: grid; gap: 16px; }
.focc-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .focc-row.focc-2 { grid-template-columns: 1fr 1fr; }
  .focc-row.focc-route { grid-template-columns: 1fr auto 1fr; align-items: end; }
}
.focc label, .focc .focc-label { display: block; font-weight: 600; font-size: 0.9em; margin-bottom: 6px; }
.focc .focc-hint { display: block; font-weight: 400; color: var(--focc-muted); font-size: 0.85em; margin-top: 4px; }

.focc input[type=text], .focc input[type=number], .focc select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  font: inherit;
  font-size: 16px; /* prevents iOS zoom */
  color: var(--focc-text);
  background: var(--focc-bg);
  border: 1px solid var(--focc-line);
  border-radius: 8px;
  margin: 0;
}
.focc input:focus, .focc select:focus, .focc button:focus-visible, .focc a:focus-visible, .focc-headline:focus-visible {
  outline: 2px solid var(--focc-accent);
  outline-offset: 2px;
  border-color: var(--focc-accent);
}

/* Trip type segmented control */
.focc-seg { display: inline-flex; border: 1px solid var(--focc-line); border-radius: 999px; padding: 3px; background: var(--focc-soft); margin: 0; }
.focc-seg legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.focc-seg label { margin: 0; font-weight: 600; font-size: 0.9em; cursor: pointer; }
.focc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.focc-seg span { display: block; padding: 8px 16px; border-radius: 999px; }
.focc-seg input:checked + span { background: var(--focc-bg); color: var(--focc-accent); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.focc-seg input:focus-visible + span { outline: 2px solid var(--focc-accent); }

/* Airport combobox */
.focc-combo { position: relative; }
.focc-combo [role=listbox] {
  position: absolute; z-index: 50; left: 0; right: 0; top: 100%;
  margin: 4px 0 0; padding: 4px; list-style: none;
  background: var(--focc-bg); border: 1px solid var(--focc-line); border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 320px; overflow-y: auto;
}
.focc-combo [role=option] { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 6px; cursor: pointer; margin: 0; }
.focc-combo [role=option][aria-selected=true], .focc-combo [role=option]:hover { background: var(--focc-soft); }
.focc-combo small { display: block; color: var(--focc-muted); font-size: 0.82em; }
.focc-code { flex: none; min-width: 42px; font-weight: 700; font-size: 0.85em; color: var(--focc-accent); }
.focc-other { border-top: 1px solid var(--focc-line); }

.focc-swap {
  width: 46px; height: 46px; border-radius: 50%; padding: 0; margin: 0 auto;
  border: 1px solid var(--focc-line); background: var(--focc-bg); color: var(--focc-accent);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.focc-swap:hover { background: var(--focc-soft); }
@media (max-width: 639px) { .focc-swap { transform: rotate(90deg); margin: -6px auto; } }

.focc-manual { background: var(--focc-soft); border-radius: 8px; padding: 14px; }
.focc-inline { display: flex; gap: 8px; }
.focc-inline input { flex: 1; }
.focc-inline select { width: auto; flex: none; }

.focc-checks { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.focc-checks label { display: flex; gap: 8px; align-items: center; font-weight: 400; margin: 0; cursor: pointer; }
.focc-checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--focc-accent); }

.focc-submit {
  width: 100%; min-height: 50px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--focc-accent); color: #fff; font: inherit; font-weight: 700; font-size: 1.05em;
}
.focc-submit:hover { filter: brightness(1.08); }

.focc-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: #fef3f2; color: var(--focc-error); border: 1px solid #fecdca; }

/* Results */
.focc-result { margin-top: 20px; }
.focc-headline { background: var(--focc-soft); border-radius: var(--focc-radius); padding: 20px; text-align: center; }
.focc-headline p { margin: 0; }
.focc-kicker { color: var(--focc-muted); font-size: 0.9em; }
.focc-total { font-size: clamp(2rem, 7vw, 2.8rem); font-weight: 800; line-height: 1.15; color: var(--focc-text); letter-spacing: -0.01em; }
.focc-range { color: var(--focc-muted); }
.focc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 0; }
.focc-stats div { background: var(--focc-bg); border-radius: 8px; padding: 10px 6px; }
.focc-stats dt { font-size: 0.78em; color: var(--focc-muted); margin: 0; }
.focc-stats dd { margin: 2px 0 0; font-weight: 700; }
.focc-stats small { display: block; font-weight: 400; font-size: 0.75em; color: var(--focc-muted); }
@media (max-width: 479px) { .focc-stats { grid-template-columns: 1fr; } }
.focc-cta {
  display: inline-block; margin-top: 16px; padding: 12px 22px; border-radius: 8px;
  background: var(--focc-accent); color: #fff !important; font-weight: 700; text-decoration: none !important;
}

.focc-h { font-size: 1.1em; margin: 24px 0 8px; }
.focc-h small { font-weight: 400; color: var(--focc-muted); font-size: 0.8em; }
.focc-table { width: 100%; border-collapse: collapse; margin: 0; font-size: 0.95em; border: 0; }
.focc-table th, .focc-table td { padding: 9px 4px; border: 0; border-bottom: 1px solid var(--focc-line); text-align: left; vertical-align: top; }
.focc-table th { font-weight: 400; }
.focc-table td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.focc-table small { display: block; color: var(--focc-muted); font-size: 0.82em; }
.focc-sub th, .focc-sub td { font-weight: 600; }
.focc-grand th, .focc-grand td { font-weight: 800; border-bottom: 2px solid var(--focc-text); }
.focc-compare thead th { font-weight: 600; font-size: 0.85em; color: var(--focc-muted); }
.focc-compare thead th:not(:first-child) { text-align: right; }
.focc-compare tbody th { font-weight: 600; }
.focc-compare tbody th small { font-weight: 400; }
.focc-current { background: var(--focc-soft); }
.focc-tag { font-size: 0.7em; font-weight: 700; color: var(--focc-accent); text-transform: uppercase; letter-spacing: .04em; }
.focc-scroll { overflow-x: auto; }

.focc-notes { margin: 14px 0 0; padding-left: 1.2em; color: var(--focc-muted); font-size: 0.92em; }
.focc-notes li { margin: 0 0 6px; }
.focc-actions { margin-top: 16px; display: flex; gap: 12px; align-items: center; }
.focc-link { background: none; border: 0; padding: 0; color: var(--focc-accent); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.focc-copied { color: var(--focc-muted); font-size: 0.9em; }
.focc-fine { margin: 12px 0 0; color: var(--focc-muted); font-size: 0.82em; }
.focc-noscript { padding: 12px; background: var(--focc-soft); border-radius: 8px; }
@media (max-width: 479px) {
  .focc-compare tbody th small { display: none; }
  .focc-compare th, .focc-compare td { padding-left: 2px; padding-right: 2px; }
}
