/* ── Card ───────────────────────────────────────────────── */
#tf-root .tf-card {
  background: var(--tf-white);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 20px;
  box-shadow: var(--tf-shadow-card);
  transition: box-shadow 0.2s;
}
#tf-root .tf-card:hover {
  box-shadow: var(--tf-shadow-card-hover);
}

/* ── Label ──────────────────────────────────────────────── */
#tf-root .tf-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--tf-text);
  margin-bottom: 6px;
}

#tf-root .tf-label .tf-required {
  color: var(--tf-danger);
  margin-left: 2px;
}

/* ── Input ──────────────────────────────────────────────── */
#tf-root .tf-input {
  display: block;
  width: 100%;
  padding: 11px 14px;
  font-size: 0.875rem;
  color: var(--tf-text);
  background: #fff;
  border: 1.5px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  line-height: 1.5;
}
#tf-root .tf-input::placeholder { color: var(--tf-text-placeholder); }
#tf-root .tf-input:hover:not(:disabled):not(:focus) { border-color: var(--tf-border-hover); }
#tf-root .tf-input:focus {
  border-color: var(--tf-primary) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(0,68,158,0.14) !important;
  outline: none !important;
}
#tf-root .tf-input.error {
  border-color: var(--tf-danger);
  box-shadow: var(--tf-danger-light) 0 0 0 3px;
}
#tf-root .tf-input:disabled {
  background: var(--tf-bg-disabled);
  color: var(--tf-text-muted);
  cursor: not-allowed;
}

/* ── Date inputs: calendar icon handled by .tf-input-wrap + .tf-input-icon in layout.css */

/* ── Select ─────────────────────────────────────────────── */
#tf-root .tf-select {
  display: block;
  width: 100%;
  padding: 11px 36px 11px 14px;
  font-size: 0.875rem;
  color: var(--tf-text);
  background: #fff;
  border: 1.5px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239ca3af' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
#tf-root .tf-select:hover:not(:disabled) { border-color: var(--tf-border-hover); }
#tf-root .tf-select:focus {
  border-color: var(--tf-primary);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,68,158,0.14);
}
#tf-root .tf-select.error { border-color: var(--tf-danger); }
#tf-root .tf-select:disabled {
  background-color: var(--tf-bg-disabled);
  color: var(--tf-text-muted);
  cursor: not-allowed;
}

/* ── Error message ──────────────────────────────────────── */
#tf-root .tf-error {
  display: block;
  font-size: 0.75rem;
  color: var(--tf-danger);
  margin-top: 4px;
}

/* ── Submit-level validation summary ───────────────────── */
#tf-root .tf-submit-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--tf-radius-sm);
  font-size: 0.82rem;
  color: var(--tf-danger);
  text-align: center;
}

/* ── Hint ───────────────────────────────────────────────── */
#tf-root .tf-hint {
  font-size: 0.75rem;
  color: var(--tf-text-muted);
  margin-top: 4px;
}

/* ── Autocomplete ───────────────────────────────────────── */
#tf-root .tf-autocomplete-wrap {
  position: relative;
}
#tf-root .tf-autocomplete-wrap::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
#tf-root .tf-autocomplete-wrap input {
  padding-right: 36px;
}
#tf-root .tf-autocomplete-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  max-height: 220px;
  overflow-y: auto;
}
#tf-root .tf-autocomplete-item {
  padding: 10px 14px;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--tf-text);
  transition: background 0.12s;
}
#tf-root .tf-autocomplete-item:hover,
#tf-root .tf-autocomplete-item.tf-active {
  background: var(--tf-surface);
  color: var(--tf-primary);
}

/* ── Buttons ────────────────────────────────────────────── */
#tf-root .tf-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tf-white);
  background: linear-gradient(135deg, #00449e 0%, #003478 100%);
  border: none;
  border-radius: var(--tf-radius-md);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,52,120,0.22);
  transition: box-shadow 0.15s, filter 0.15s;
  user-select: none;
}
#tf-root .tf-btn-primary:hover  { filter: brightness(1.06); box-shadow: var(--tf-shadow-btn); }
#tf-root .tf-btn-primary:active { filter: brightness(0.96); }
#tf-root .tf-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; }
#tf-root .tf-btn-primary:focus-visible { outline: 2px solid var(--tf-primary); outline-offset: 2px; }
#tf-root .tf-btn-primary.loading {
  opacity: 0.85;
  cursor: not-allowed;
  pointer-events: none;
}
#tf-root .tf-btn-primary.loading .tf-btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rcaSpin 0.7s linear infinite;
  flex-shrink: 0;
}

#tf-root .tf-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tf-text-secondary);
  background: var(--tf-white);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
#tf-root .tf-btn-ghost:hover { background: var(--tf-bg-disabled); border-color: var(--tf-border-hover); }

#tf-root .tf-scan-post-btns {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 8px;
}
#tf-root .tf-post-scan-divider {
  border-top: 1px solid rgba(255,255,255,0.18);
  margin: 10px 0;
}
#tf-root .tf-scan-post-btns .tf-scan-dual-btns {
  margin-top: 0;
}
#tf-root .tf-scan-post-btns .tf-btn-ghost {
  flex: 1;
  min-width: 80px;
  justify-content: center;
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
#tf-root .tf-scan-post-btns .tf-btn-ghost:hover {
  background: rgba(255,255,255,0.18);
}
#tf-root .tf-scan-blocked {
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding: 10px 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--tf-radius-md);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.45;
}
#tf-root .tf-scan-blocked-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.8;
  margin-top: 1px;
}

/* ── Toggle group ───────────────────────────────────────── */
#tf-root .tf-toggle-group {
  display: flex;
  width: 100%;
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  overflow: hidden;
}
#tf-root .tf-toggle-btn {
  flex: 1;
  padding: 11px 8px;
  min-height: 44px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--tf-text-muted);
  background: var(--tf-white);
  border: none;
  border-right: 1px solid var(--tf-border);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-align: center;
}
#tf-root .tf-toggle-btn:last-child { border-right: none; }
#tf-root .tf-toggle-btn:hover:not(.active) { background: var(--tf-bg-disabled); color: var(--tf-text-secondary); }
#tf-root .tf-toggle-btn.active {
  background: linear-gradient(135deg, #00449e 0%, #003478 100%);
  color: var(--tf-white);
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.12);
}

/* ── Section divider ────────────────────────────────────── */
#tf-root .tf-section-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 16px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--tf-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
#tf-root .tf-section-divider hr {
  flex: 1;
  margin: 0;
  border: none;
  border-top: 1.5px solid rgba(0,68,158,0.18);
}
/* DNT divider: allow title to wrap on small screens */
#tf-root .tf-dnt-divider { flex-wrap: wrap; gap: 6px 10px; }
#tf-root .tf-dnt-divider span { order: 2; width: 100%; text-align: center; }
#tf-root .tf-dnt-divider hr:first-child { order: 1; }
#tf-root .tf-dnt-divider hr:last-child { order: 3; display: none; }

/* ── Scenario selector chips ────────────────────────────── */
#tf-root .tf-scenario-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
#tf-root .tf-scenario-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  min-height: 44px;
  border: 1.5px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  background: #fff;
  color: var(--tf-text);
  font-size: 0.875rem;
  font-weight: 400;
  cursor: pointer;
  text-align: center;
  line-height: 1.4;
  transition: border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
#tf-root .tf-scenario-btn.active {
  border: 1.5px solid var(--tf-primary);
  background: #fff;
  color: var(--tf-primary);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(0,68,158,0.10);
}
#tf-root .tf-scenario-btn:hover:not(.active) {
  border-color: var(--tf-primary);
  color: var(--tf-primary);
}

/* ── Combustibil chips ──────────────────────────────────── */
#tf-root .tf-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
#tf-root .tf-chip {
  padding: 10px 14px;
  min-height: 44px;
  border: 1.5px solid var(--tf-border);
  border-radius: var(--tf-radius-sm);
  background: #f0f5fb;
  color: var(--tf-text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.1s, color 0.1s, background 0.1s;
}
#tf-root .tf-chip.active {
  border-color: var(--tf-primary);
  border-width: 2px;
  background: var(--tf-primary-light);
  color: var(--tf-primary);
  box-shadow: 0 0 0 3px rgba(0,68,158,0.10);
}
#tf-root .tf-chip:hover:not(.active) {
  border-color: var(--tf-primary);
  color: var(--tf-primary);
  background: var(--tf-primary-light);
}

/* ── Checkbox ───────────────────────────────────────────── */
#tf-root .tf-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
#tf-root .tf-checkbox-box {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--tf-border);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
  margin-top: 1px;
}
#tf-root .tf-checkbox-box.checked {
  background: var(--tf-primary);
  border-color: var(--tf-primary);
}
#tf-root .tf-checkbox-box.checked-green {
  background: var(--tf-success);
  border-color: var(--tf-success);
}
#tf-root .tf-checkbox-text {
  font-size: 0.875rem;
  color: #4b5563;
  line-height: 1.5;
}

/* ── Info / alert banners ───────────────────────────────── */
#tf-root .tf-info-box {
  display: block;
  padding: 16px 24px;
  background: #f0f4f9;
  border-radius: var(--tf-radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--tf-text);
  text-align: center;
  margin: 0;
}
#tf-root .tf-warning-box {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 14px;
  background: var(--tf-warning-bg);
  border: 1px solid var(--tf-warning-border);
  border-radius: var(--tf-radius-md);
  font-size: 0.8rem;
  color: var(--tf-warning-text);
}

/* ── Autofill button (ANAF lookup) ─────────────────────── */
#tf-root .tf-autofill-btn {
  flex-shrink: 0;
  padding: 11px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: var(--tf-primary);
  border: none;
  border-radius: var(--tf-radius-md);
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
  height: 42px;
  display: flex;
  align-items: center;
}
#tf-root .tf-autofill-btn:hover { background: #00449e; }

/* ── Scan banner ────────────────────────────────────────── */
#tf-root .tf-scan-section {
  background: var(--tf-white);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  padding: 20px;
  box-shadow: var(--tf-shadow-card);
  margin-bottom: 16px;
}
#tf-root .tf-scan-section-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--tf-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
#tf-root .tf-scan-section-title::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 12px;
  background: var(--tf-primary);
  border-radius: 2px;
  flex-shrink: 0;
}
#tf-root .tf-scan-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #003478 0%, #00449e 100%);
  border: none;
  border-radius: var(--tf-radius-md);
  box-shadow: 0 4px 16px rgba(0,52,120,0.28);
}
#tf-root .tf-scan-banner.applied {
  background: #f0fdf4;
  border-color: #6ee7b7;
}
#tf-root .tf-scan-banner-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#tf-root .tf-scan-banner-icon.applied { background: rgba(255,255,255,0.18); }
#tf-root .tf-scan-banner-info { display: flex; align-items: center; gap: 10px; }
#tf-root .tf-scan-banner-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
}
#tf-root .tf-scan-banner-sub {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.72);
  margin-top: 2px;
}
#tf-root .tf-scan-banner.applied {
  background: linear-gradient(135deg, #15803d 0%, #16a34a 100%);
  box-shadow: 0 4px 16px rgba(22,163,74,0.28);
}
#tf-root .tf-scan-banner.applied .tf-scan-banner-title { color: #ffffff; }
#tf-root .tf-scan-banner.applied .tf-scan-banner-sub   { color: rgba(255,255,255,0.75); }

/* CI banner — two-column layout */
#tf-root .tf-ci-banner-layout {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}
#tf-root .tf-ci-card-art {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
#tf-root .tf-ci-text-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
#tf-root .tf-ci-text-group .tf-btn-primary {
  margin-top: 8px;
  align-self: flex-start;
}

/* ── Security strip ─────────────────────────────────────── */
#tf-root .tf-security-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--tf-text-muted);
}
#tf-root .tf-security-strip svg { flex-shrink: 0; }

/* ── Cursor fixes for all interactive elements ───────────── */
#tf-root button { cursor: pointer; }

/* ── Scan banner CTA — white pill inside dark blue banner ── */
#tf-root .tf-scan-banner .tf-btn-primary {
  background: rgba(255,255,255,0.15);
  color: #ffffff;
  border: 1.5px solid rgba(255,255,255,0.35);
  box-shadow: none;
  backdrop-filter: blur(4px);
}
#tf-root .tf-scan-banner .tf-btn-primary:hover {
  background: rgba(255,255,255,0.25);
  filter: none;
  box-shadow: none;
}

/* ── Step 3 review rows ─────────────────────────────────── */
#tf-root .tf-review-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 0;
  border-bottom: 1px solid #f3f4f6;
}
#tf-root .tf-review-row:last-child { border-bottom: none; }
#tf-root .tf-review-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--tf-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#tf-root .tf-review-value {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
}
#tf-root .tf-review-empty {
  font-size: 0.875rem;
  color: #d1d5db;
  font-style: italic;
}

/* ── Hero header ────────────────────────────────────────── */
#tf-root .tf-hero {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 0 20px;
  border-bottom: 1px solid var(--tf-border);
  margin-bottom: 20px;
}
#tf-root .tf-trust-row {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
}
#tf-root .tf-trust-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--tf-text-muted);
  white-space: nowrap;
}
#tf-root .tf-trust-badge svg { color: var(--tf-success); flex-shrink: 0; }
@media (max-width: 640px) {
  #tf-root .tf-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  #tf-root .tf-trust-row { gap: 12px; flex-wrap: wrap; }
}

/* ── Sidebar cards ──────────────────────────────────────── */
#tf-root .tf-sidebar-card {
  background: var(--tf-white);
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg);
  box-shadow: var(--tf-shadow-card);
  overflow: hidden;
}
#tf-root .tf-sidebar-header {
  background: linear-gradient(135deg, #003478 0%, #00449e 100%);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
#tf-root .tf-sidebar-header-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: rgba(255,255,255,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
#tf-root .tf-sidebar-header-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
}
#tf-root .tf-sidebar-header-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.6);
  margin-top: 1px;
}
#tf-root .tf-sidebar-body { padding: 14px 16px; }
#tf-root .tf-sidebar-body.tf-talon-img-body { padding: 0; }
#tf-root .tf-talon-img-hint { padding: 8px 12px 10px; }
#tf-root .tf-sidebar-hint {
  font-size: 0.75rem;
  color: var(--tf-text-muted);
  line-height: 1.55;
  margin-bottom: 12px;
}

/* ── Talon image overlay ─────────────────────────────────── */
#tf-root .tf-talon-img-wrap {
  position: relative;
  width: 100%;
  border-radius: 0;
  overflow: hidden;
  background: #f7f8fa;
}
#tf-root .tf-talon-img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  pointer-events: none;
}
#tf-root .tf-talon-hl {
  position: absolute;
  border-radius: 3px;
  background: transparent;
  border: 2px solid transparent;
  transition: background 0.18s, border-color 0.18s;
  pointer-events: none;
}
#tf-root .tf-talon-hl.active {
  background: rgba(0,68,158,0.22);
  border-color: rgba(0,68,158,0.7);
  box-shadow: 0 0 0 1px rgba(0,68,158,0.18) inset;
}
#tf-root .tf-talon-img-hint {
  font-size: 0.68rem;
  color: var(--tf-text-muted);
  text-align: center;
  margin-top: 8px;
  margin-bottom: 0;
  opacity: 0.8;
}
#tf-root .tf-sidebar-tips {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#tf-root .tf-sidebar-tip {
  background: var(--tf-primary-light);
  border: 1px solid var(--tf-primary-border);
  border-radius: var(--tf-radius-md);
  padding: 10px 12px;
}
#tf-root .tf-sidebar-tip-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--tf-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
#tf-root .tf-sidebar-tip p {
  font-size: 0.78rem;
  color: var(--tf-text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ── Flatpickr date picker — shadcn/ui style ─────────────── */
.flatpickr-calendar {
  font-family: inherit;
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1px 4px rgba(0,0,0,0.06);
  padding: 12px;
  width: 296px !important;
}
.flatpickr-calendar.arrowTop::before { border-bottom-color: var(--tf-border); }
.flatpickr-calendar.arrowTop::after  { border-bottom-color: #fff; }

/* Month header */
.flatpickr-months {
  padding: 0 0 8px;
  position: relative;
  align-items: center;
}
.flatpickr-months .flatpickr-month {
  background: transparent;
  color: var(--tf-text);
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.flatpickr-current-month {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--tf-text);
  padding: 0;
  width: auto;
  left: 50%;
  transform: translateX(-50%);
}
.flatpickr-current-month .numInputWrapper { width: 52px; }
.flatpickr-current-month .numInputWrapper input {
  color: var(--tf-text);
  font-weight: 600;
  font-size: 0.875rem;
}
.flatpickr-current-month select.flatpickr-monthDropdown-months {
  color: var(--tf-text);
  font-weight: 600;
  font-size: 0.875rem;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0 2px;
}
/* Nav prev/next — small outline circle buttons */
.flatpickr-prev-month,
.flatpickr-next-month {
  width: 28px !important;
  height: 28px !important;
  top: 4px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--tf-border) !important;
  border-radius: 6px !important;
  background: transparent !important;
  transition: background 0.15s, border-color 0.15s;
  padding: 0 !important;
}
.flatpickr-prev-month { left: 0 !important; }
.flatpickr-next-month { right: 0 !important; }
.flatpickr-prev-month:hover,
.flatpickr-next-month:hover {
  background: var(--tf-bg) !important;
  border-color: var(--tf-border-hover) !important;
}
.flatpickr-prev-month svg,
.flatpickr-next-month svg {
  fill: var(--tf-text-secondary);
  width: 14px;
  height: 14px;
}
.flatpickr-prev-month:hover svg,
.flatpickr-next-month:hover svg { fill: var(--tf-text); }

/* Weekday labels */
.flatpickr-weekdays { background: transparent; padding: 0; }
.flatpickr-weekdaycontainer { width: 100%; }
span.flatpickr-weekday {
  background: transparent;
  color: var(--tf-text-muted);
  font-size: 0.78rem;
  font-weight: 400;
  width: 36px;
  max-width: 36px;
}

/* Day grid */
.flatpickr-days { width: 100% !important; }
.dayContainer {
  width: 252px !important;
  min-width: 252px !important;
  max-width: 252px !important;
}
.flatpickr-day {
  border-radius: 50%;
  color: var(--tf-text);
  font-size: 0.84rem;
  height: 36px;
  line-height: 36px;
  max-width: 36px;
  width: 36px;
  border: 1px solid transparent;
  transition: background 0.12s, color 0.12s;
}
.flatpickr-day:hover,
.flatpickr-day:focus {
  background: var(--tf-bg);
  border-color: transparent;
  color: var(--tf-text);
}
/* Selected */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.selected:focus {
  background: var(--tf-primary);
  border-color: var(--tf-primary);
  color: #fff;
  font-weight: 600;
  box-shadow: none;
}
/* Today */
.flatpickr-day.today {
  background: rgba(0,68,158,0.08);
  border-color: transparent;
  color: var(--tf-primary);
  font-weight: 600;
}
.flatpickr-day.today:hover { background: rgba(0,68,158,0.14); }
.flatpickr-day.today.selected {
  background: var(--tf-primary);
  color: #fff;
}
/* Disabled / out-of-month */
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
  color: var(--tf-text-placeholder);
  opacity: 0.5;
  background: transparent;
  cursor: not-allowed;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  color: var(--tf-text-muted);
  opacity: 0.5;
}

/* Alt input trigger */
#tf-root input.flatpickr-input.tf-input,
#tf-root input.flatpickr-input { cursor: pointer; }

/* ── Scenario buttons layout (center alignment) ─────────── */
#tf-root .tf-scenario-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.3;
}

/* ── Lucide icon sizing ──────────────────────────────────── */
#tf-root .tf-icon        { width: 18px; height: 18px; stroke: currentColor; fill: none; }
#tf-root .tf-icon-sm     { width: 13px; height: 13px; stroke: currentColor; fill: none; }
#tf-root .tf-icon-btn    { width: 14px; height: 14px; stroke: currentColor; fill: none; }
#tf-root .tf-icon-header { width: 28px; height: 28px; stroke: var(--tf-primary); fill: none; }
#tf-root .tf-icon-warning{ width: 14px; height: 14px; stroke: #F59E0B; fill: none; flex-shrink: 0; margin-top: 1px; }
#tf-root .tf-icon-sidebar{ width: 17px; height: 17px; stroke: white; fill: none; }
#tf-root .tf-icon-upload { width: 40px; height: 40px; stroke: #9ca3af; fill: none; }
#tf-root .tf-icon-check    { width: 10px; height: 10px; stroke: white; stroke-width: 2.5; fill: none; }
#tf-root .tf-icon-security    { width: 12px; height: 12px; stroke: currentColor; fill: none; }
#tf-root .tf-icon-section-card{ width: 14px; height: 14px; stroke: var(--tf-primary); fill: none; }

/* -- Dual scan buttons (Incarca / Pozeaza) */
#tf-root .tf-scan-dual-btns { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
#tf-root .tf-scan-dual-btns .tf-btn-primary,
#tf-root .tf-scan-dual-btns .tf-btn-ghost { flex:1; min-width:90px; justify-content:center; display:flex; align-items:center; gap:5px; }

/* ── Offers (Step 3) — legacy tab styles (kept for compatibility) ── */
#tf-root .tf-offers-tabs {
  display: flex; gap: 3px; background: var(--tf-surface);
  border: 1px solid var(--tf-border); border-radius: 10px; padding: 3px;
}
#tf-root .tf-tab-btn {
  padding: 7px 18px; border-radius: 8px; border: none; background: transparent;
  font-size: 0.8125rem; font-weight: 500; color: var(--tf-text-muted); cursor: pointer;
}
#tf-root .tf-tab-btn.active { background: var(--tf-primary); color: #fff; box-shadow: 0 2px 8px rgba(0,68,158,0.24); }
#tf-root .tf-offers-tabs .tf-tab-btn.active { background: var(--tf-primary) !important; color: #fff !important; }
#tf-root .tf-tab-btn:not(.active):hover { color: var(--tf-text); }


/* ── Skeleton loader ────────────────────────────────────── */
#tf-root .tf-offer-skeleton { pointer-events: none; }

#tf-root .tf-skel {
  background: linear-gradient(
    90deg,
    var(--tf-border) 25%,
    color-mix(in srgb, var(--tf-border) 40%, transparent) 50%,
    var(--tf-border) 75%
  );
  background-size: 200% 100%;
  animation: rcaShimmer 1.4s infinite;
}

/* ── DNT Inline (step 2) ─────────────────────────────────── */
#tf-root #tf-dnt-form { display: flex; flex-direction: column; gap: 0; }

/* ── DNT Consent Styles ──────────────────────────────────── */
#tf-root .tf-modal-dnt { max-width: 520px; max-height: 88vh; display: flex; flex-direction: column; }
#tf-root .tf-consent-body { overflow-y: auto; padding: 20px 24px; flex: 1; display: flex; flex-direction: column; gap: 0; }
#tf-root .tf-consent-loading-state { text-align: center; padding: 48px 24px; }

/* Identity fields */
#tf-root .tf-dnt-identity { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--tf-border); }
#tf-root .tf-dnt-field-label { font-size: 0.75rem; color: var(--tf-text-muted); margin-bottom: 3px; display: block; }
#tf-root .tf-dnt-field-value { font-size: 0.9375rem; font-weight: 500; color: var(--tf-text); background: var(--tf-surface); border: 1px solid var(--tf-border); border-radius: 8px; padding: 9px 12px; }

/* Question blocks */
#tf-root .tf-dnt-block { padding: 16px 0; border-bottom: 1px solid var(--tf-border); }
#tf-root .tf-dnt-block:last-child { border-bottom: none; }
#tf-root .tf-dnt-question { font-size: 0.875rem; font-weight: 500; color: var(--tf-text); margin-bottom: 12px; line-height: 1.5; }

/* Toggle buttons (Da / Nu) */
#tf-root .tf-dnt-toggle-row { display: flex; gap: 8px; }
#tf-root .tf-dnt-toggle-btn {
  flex: 1; padding: 10px 16px; border-radius: 8px; font-size: 0.875rem; font-weight: 500;
  border: 1.5px solid var(--tf-border); background: var(--tf-bg); color: var(--tf-text);
  cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s;
}
#tf-root .tf-dnt-toggle-btn:hover { border-color: var(--tf-primary); }
#tf-root .tf-dnt-toggle-btn.selected { border-color: var(--tf-primary); background: var(--tf-primary); color: #fff; }

/* Extra field (sub-form) */
#tf-root .tf-dnt-extra { margin-top: 10px; padding: 14px; background: var(--tf-surface); border: 1px solid var(--tf-border); border-radius: 8px; }

/* Checkbox rows */
#tf-root .tf-dnt-check-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; cursor: pointer; font-size: 0.875rem; color: var(--tf-text); line-height: 1.5; }
#tf-root .tf-dnt-checkbox { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; cursor: pointer; accent-color: var(--tf-primary); }

/* GDPR bordered box */
#tf-root .tf-dnt-gdpr-block { margin-top: 16px; border: 2px solid var(--tf-border); border-radius: 10px; padding: 14px 16px; transition: border-color 0.15s; }
#tf-root .tf-dnt-gdpr-block:has(input:checked) { border-color: var(--tf-primary); }
#tf-root .tf-dnt-gdpr-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 0.8125rem; color: var(--tf-text); line-height: 1.6; }

/* ── Travel-specific: Zone tabs ─────────────────────────── */
#tf-root .tf-zone-tabs { display: flex; flex-direction: row; flex-wrap: nowrap; gap: 8px; }
#tf-root .tf-zone-tab {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 8px; border-radius: 8px; font-size: 0.8rem; font-weight: 500;
  border: 1.5px solid var(--tf-border); background: var(--tf-bg); color: var(--tf-text);
  cursor: pointer; transition: border-color 0.15s, background 0.15s, color 0.15s; text-align: center;
  white-space: normal; min-width: 0;
}
#tf-root .tf-zone-tab:hover { border-color: var(--tf-primary); }
#tf-root .tf-zone-tab.active { border-color: var(--tf-primary); background: var(--tf-primary); color: #fff; }

/* ── Travel-specific: Age steppers ─────────────────────── */
#tf-root .tf-travelers-section { margin-top: 4px; }
#tf-root .tf-travelers-grid { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
#tf-root .tf-travelers-grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
/* Desktop: always show all age rows, hide the reveal button */
@media (min-width: 481px) {
  #tf-root #tf-toggle-age-extra { display: none !important; }
  #tf-root #tf-age-extra { display: flex !important; }
}
#tf-root .tf-traveler-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; background: var(--tf-bg); border: 1px solid var(--tf-border); border-radius: 8px;
}
#tf-root .tf-traveler-label { font-size: 0.875rem; color: var(--tf-text); }
#tf-root .tf-stepper { display: flex; align-items: center; gap: 14px; }
#tf-root .tf-stepper-btn {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--tf-border); background: var(--tf-white); cursor: pointer;
  color: var(--tf-text); transition: border-color 0.15s, color 0.15s;
}
#tf-root .tf-stepper-btn:hover { border-color: var(--tf-primary); color: var(--tf-primary); }
#tf-root .tf-stepper-val { font-size: 1rem; font-weight: 600; min-width: 20px; text-align: center; }
#tf-root .tf-travelers-total { font-size: 0.875rem; color: var(--tf-text-muted); margin-top: 8px; }
#tf-root .tf-link-btn {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.8125rem; color: var(--tf-primary); background: none; border: none;
  cursor: pointer; padding: 4px 0; margin-top: 6px;
}
#tf-root .tf-link-btn:hover { text-decoration: underline; }

/* ── Travel-specific: Offer cards ─────────────────────── */

/* Header card */
#tf-root .tf-offers-card-header { padding: 20px; margin-bottom: 16px; }
#tf-root .tf-offers-header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}
#tf-root .tf-offers-title-group {
  display: flex; align-items: center; justify-content: center; gap: 12px;
}
#tf-root .tf-offers-icon-wrap {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, #003478 0%, #00449e 100%);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,52,120,0.28);
}
#tf-root .tf-offers-title {
  font-size: 1.125rem; font-weight: 700; color: var(--tf-heading);
}
#tf-root .tf-offers-meta-right {
  display: flex; justify-content: flex-end;
}
#tf-root .tf-offers-period {
  font-size: 0.875rem; color: var(--tf-text-muted); font-weight: 500;
  background: var(--tf-bg); padding: 5px 12px; border-radius: 20px;
}
#tf-root .tf-offers-header-divider {
  border: none; border-top: 1px solid var(--tf-border); margin: 16px 0 12px;
}
#tf-root .tf-offers-sort-row { display: flex; justify-content: flex-end; }
#tf-root .tf-sort-wrap { display: flex; align-items: center; gap: 8px; }
#tf-root .tf-select-sm .tf-select { width: auto; min-width: 160px; }
#tf-root .tf-offers-note { font-size: 0.75rem; color: var(--tf-text-muted); margin-top: 12px; }
#tf-root .tf-offers-list { display: flex; flex-direction: column; gap: 12px; }

/* Offer card — 3-column grid */
#tf-root .tf-offer-card {
  background: var(--tf-white); border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-lg); padding: 0; overflow: hidden;
  box-shadow: var(--tf-shadow-card); transition: box-shadow 0.15s, border-color 0.15s;
  cursor: default;
}
#tf-root .tf-offer-card:hover { box-shadow: var(--tf-shadow-card-hover); border-color: #c3ddf6; }

#tf-root .tf-offer-card-grid {
  display: grid;
  grid-template-columns: 220px 1fr 200px;
  min-height: 160px;
}

/* Col 1: Insurer */
#tf-root .tf-offer-col-insurer {
  padding: 20px 18px;
  border-right: 1px solid var(--tf-border);
  display: flex; flex-direction: column; gap: 8px;
}
#tf-root .tf-offer-logo { height: 40px; max-width: 120px; object-fit: contain; }
#tf-root .tf-offer-logo-placeholder {
  width: 80px; height: 40px; display: flex; align-items: center; justify-content: center;
  background: var(--tf-bg); border-radius: 6px; font-size: 1.4rem; font-weight: 700; color: var(--tf-primary);
}
#tf-root .tf-offer-name { font-size: 0.9rem; font-weight: 700; color: var(--tf-heading); line-height: 1.3; }
#tf-root .tf-offer-insurer-badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  color: var(--tf-text-muted); background: var(--tf-bg);
  border: 1px solid var(--tf-border); border-radius: 20px; padding: 2px 8px;
  width: fit-content;
}
#tf-root .tf-offer-amount-line { font-size: 0.8rem; color: var(--tf-text-secondary); }
#tf-root .tf-offer-amount-line strong { color: var(--tf-primary); font-weight: 700; }
#tf-root .tf-offer-validity { font-size: 0.72rem; color: var(--tf-text-muted); }
#tf-root .tf-offer-doc-links { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
#tf-root .tf-offer-doc-link {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.75rem; color: var(--tf-accent); text-decoration: underline; line-height: 1.3;
}
#tf-root .tf-offer-doc-link:hover { color: var(--tf-primary); }

/* Col 2: Coverage */
#tf-root .tf-offer-col-coverage {
  padding: 20px 18px;
  border-right: 1px solid var(--tf-border);
  display: flex; flex-direction: column; gap: 10px;
}
#tf-root .tf-offer-col-title {
  font-size: 0.78rem; font-weight: 700; color: var(--tf-primary);
  text-transform: uppercase; letter-spacing: 0.06em;
}
#tf-root .tf-coverage-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 6px; flex: 1;
}
#tf-root .tf-coverage-item {
  display: flex; align-items: flex-start; gap: 7px;
  font-size: 0.8125rem; color: var(--tf-text-secondary); line-height: 1.4;
}
#tf-root .tf-coverage-check {
  width: 14px; height: 14px; flex-shrink: 0; margin-top: 1px;
  stroke: var(--tf-success); stroke-width: 2.5; fill: none;
}
#tf-root .tf-coverage-empty {
  font-size: 0.8125rem; color: var(--tf-text-muted); font-style: italic; margin: 0;
}
#tf-root .tf-offer-tags-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
#tf-root .tf-offer-tag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.72rem; padding: 3px 9px; border-radius: 20px; font-weight: 600; }
#tf-root .tf-tag-ok { background: #dcfce7; color: #15803d; }
#tf-root .tf-tag-no { background: #fee2e2; color: #b91c1c; }

/* Col 3: Price */
#tf-root .tf-offer-col-price {
  padding: 20px 18px;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--tf-primary-light);
}
#tf-root .tf-offer-price-block { display: flex; flex-direction: column; gap: 10px; flex: 1; justify-content: center; }
#tf-root .tf-offer-price-amount {
  font-size: 1.5rem; font-weight: 800; color: var(--tf-primary); white-space: nowrap;
  letter-spacing: -0.02em;
}
#tf-root .tf-btn-alegeti {
  padding: 10px 20px; font-size: 0.875rem; justify-content: center; width: 100%;
}

/* Responsive: collapse to stacked on mobile */
@media (max-width: 680px) {
  #tf-root .tf-offer-card-grid {
    grid-template-columns: 1fr;
  }
  #tf-root .tf-offer-col-insurer,
  #tf-root .tf-offer-col-coverage { border-right: none; border-bottom: 1px solid var(--tf-border); }
  #tf-root .tf-offer-col-price { background: var(--tf-primary-light); }
  #tf-root .tf-offers-header-grid { grid-template-columns: auto 1fr auto; }
  #tf-root .tf-offers-title { font-size: 0.95rem; }
}

#tf-root .tf-info-btn-wrap { position: relative; display: inline-flex; }
#tf-root .tf-offer-info-btn {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; font-size: 0.8125rem; font-weight: 500;
  color: var(--tf-text-secondary); background: var(--tf-white);
  border: 1.5px solid var(--tf-border); border-radius: 20px;
  cursor: pointer; transition: border-color 0.15s, color 0.15s;
}
#tf-root .tf-offer-info-btn:hover { border-color: var(--tf-accent); color: var(--tf-accent); }
#tf-root .tf-info-dropdown {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 230px; background: var(--tf-white);
  border: 1px solid var(--tf-border); border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.13); z-index: 200; padding: 4px 0;
}
#tf-root .tf-info-drop-link {
  display: block; padding: 9px 14px; font-size: 0.8125rem;
  color: var(--tf-accent); text-decoration: underline; line-height: 1.3;
}
#tf-root .tf-info-drop-link:hover { background: var(--tf-primary-light); }

/* Skeleton shimmer */
#tf-root .tf-offer-skeleton { animation: tf-shimmer 1.4s ease-in-out infinite; }
@keyframes tf-shimmer { 0%,100%{opacity:1} 50%{opacity:0.5} }
#tf-root .tf-skeleton-logo { width: 80px; height: 44px; background: var(--tf-bg); border-radius: 6px; flex-shrink: 0; }
#tf-root .tf-skeleton-lines { flex: 1; display: flex; flex-direction: column; gap: 8px; }
#tf-root .tf-skeleton-line { height: 14px; background: var(--tf-bg); border-radius: 4px; }
#tf-root .tf-skeleton-long { width: 70%; }
#tf-root .tf-skeleton-short { width: 40%; }
#tf-root .tf-skeleton-price { width: 80px; height: 28px; background: var(--tf-bg); border-radius: 6px; }

/* Loading / empty / error */
#tf-root .tf-loading-row { display: flex; align-items: center; gap: 12px; padding: 24px 0; color: var(--tf-text-muted); }
#tf-root .tf-spinner { width: 22px; height: 22px; border: 2.5px solid var(--tf-border); border-top-color: var(--tf-primary); border-radius: 50%; animation: tf-spin 0.7s linear infinite; }
@keyframes tf-spin { to { transform: rotate(360deg); } }
#tf-root .tf-empty-msg { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 0; color: var(--tf-text-muted); text-align: center; }
#tf-root .tf-error-msg { color: #dc2626; font-size: 0.875rem; padding: 10px 14px; background: #fef2f2; border-radius: 8px; border: 1px solid #fecaca; }

/* ── Travel-specific: Traveler wizard ──────────────────── */
#tf-root .tf-traveler-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
#tf-root .tf-traveler-progress { text-align: center; flex: 1; }
#tf-root .tf-traveler-heading { font-weight: 600; font-size: 0.9375rem; display: block; }
#tf-root .tf-traveler-age { font-size: 0.8125rem; color: var(--tf-text-muted); display: block; }
#tf-root .tf-traveler-dots { display: flex; justify-content: center; gap: 8px; margin-bottom: 16px; }
#tf-root .tf-traveler-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--tf-border); cursor: pointer; transition: background 0.15s; }
#tf-root .tf-traveler-dot.active { background: var(--tf-primary); }
#tf-root .tf-traveler-actions { justify-content: space-between; }
#tf-root .tf-section-title { font-size: 0.875rem; font-weight: 600; color: var(--tf-heading); margin: 16px 0 8px; }
#tf-root .tf-field-note { font-size: 0.75rem; color: var(--tf-text-muted); margin-top: 4px; }
#tf-root .tf-row-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 600px) { #tf-root .tf-row-4 { grid-template-columns: repeat(2, 1fr); } }
#tf-root .tf-address-block { margin-top: 4px; }

/* ── Collapsible sections ────────────────────────────────── */
#tf-root .tf-collapsible {
  border: 1px solid var(--tf-border);
  border-radius: var(--tf-radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}
#tf-root .tf-collapsible-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none;
  background: var(--tf-primary-light, #eff6ff);
  border-bottom: 1px solid transparent;
}
#tf-root .tf-collapsible[open] .tf-collapsible-summary {
  border-bottom-color: var(--tf-border);
}
#tf-root .tf-collapsible-summary::-webkit-details-marker { display: none; }
#tf-root .tf-collapsible-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--tf-primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#tf-root .tf-icon-collapsible {
  width: 14px; height: 14px; stroke: var(--tf-primary); fill: none; flex-shrink: 0;
}
#tf-root .tf-collapsible-chevron {
  width: 15px; height: 15px; stroke: var(--tf-primary); fill: none;
  transition: transform 0.2s;
  flex-shrink: 0;
}
#tf-root .tf-collapsible[open] .tf-collapsible-chevron {
  transform: rotate(180deg);
}
#tf-root .tf-collapsible-body {
  padding: 16px;
}

/* ── Traveler form card header ───────────────────────────── */
#tf-root .tf-form-header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
#tf-root .tf-form-header-icon-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(30, 106, 181, 0.08);
  margin: 0 auto;
}
#tf-root .tf-form-title-centered {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--tf-text);
  text-align: center;
  margin-bottom: 12px;
}
#tf-root .tf-divider-line {
  border: none;
  border-top: 1px solid var(--tf-border);
  margin-bottom: 16px;
}
#tf-root .tf-icon-header {
  width: 22px; height: 22px; stroke: var(--tf-primary); fill: none;
}

/* ── Info note (warning box below toggles) ───────────────── */
#tf-root .tf-info-note {
  padding: 10px 14px;
  background: #f0f6ff;
  border: 1px solid rgba(0,68,158,0.18);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--tf-text-secondary);
  line-height: 1.5;
}
#tf-root .tf-info-note strong {
  color: var(--tf-primary);
  font-weight: 700;
}
#tf-root .tf-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; font-size: 0.875rem; font-weight: 500;
  color: var(--tf-text); background: var(--tf-white);
  border: 1.5px solid var(--tf-border); border-radius: var(--tf-radius-md);
  cursor: pointer; transition: border-color 0.15s, background 0.15s;
}
#tf-root .tf-btn-secondary:hover { border-color: var(--tf-primary); color: var(--tf-primary); }

/* ── Travel-specific: Summary ──────────────────────────── */
#tf-root .tf-summary-card { max-width: 640px; margin: 0 auto; }
#tf-root .tf-summary-insurer { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
#tf-root .tf-insurer-logo { width: 100px; height: 52px; object-fit: contain; }
#tf-root .tf-summary-product-name { font-size: 1rem; font-weight: 600; color: var(--tf-heading); }
#tf-root .tf-summary-price { font-size: 1.5rem; font-weight: 700; color: var(--tf-primary); margin-top: 4px; }
#tf-root .tf-divider { border: none; border-top: 1px solid var(--tf-border); margin: 18px 0; }
#tf-root .tf-summary-docs { display: flex; flex-direction: column; gap: 10px; }
#tf-root .tf-summary-doc-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
#tf-root .tf-summary-doc-label { color: var(--tf-text-muted); }
#tf-root .tf-summary-doc-link { color: var(--tf-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; font-weight: 500; }
#tf-root .tf-summary-doc-link:hover { text-decoration: underline; }
#tf-root .tf-text-muted { color: var(--tf-text-muted); font-size: 0.875rem; }
#tf-root .tf-summary-details { display: flex; flex-direction: column; gap: 10px; }
#tf-root .tf-summary-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.875rem; }
#tf-root .tf-summary-key { color: var(--tf-text-muted); flex-shrink: 0; }
#tf-root .tf-summary-val { font-weight: 500; color: var(--tf-text); text-align: right; }
#tf-root .tf-summary-actions { display: flex; justify-content: space-between; gap: 12px; }
#tf-root .tf-icon-lg { width: 40px; height: 40px; stroke: var(--tf-text-muted); fill: none; }
#tf-root .tf-icon-xs { width: 12px; height: 12px; stroke: currentColor; fill: none; }
#tf-root .tf-icon-title { width: 20px; height: 20px; stroke: var(--tf-primary); fill: none; }
