

.ffw-section {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--heather-purple);
  margin: 0 0 0.5rem;
}
.ffw-q {
  font-family: 'Oxygen', sans-serif;
  font-weight: 700;
  font-size: clamp(21px, 5.2vw, 27px);
  line-height: 1.25;
  color: var(--atlantic-blue);
  margin: 0 0 0.5rem;
}
.ffw-sub {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 auto 1.5rem;
  max-width: 400px;
}

.ffw-choices { display: flex; flex-direction: column; gap: 0.6rem; margin-top: 0.5rem; }

.ffw-field { position: relative; margin-bottom: 0.9rem; text-align: left; }
.ffw-field:last-of-type { margin-bottom: 0; }
.ffw-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal-grey);
  margin-bottom: 0.35rem;
}
.ffw-hint { display: block; font-weight: 400; font-size: 0.78rem; color: var(--muted); margin-top: 0.1rem; }
.ffw-input {
  width: 100%;
  min-height: 52px;
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--charcoal-grey);
  background: #fff;
}
.ffw-input:focus { outline: none; border-color: var(--atlantic-blue); box-shadow: 0 0 0 3px rgba(3, 83, 157, 0.1); }
.ffw-input.error { border-color: #e74c3c; background: #fdf2f2; }
select.ffw-input { cursor: pointer; appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2303539D' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 2.4rem;
}

.ffw-currency { position: relative; }
.ffw-currency .ffw-currency-prefix {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-weight: 600; color: var(--atlantic-blue); pointer-events: none; font-size: 1.05rem;
}
.ffw-currency .ffw-input { padding-left: 30px; }

.ffw-receipt { text-align: left; }
.ffw-receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.82rem;
  line-height: 1.3;
  color: var(--muted);
  padding: 0.15rem 0;
}
.ffw-receipt-label { min-width: 0; }
.ffw-receipt-val {
  font-weight: 600;
  color: var(--atlantic-blue);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ffw-receipt-row.total {
  border-top: 1px solid #dbe7f2;
  margin-top: 0.3rem;
  padding-top: 0.4rem;
  font-weight: 600;
  color: var(--atlantic-blue);
}
.ffw-receipt-row.total .ffw-receipt-val { font-size: 1.05rem; }
.ffw-receipt-val.neg { color: #c0392b; }

.ffw-receipt-row.total.solo { border-top: 0; margin-top: 0; padding-top: 0; }

.ffw-receipt-lg {
  background: #f2f7fb;
  border: 1px solid #dbe7f2;
  border-radius: 12px;
  padding: 0.9rem 1.05rem;
  margin: 0.25rem 0 0.9rem;
}
.ffw-receipt-lg .ffw-receipt-row { font-size: 0.92rem; padding: 0.28rem 0; }
.ffw-receipt-lg .ffw-receipt-row.total { margin-top: 0.4rem; padding-top: 0.5rem; }
.ffw-receipt-lg .ffw-receipt-row.total .ffw-receipt-val { font-size: 1.3rem; }

.ffw-receipt-val.ffw-receipt-words {
  white-space: normal;
  text-align: right;
  font-weight: 500;
  color: var(--charcoal-grey);
}

.ffw-afford {
  text-align: left;
  background: #f2f7fb;
  border: 1px solid #dbe7f2;
  border-radius: 12px;
  padding: 0.55rem 0.7rem;
  margin-bottom: 0.8rem;
}
.ffw-afford-compact {
  display: none;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.3rem 0.4rem;
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted);
}
.ffw-afford-sep { color: #b8cade; }
.ffw-afford-chip { white-space: nowrap; }
.ffw-afford-chip .ffw-receipt-val { margin-left: 0.1rem; }
.ffw-receipt-val.lead { font-size: 0.95rem; }

.ffw-afford-note {
  margin: 0.5rem 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
}

.ffw-choice-amt {
  margin-left: auto;
  padding-left: 0.6rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.ffw-alert-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 26, 48, 0.62);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
  overflow-y: auto;
  animation: ffw-alert-in 140ms ease-out;
}
@keyframes ffw-alert-in { from { opacity: 0; } to { opacity: 1; } }

.ffw-alert {
  width: 100%;
  max-width: 27rem;
  margin: auto;
  background: #fff;
  border-radius: 14px;
  border-top: 6px solid #E9A800;
  box-shadow: 0 18px 48px rgba(2, 26, 48, 0.34);
  padding: 1.35rem 1.25rem 1.15rem;
  text-align: left;
}
@media (prefers-reduced-motion: reduce) {
  .ffw-alert-overlay { animation: none; }
}

.ffw-alert-head {
  margin: 0 0 0.75rem;
  font-family: 'Oxygen', system-ui, sans-serif;
  font-size: 1.22rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--charcoal-grey);
}

.ffw-alert-figure {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  background: #FFF8E6;
}
.ffw-alert-figure-val {
  font-family: 'Oxygen', system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: #c0392b;
  line-height: 1;
}
.ffw-alert-figure-lbl { font-size: 0.82rem; color: var(--muted); }

.ffw-alert-body {
  margin: 0 0 1.1rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--charcoal-grey);
}

.ffw-alert-actions { display: flex; flex-direction: column; gap: 0.55rem; }
.ffw-alert-actions .ffw-btn { width: 100%; }
.ffw-alert-go {
  background: #fff;
  color: var(--atlantic-blue);
  border: 2px solid #c9d9e8;
  font-weight: 600;
}
.ffw-alert-go:hover, .ffw-alert-go:focus-visible {
  border-color: var(--atlantic-blue);
  background: #f6fafd;
}

@media (min-width: 431px) {
  .ffw-afford { padding: 0.7rem 0.85rem; margin-bottom: 1.1rem; }
}
@media (max-width: 360px) {
  .ffw-afford { padding: 0.45rem 0.6rem; }
  .ffw-afford-compact { font-size: 0.75rem; }
  .ffw-receipt-val.lead { font-size: 0.9rem; }
  .ffw-receipt-row { font-size: 0.79rem; }
}

.ffw-suggest {
  position: absolute;
  z-index: 20;
  left: 0; right: 0; top: 100%;
  margin-top: 4px;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 10px 26px rgba(3, 83, 157, 0.16);
  max-height: 232px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.ffw-suggest-item {
  display: block;
  width: 100%;
  padding: 0.6rem 0.85rem;
  border: none;
  border-bottom: 1px solid var(--border);
  background: none;
  font-family: inherit;
  font-size: 0.98rem;
  color: var(--charcoal-grey);
  text-align: left;
  cursor: pointer;
}
.ffw-suggest-item:last-child { border-bottom: none; }
.ffw-suggest-item:hover,
.ffw-suggest-item.active { background: var(--sea-mist); }
.ffw-suggest-via {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

.ffw-slider-value {
  font-family: 'Oxygen', sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  color: var(--atlantic-blue);
  margin: 1rem 0 2.25rem;
}
.ffw-slider {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 8px; border-radius: 8px;
  background: var(--sea-mist); outline: none; margin: 0.5rem 0 0;
}
.ffw-slider::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--heather-purple); cursor: pointer; border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
}
.ffw-slider::-moz-range-thumb {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--heather-purple); cursor: pointer; border: 3px solid #fff;
}
.ffw-slider-ends { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-top: 1.25rem; }

.ffw-textarea { min-height: 110px; resize: vertical; line-height: 1.5; font-family: inherit; }

.ffw-select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath fill='%2303539d' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px 8px;
  padding-right: 38px;
}

.ffw-check {
  display: flex; align-items: flex-start; gap: 0.7rem;
  text-align: left; font-size: 0.95rem; line-height: 1.45;
  color: var(--charcoal-grey); margin-bottom: 1rem; cursor: pointer;
}
.ffw-check input[type="checkbox"] {
  width: 22px; height: 22px; flex: 0 0 auto; margin-top: 1px; accent-color: var(--heather-purple);
}
.ffw-check a { color: var(--heather-purple); text-decoration: underline; }
.ffw-fineprint { font-size: 0.78rem; color: var(--muted); line-height: 1.5; text-align: left; margin: 0 0 1rem; }
.ffw-fineprint a { color: var(--heather-purple); text-decoration: underline; }

.ffw-warn {
  display: none;
  margin-top: 0.4rem;
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--muted);
  text-align: left;
}
.ffw-warn.show { display: block; }
.ffw-warn-fix {
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--heather-purple);
  text-decoration: underline;
  cursor: pointer;
}

.ffw-error {
  color: #e74c3c; font-size: 0.82rem; font-weight: 500;
  margin-top: 0.5rem; text-align: left; display: none;
}
.ffw-error.show { display: block; }

.ffw-actions, .ffw-nav { margin-top: 1.5rem; }
.ffw-nav { display: flex; gap: 0.6rem; }
.ffw-nav .ffw-btn-primary { flex: 1 1 auto; }
.ffw-nav.only-back { justify-content: center; margin-top: 1.25rem; }
.ffw-btn-back { flex: 0 0 auto; min-width: 108px; }
.ffw-nav.only-back .ffw-btn-back { min-width: 140px; }

.ffw-postcode-row { display: flex; gap: 0.5rem; }
.ffw-postcode-row .ffw-input { flex: 1; min-width: 0; }
.ffw-postcode-btn {
  flex: 0 0 auto; padding: 0 1.1rem; border-radius: 10px;
  border: none; background: var(--atlantic-blue); color: #fff;
  font-family: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer; min-height: 52px;
}
.ffw-postcode-btn:disabled { opacity: 0.55; cursor: default; }
.ffw-status { font-size: 0.82rem; margin-top: 0.5rem; text-align: left; line-height: 1.4; min-height: 1em; }
.ffw-status.checking { color: var(--muted); }
.ffw-status.ok { color: #0a7d33; font-weight: 500; }
.ffw-status.err { color: #e74c3c; font-weight: 500; }
.ffw-manual-link {
  display: inline-block; margin-top: 0.6rem; font-size: 0.85rem;
  color: var(--heather-purple); text-decoration: underline; cursor: pointer; background: none; border: none;
}

.ffw-end-icon {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  background: var(--sea-mist); color: var(--atlantic-blue);
  display: flex; align-items: center; justify-content: center; font-size: 2rem;
}

@media (min-width: 720px) {
  .ffw-q { font-size: clamp(24px, 2.2vw, 30px); }
}

.ffw-hatch {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(3, 83, 157, 0.1);
  text-align: center;
}
.ffw-hatch-btn {

  display: block;
  width: 100%;
  background: var(--sea-mist);
  color: var(--heather-purple);
  font-size: 0.95rem;
  line-height: 1.35;

  min-height: 0;
  padding: 0.7rem 1rem;
}
.ffw-hatch-btn:hover { background: #e3edf6; }

.ffw-hatch-first { border-top: 0; padding-top: 0; margin-top: 1.25rem; }
.ffw-hatch-intro {
  margin: 0 0 0.3rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: center;
}
.ffw-hatch-arrow {
  margin: 0 0 0.15rem;
  font-size: 1.15rem;
  line-height: 1;
  color: var(--heather-purple);
}

@media (prefers-reduced-motion: no-preference) {
  .ffw-hatch-arrow { animation: ffw-hatch-nudge 1.8s ease-in-out 3; }
}
@keyframes ffw-hatch-nudge {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(3px); }
}

@media (max-height: 700px) {
  .ffw-hatch { margin-top: 1rem; padding-top: 0.6rem; }
  .ffw-hatch-btn { font-size: 0.88rem; padding: 0.6rem 0.85rem; }
}
