/* Florida calculator V2 — match QShark site fonts / amber CTAs */
.fl-calc {
  --fl-ink: #0d0d0d;
  --fl-muted: #5c6570;
  --fl-accent: #f6b11a;
  --fl-accent-top: #ffc84a;
  --fl-line: #e5e0d6;
  --fl-card: #ffffff;
  --fl-ok: #0f6b4c;
  --fl-radius: 12px;
  --fl-shadow: 0 6px 18px rgba(246, 177, 26, 0.35);
  box-sizing: border-box;
  width: 100%;
  max-width: 370px;
  margin: 0 auto;
  padding: 8px 0 32px;
  color: var(--fl-ink);
  background: transparent;
  font-family: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  overflow-x: hidden;
}

.fl-calc *,
.fl-calc *::before,
.fl-calc *::after {
  box-sizing: border-box;
}

.fl-calc__header {
  margin: 0 0 18px;
  padding: 12px 0 0;
  font-size: clamp(22px, 6.2vw, 30px);
  line-height: 1.15;
  font-weight: 800;
  color: var(--fl-ink);
  text-align: left;
  white-space: nowrap;
}

.fl-calc__progress {
  margin-bottom: 20px;
}

.fl-calc__progress-label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fl-muted);
  margin-bottom: 8px;
}

.fl-calc__progress-bar {
  height: 6px;
  background: #e8e4dc;
  border-radius: 999px;
  overflow: hidden;
}

.fl-calc__progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f6ab1a, #ffce3b);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.fl-calc__screen[hidden] {
  display: none !important;
}

.fl-calc__title {
  margin: 0 0 10px;
  font-size: clamp(22px, 5.8vw, 26px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--fl-ink);
}

.fl-calc__sub {
  margin: 0 0 18px;
  color: var(--fl-muted);
  font-size: 17px;
  line-height: 1.45;
  font-weight: 500;
}

.fl-calc__based {
  margin: 0 0 8px;
  color: var(--fl-ok);
  font-weight: 700;
  font-size: 16px;
}

.fl-calc__field {
  display: block;
  margin-bottom: 14px;
}

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

.fl-calc__input {
  width: 100%;
  min-height: 56px;
  padding: 15px 16px;
  border: 1px solid #d9d3c8;
  border-radius: 8px;
  font-size: 17px; /* keeps readable; still avoids tiny iOS zoom issues */
  font-family: inherit;
  background: var(--fl-card);
  color: var(--fl-ink);
  -webkit-appearance: none;
  appearance: none;
}

.fl-calc__input:focus {
  outline: 2px solid rgba(246, 177, 26, 0.45);
  border-color: var(--fl-accent);
}

.fl-calc__input.is-invalid {
  border-color: #b42318;
}

.fl-calc__city {
  display: block;
  min-height: 1.25em;
  margin-top: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--fl-muted);
}

.fl-calc__city.is-ok {
  color: var(--fl-ok);
}

.fl-calc__city.is-bad {
  color: #b42318;
  font-weight: 600;
}

.fl-calc__input--date {
  margin-top: 10px;
}

.fl-calc__input--date-hidden {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

.fl-calc__date-display {
  width: 100%;
  min-height: 56px;
  padding: 15px 16px;
  margin-top: 10px;
  border: 1px solid #d9d3c8;
  border-radius: 8px;
  font-size: 17px;
  font-family: inherit;
  background: var(--fl-card);
  color: var(--fl-ink);
  display: flex;
  align-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.15s ease;
}

.fl-calc__date-display:active {
  transform: scale(0.99);
}

.fl-calc__date-display.is-placeholder {
  color: var(--fl-muted);
}

.fl-calc__fieldset {
  border: 0;
  margin: 0 0 20px;
  padding: 0;
  min-width: 0;
}

.fl-calc__chip-row,
.fl-calc__cards,
.fl-calc__check-grid {
  display: grid;
  gap: 10px;
}

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

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

.fl-calc__check-grid {
  grid-template-columns: 1fr;
}

.fl-calc__chip,
.fl-calc__card {
  min-height: 56px;
  border: 1.5px solid #d9d3c8;
  border-radius: 10px;
  background: var(--fl-card);
  color: var(--fl-ink);
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  padding: 12px 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.fl-calc__card {
  min-height: 68px;
  font-size: 17px;
}

.fl-calc__chip:active,
.fl-calc__card:active,
.fl-calc__btn:active {
  transform: scale(0.98);
}

.fl-calc__chip.is-selected,
.fl-calc__card.is-selected {
  border-color: #f6b11a;
  background: rgba(255, 200, 74, 0.18);
  box-shadow: inset 0 0 0 1px #f6b11a;
}

.fl-calc__check {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1.5px solid #d9d3c8;
  border-radius: 10px;
  background: var(--fl-card);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.fl-calc__check input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  accent-color: #f6b11a;
}

.fl-calc__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding-top: 12px;
}

.fl-calc__actions--split {
  flex-direction: row;
  align-items: stretch;
}

.fl-calc__actions--split .fl-calc__btn--ghost {
  flex: 0 0 28%;
  min-width: 0;
  padding-left: 10px;
  padding-right: 10px;
}

.fl-calc__actions--split .fl-calc__btn--primary {
  flex: 1;
  min-width: 0;
}

.fl-calc__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 14px 18px;
  border-radius: 12px;
  border: 0;
  font-size: 17px;
  font-weight: 800;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  line-height: 1.2;
  -webkit-tap-highlight-color: transparent;
}

.fl-calc__btn--primary {
  color: #0d0d0d;
  background: linear-gradient(180deg, #ffc84a, #f6b11a);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--fl-shadow);
}

.fl-calc__btn--primary:hover {
  opacity: 0.94;
  color: #0d0d0d;
}

.fl-calc__btn:disabled,
.fl-calc__btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
  pointer-events: none;
}

.fl-calc__btn--secondary {
  background: #0d0d0d;
  color: #fff;
}

.fl-calc__btn--ghost {
  background: #fff;
  color: var(--fl-ink);
  border: 1.5px solid #d9d3c8;
}

.fl-calc__error {
  color: #b42318;
  font-size: 15px;
  font-weight: 600;
  margin: 0 0 10px;
}

.fl-calc__price {
  margin: 0 0 16px;
  font-size: clamp(2rem, 8.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  word-break: break-word;
}

.fl-calc__price--sm {
  font-size: 18px;
  font-weight: 700;
  color: var(--fl-muted);
  margin-bottom: 4px;
}

.fl-calc__price--confirm {
  font-size: clamp(1.75rem, 7.5vw, 2.2rem);
  margin-bottom: 8px;
}

.fl-calc__title--estimate {
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: clamp(18px, 4.8vw, 22px);
  margin-bottom: 8px;
}

.fl-calc__estimate-summary {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: #fffdf6;
  border-radius: var(--fl-radius);
  border: 1px solid rgba(246, 177, 26, 0.38);
  display: grid;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.fl-calc__estimate-summary p {
  margin: 0;
}

.fl-calc__estimate-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.fl-calc__estimate-row p {
  min-width: 0;
  flex: 1;
}

.fl-calc__estimate-icon {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  color: #d4a017;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fl-calc__estimate-icon svg {
  width: 22px;
  height: 22px;
  display: block;
}

.fl-calc__nudge {
  margin: 14px 0 10px;
}

.fl-calc__nudge-title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--fl-ink);
}

.fl-calc__trust-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 8px 14px;
  min-height: 40px;
  background: #e7f7ee;
  color: #1b7a4a;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.fl-calc__trust-badge--wide {
  margin: 0 0 12px;
}

.fl-calc__trust-check {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #22a05a;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 18px;
  text-align: center;
}

.fl-calc__trust-check::before {
  content: "✓";
}

.fl-calc__title--contact {
  font-size: clamp(20px, 5.4vw, 24px);
  margin-bottom: 8px;
}

.fl-calc__sub--contact {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.4;
}

.fl-calc__field--contact {
  margin-bottom: 10px;
}

.fl-calc__label--sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.fl-calc__input--contact {
  min-height: 48px;
  padding: 12px 14px;
  font-size: 16px;
}

.fl-calc__actions--step45 {
  gap: 8px;
  margin-top: 4px;
  padding-top: 8px;
}

.fl-calc__actions--step45 .fl-calc__btn--ghost {
  flex: 0 0 28%;
  min-height: 48px;
  padding-left: 10px;
  padding-right: 10px;
}

.fl-calc__actions--step45 .fl-calc__btn--primary {
  flex: 1;
  min-height: 48px;
  padding-left: 8px;
  padding-right: 8px;
  font-size: 15px;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .fl-calc__actions--step45 .fl-calc__btn--primary {
    white-space: normal;
  }
}

.fl-calc__calc-details {
  margin: 8px 0 0;
  display: grid;
  gap: 8px;
}

.fl-calc__calc-details div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.fl-calc__calc-details dt {
  margin: 0;
  color: var(--fl-muted);
  font-weight: 600;
}

.fl-calc__calc-details dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}

.fl-calc__move-summary {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #fffaf0;
  border-radius: var(--fl-radius);
  border: 1px solid rgba(246, 177, 26, 0.35);
}

.fl-calc__move-summary-title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fl-muted);
}

.fl-calc__move-summary p {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.fl-calc__move-summary p:last-child {
  margin-bottom: 0;
  color: var(--fl-ok);
}

.fl-calc__flights {
  margin-top: 10px;
}

.fl-calc__chip-row--flights {
  margin-top: 6px;
}

.fl-calc__chip-row--stack {
  grid-template-columns: 1fr;
}

.fl-calc__urgent {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #fff4df;
  border: 1px solid rgba(246, 177, 26, 0.55);
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.fl-calc__hint--tight {
  margin-top: 10px;
}

.fl-calc__meta {
  margin: 0 0 16px;
  padding: 14px;
  background: #fffaf0;
  border-radius: var(--fl-radius);
  border: 1px solid rgba(246, 177, 26, 0.35);
  display: grid;
  gap: 12px;
}

.fl-calc__meta > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 8px 12px;
  align-items: baseline;
}

.fl-calc__meta dt {
  margin: 0;
  color: var(--fl-muted);
  font-size: 15px;
}

.fl-calc__meta dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  font-size: 16px;
  word-break: break-word;
}

.fl-calc__muted {
  font-weight: 500;
  color: var(--fl-muted);
  font-size: 14px;
}

.fl-calc__details {
  margin: 0 0 8px;
  padding: 10px 12px;
  background: var(--fl-card);
  border-radius: 10px;
  border: 1px solid #e5e0d6;
}

.fl-calc__details summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  min-height: 28px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.fl-calc__details summary::-webkit-details-marker {
  display: none;
}

.fl-calc__details summary::after {
  content: "";
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  background: currentColor;
  opacity: 0.55;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7.4 9.2 12 13.8l4.6-4.6 1.4 1.4L12 16.6 6 10.6z'/></svg>") no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='black' d='M7.4 9.2 12 13.8l4.6-4.6 1.4 1.4L12 16.6 6 10.6z'/></svg>") no-repeat center / contain;
}

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

.fl-calc__details ul {
  margin: 10px 0 0;
  padding-left: 1.1rem;
  color: var(--fl-muted);
}

.fl-calc__disclaimer,
.fl-calc__hint,
.fl-calc__consent {
  font-size: 12px;
  line-height: 1.4;
  color: #8a8f96;
  margin: 0 0 10px;
}

.fl-calc__hint {
  text-align: center;
  margin-top: 4px;
}

.fl-calc__consent {
  margin-top: 8px;
  font-size: 11px;
  line-height: 1.4;
}

.fl-calc__quote-footer {
  margin: 18px 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #444;
}

.fl-calc__img-wrap {
  display: flex;
  justify-content: center;
  margin: 24px 0 12px;
}

.fl-calc__img {
  display: block;
  width: min(300px, 100%);
  max-width: 100%;
  height: auto;
}

/* Step 1: readable spacing closer to original calculator */
.fl-calc__screen[data-fl-step="1"] .fl-calc__title {
  margin: 0 0 14px;
  font-size: clamp(22px, 5.8vw, 26px);
}

.fl-calc__sub--compact {
  margin: 0 0 16px;
  font-size: 16px;
  line-height: 1.4;
}

.fl-calc__field--compact {
  margin-bottom: 14px;
}

.fl-calc__field--compact .fl-calc__label {
  margin-bottom: 8px;
  font-size: 16px;
}

.fl-calc__input--compact {
  min-height: 52px;
  padding: 14px 16px;
  font-size: 16px;
}

.fl-calc__field--compact .fl-calc__city {
  min-height: 0;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.3;
}

.fl-calc__field--compact .fl-calc__city:empty {
  display: none;
}

.fl-calc__actions--inline {
  position: static;
  margin-top: 12px;
  padding-top: 0;
}

.fl-calc__actions--inline .fl-calc__btn {
  min-height: 52px;
  padding: 14px 18px;
}

.fl-calc__img-wrap--compact {
  margin: 28px 0 8px;
}

.fl-calc__img-wrap--compact .fl-calc__img {
  width: min(280px, 78vw);
}

.fl-calc__grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.fl-calc__route {
  margin: 0 0 16px;
  padding: 14px;
  background: #fffaf0;
  border-radius: var(--fl-radius);
  border: 1px solid rgba(246, 177, 26, 0.35);
  line-height: 1.5;
  font-weight: 600;
  word-break: break-word;
}

.fl-calc__confirm-card {
  margin: 0 0 20px;
  padding: 18px;
  background: #fffaf0;
  border-radius: var(--fl-radius);
  border: 1px solid rgba(246, 177, 26, 0.35);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.fl-calc__confirm-label {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--fl-muted);
  font-weight: 600;
}

@media (max-width: 420px) {
  .fl-calc__header {
    font-size: 20px;
    letter-spacing: -0.02em;
  }

  .fl-calc__title {
    font-size: 22px;
  }

  .fl-calc__chip-row {
    grid-template-columns: 1fr;
  }

  .fl-calc__chip,
  .fl-calc__card {
    min-height: 52px;
    font-size: 16px;
  }

  .fl-calc__actions--split:not(.fl-calc__actions--step45) {
    flex-direction: column-reverse;
  }

  .fl-calc__actions--split:not(.fl-calc__actions--step45) .fl-calc__btn--ghost,
  .fl-calc__actions--split:not(.fl-calc__actions--step45) .fl-calc__btn--primary {
    flex: none;
    width: 100%;
  }

  /* Keep First / Last side-by-side on step 5 at mobile widths */

  .fl-calc__meta > div {
    grid-template-columns: 1fr;
  }

  .fl-calc__meta dd {
    text-align: left;
  }

  .fl-calc__btn {
    font-size: 16px;
  }
}

/* Secondary CTA for flat-rate estimator link */
.fl-calc__secondary-cta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--fl-line);
  text-align: center;
}

.fl-calc__secondary-cta__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--fl-ink);
}

.fl-calc__secondary-cta__body {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--fl-muted);
}

.fl-calc__btn--secondary {
  background: transparent;
  border: 2px solid var(--fl-accent);
  color: var(--fl-accent);
}

.fl-calc__btn--secondary:hover:not(:disabled) {
  background: var(--fl-accent);
  color: #0d0d0d;
}

.fl-calc__btn--secondary:active:not(:disabled) {
  transform: translateY(1px);
}

/* Offer block for A/B test experiment — compact Step 5 card */
.fl-calc__offer-block {
  background: #fff6c8;
  border: 1px solid #f0d56a;
  border-radius: 12px;
  padding: 12px 14px 10px;
  margin: 4px 0 12px;
  box-shadow: none;
  text-align: center;
  color: #0d0d0d;
}

.fl-calc__offer-header {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d5a12;
  margin-bottom: 4px;
}

.fl-calc__offer-title {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  color: #0d0d0d;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.fl-calc__offer-body {
  font-size: 14px;
  line-height: 1.35;
  color: #0d0d0d;
  margin: 0 0 8px;
  font-weight: 600;
}

.fl-calc__offer-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: #0d0d0d;
  text-align: left;
  display: grid;
  gap: 3px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.fl-calc__offer-perks li {
  margin: 0;
  position: relative;
  padding-left: 18px;
}

.fl-calc__offer-perks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 900;
  color: #1b7a4a;
}

.fl-calc__offer-disclosure {
  font-size: 11px;
  line-height: 1.35;
  color: rgba(13, 13, 13, 0.7);
  margin: 0;
  font-weight: 500;
}

.fl-calc__based {
  margin: 0 0 10px;
  color: var(--fl-ok);
  font-weight: 700;
  font-size: 13px;
}

.fl-calc__screen[data-fl-step="4-local"] .fl-calc__price,
.fl-calc__screen[data-fl-step="4-ld"] .fl-calc__price {
  margin-bottom: 6px;
}

.fl-calc__screen[data-fl-step="4-local"],
.fl-calc__screen[data-fl-step="4-ld"],
.fl-calc__screen[data-fl-step="5"] {
  overflow-x: hidden;
}

.fl-calc__field--contact {
  position: relative;
}
