/* =========================================================
   FINANCEMYTHBUSTERS
   EMERGENCY FUND TARGET — COMPLETE TABBED CALCULATOR
   EMAIL GATE + RESULTS-ONLY PRINT + SHAREABLE RESULT IMAGE
========================================================= */

.fmb-eft-tool,
.fmb-eft-tool * {
  box-sizing: border-box;
}

.fmb-eft-tool {
  --fmb-navy: #07182f;
  --fmb-navy-2: #102747;
  --fmb-navy-3: #182d48;
  --fmb-gold: #d4b678;
  --fmb-gold-dark: #a8823a;
  --fmb-gold-light: #ead9b4;
  --fmb-cream: #f7f4ed;
  --fmb-cream-2: #efeae0;
  --fmb-white: #ffffff;
  --fmb-text: #596677;
  --fmb-muted: #7b8795;
  --fmb-border: #ddd7ca;
  --fmb-input: #b8ae9b;
  --fmb-focus: rgba(168, 130, 58, 0.22);
  --fmb-error: #8f362f;
  --fmb-error-bg: #fff3f1;
  --fmb-success: #356047;
  --fmb-success-bg: #eff8f2;

  width: 100%;
  margin: 0;
  padding: 48px 3% 58px;
  background: var(--fmb-cream);
  color: var(--fmb-navy);
  scroll-margin-top: 135px;
}

.fmb-eft-tool button,
.fmb-eft-tool input,
.fmb-eft-tool select {
  font: inherit;
}

/* =========================================================
   ELEMENTOR RESET
   Guards against a boxed/fixed-width Elementor container
   preventing the tool from shrinking on narrow screens.
========================================================= */

/* Modern Elementor "Container" layouts (flexbox-based). */
.e-con:has(.fmb-eft-tool) {
  --content-width: 100% !important;

  width: 100% !important;
  max-width: none !important;
}

/* Legacy Elementor "Section / Column" layouts. A column with a fixed or
   flex-shrink:0 width (common with older/boxed section configurations)
   will not shrink for narrow viewports on its own, forcing the tool to
   overflow horizontally even though the tool's own CSS is fully fluid. */
.elementor-widget-html:has(.fmb-eft-tool),
.elementor-widget-shortcode:has(.fmb-eft-tool),
.elementor-shortcode:has(.fmb-eft-tool),
.elementor-widget-wrap:has(.fmb-eft-tool),
.elementor-column:has(.fmb-eft-tool),
.elementor-container:has(.fmb-eft-tool) {
  width: 100% !important;
  max-width: 100% !important;
  flex: 1 1 100% !important;
}

.fmb-eft-tool__inner {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
}

/* =========================================================
   PROGRESS
========================================================= */

.fmb-eft-progress {
  margin-bottom: 17px;
  padding: 18px 20px;
  background: var(--fmb-white);
  border: 1px solid var(--fmb-border);
  border-radius: 4px;
}

.fmb-eft-progress__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
}

.fmb-eft-progress__title,
.fmb-eft-progress__percent {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}

.fmb-eft-progress__title {
  color: var(--fmb-navy);
}

.fmb-eft-progress__percent {
  color: var(--fmb-gold-dark);
}

.fmb-eft-progress__track {
  width: 100%;
  height: 6px;
  overflow: hidden;
  background: #eee9df;
  border-radius: 20px;
}

.fmb-eft-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--fmb-gold-dark),
    var(--fmb-gold)
  );
  border-radius: inherit;
  transition: width 0.3s ease;
}

/* =========================================================
   TAB NAVIGATION
========================================================= */

.fmb-eft-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.fmb-eft-tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 78px;
  padding: 15px 17px;
  background: var(--fmb-white);
  border: 1px solid var(--fmb-border);
  border-radius: 3px;
  color: var(--fmb-navy);
  cursor: pointer;
  text-align: left;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    opacity 0.2s ease;
}

.fmb-eft-tab::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 18px;
  width: 44px;
  height: 2px;
  background: var(--fmb-gold-dark);
}

.fmb-eft-tab:hover:not(:disabled),
.fmb-eft-tab:focus-visible:not(:disabled) {
  border-color: var(--fmb-gold-dark);
  transform: translateY(-1px);
}

.fmb-eft-tab.is-active {
  background: var(--fmb-navy);
  border-color: var(--fmb-navy);
  color: var(--fmb-white);
}

.fmb-eft-tab.is-active::before {
  background: var(--fmb-gold);
}

.fmb-eft-tab:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.fmb-eft-tab__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 8px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
}

.fmb-eft-tab.is-active .fmb-eft-tab__number {
  background: var(--fmb-gold);
  border-color: var(--fmb-gold);
  color: var(--fmb-navy);
}

.fmb-eft-tab__label {
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

/* =========================================================
   PANEL
========================================================= */

.fmb-eft-panel {
  display: none;
  overflow: hidden;
  background: var(--fmb-white);
  border: 1px solid var(--fmb-border);
  border-top: 3px solid var(--fmb-gold-dark);
  border-radius: 3px;
  box-shadow: 0 12px 34px rgba(7, 24, 47, 0.05);
}

.fmb-eft-panel.is-active {
  display: block;
}

.fmb-eft-panel:focus-visible {
  outline: 3px solid var(--fmb-gold-dark);
  outline-offset: -3px;
}

.fmb-eft-panel__header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 17px;
  padding: 25px 27px;
  background:
    linear-gradient(
      110deg,
      #ffffff 0%,
      #ffffff 65%,
      #faf8f3 100%
    );
  border-bottom: 1px solid var(--fmb-border);
}

.fmb-eft-panel__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: var(--fmb-navy);
  border-radius: 50%;
  color: var(--fmb-gold);
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.fmb-eft-panel__eyebrow {
  margin: 0 0 4px;
  color: var(--fmb-gold-dark);
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fmb-eft-panel__title {
  margin: 0;
  color: var(--fmb-navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 2.8vw, 38px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.fmb-eft-panel__description {
  margin: 7px 0 0;
  color: var(--fmb-text);
  font-family: Inter, Arial, sans-serif;
  font-size: 12.5px;
  line-height: 1.6;
}

.fmb-eft-panel__pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border: 1px solid rgba(168, 130, 58, 0.5);
  border-radius: 30px;
  color: var(--fmb-gold-dark);
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fmb-eft-panel__pill::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--fmb-gold-dark);
  border-radius: 50%;
}

.fmb-eft-panel__body {
  padding: 25px 27px 27px;
}

/* =========================================================
   QUESTIONS AND INPUTS
========================================================= */

.fmb-eft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.fmb-eft-question {
  min-width: 0;
  padding: 19px;
  background: #faf8f4;
  border: 1px solid var(--fmb-border);
  border-radius: 3px;
}

.fmb-eft-question--wide {
  grid-column: 1 / -1;
}

.fmb-eft-question__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  height: 27px;
  margin-bottom: 11px;
  padding: 0 6px;
  background: var(--fmb-white);
  border: 1px solid var(--fmb-gold-dark);
  border-radius: 50%;
  color: var(--fmb-gold-dark);
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.fmb-eft-label {
  display: block;
  margin: 0 0 5px;
  color: var(--fmb-navy);
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.fmb-eft-hint {
  display: block;
  min-height: 16px;
  margin: 0 0 9px;
  color: var(--fmb-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 9.5px;
  line-height: 1.45;
}

.fmb-eft-input-wrap,
.fmb-eft-select-wrap {
  position: relative;
  width: 100%;
}

.fmb-eft-currency {
  position: absolute;
  top: 50%;
  left: 14px;
  z-index: 2;
  transform: translateY(-50%);
  color: var(--fmb-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}

.fmb-eft-input,
.fmb-eft-select {
  display: block;
  width: 100%;
  height: 46px;
  margin: 0;
  background: var(--fmb-white);
  border: 1px solid var(--fmb-input);
  border-radius: 2px;
  color: var(--fmb-navy);
  font-family: Inter, Arial, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.fmb-eft-input {
  padding: 10px 13px;
}

.fmb-eft-input--currency {
  padding-left: 30px;
}

.fmb-eft-select {
  padding: 10px 44px 10px 13px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.fmb-eft-select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--fmb-navy);
  border-bottom: 2px solid var(--fmb-navy);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.fmb-eft-input:hover,
.fmb-eft-select:hover {
  border-color: var(--fmb-gold-dark);
}

.fmb-eft-input:focus,
.fmb-eft-select:focus {
  outline: 0;
  border-color: var(--fmb-gold-dark);
  box-shadow: 0 0 0 3px var(--fmb-focus);
}

.fmb-eft-input::-webkit-inner-spin-button,
.fmb-eft-input::-webkit-outer-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

/* =========================================================
   EXPENSE GRID
========================================================= */

.fmb-eft-expenses {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}

.fmb-eft-expense {
  min-width: 0;
  padding: 15px;
  background: #faf8f4;
  border: 1px solid var(--fmb-border);
}

.fmb-eft-expense__label {
  display: block;
  margin-bottom: 3px;
  color: var(--fmb-navy);
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.fmb-eft-expense__hint {
  display: block;
  min-height: 26px;
  margin-bottom: 8px;
  color: var(--fmb-muted);
  font-family: Inter, Arial, sans-serif;
  font-size: 8.5px;
  line-height: 1.4;
}

.fmb-eft-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-top: 17px;
  padding: 18px 20px;
  background: var(--fmb-navy);
  border-left: 3px solid var(--fmb-gold);
}

.fmb-eft-total__label {
  margin: 0 0 4px;
  color: var(--fmb-gold);
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fmb-eft-total__copy {
  margin: 0;
  color: #c5cfdb;
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.5;
}

.fmb-eft-total__value {
  color: var(--fmb-white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

/* =========================================================
   VALIDATION MESSAGES
========================================================= */

.fmb-eft-message {
  display: none;
  margin-bottom: 16px;
  padding: 13px 15px;
  background: var(--fmb-error-bg);
  border: 1px solid #e3b7b2;
  border-left: 3px solid var(--fmb-error);
  color: #73312c;
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.55;
}

.fmb-eft-message.is-visible {
  display: block;
}

.fmb-eft-message--success {
  background: var(--fmb-success-bg);
  border-color: #b8d8c3;
  border-left-color: var(--fmb-success);
  color: #28503a;
}

/* =========================================================
   PANEL FOOTER
========================================================= */

.fmb-eft-panel__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 27px;
  background: #f2eee6;
  border-top: 1px solid var(--fmb-border);
}

.fmb-eft-footer-note {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0;
  color: var(--fmb-text);
  font-family: Inter, Arial, sans-serif;
  font-size: 10.5px;
  line-height: 1.55;
}

.fmb-eft-footer-note__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 29px;
  border: 1px solid var(--fmb-gold-dark);
  border-radius: 50%;
  color: var(--fmb-gold-dark);
  font-size: 10px;
  font-weight: 800;
  flex: 0 0 auto;
}

.fmb-eft-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.fmb-eft-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 43px;
  padding: 12px 18px;
  border-radius: 2px;
  cursor: pointer;
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.025em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.fmb-eft-button--outline {
  background: transparent;
  border: 1px solid var(--fmb-navy);
  color: var(--fmb-navy);
}

.fmb-eft-button--navy {
  background: var(--fmb-navy);
  border: 1px solid var(--fmb-navy);
  color: var(--fmb-white);
}

.fmb-eft-button--gold {
  background: var(--fmb-gold);
  border: 1px solid var(--fmb-gold);
  color: var(--fmb-navy);
}

.fmb-eft-button:hover,
.fmb-eft-button:focus-visible {
  transform: translateY(-1px);
}

.fmb-eft-button--outline:hover,
.fmb-eft-button--outline:focus-visible {
  background: var(--fmb-navy);
  color: var(--fmb-white);
}

.fmb-eft-button--navy:hover,
.fmb-eft-button--navy:focus-visible {
  background: var(--fmb-gold);
  border-color: var(--fmb-gold);
  color: var(--fmb-navy);
}

.fmb-eft-button--gold:hover,
.fmb-eft-button--gold:focus-visible {
  background: var(--fmb-navy);
  border-color: var(--fmb-navy);
  color: var(--fmb-white);
}

.fmb-eft-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.fmb-eft-button:focus-visible {
  outline: 3px solid var(--fmb-focus);
  outline-offset: 3px;
}

/* =========================================================
   EMAIL GATE
========================================================= */

.fmb-eft-gate {
  position: relative;
  overflow: hidden;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--fmb-navy);
  border: 1px solid rgba(212, 182, 120, 0.38);
  box-shadow: 0 24px 55px rgba(7, 24, 47, 0.16);
}

.fmb-eft-gate::before {
  content: "";
  position: absolute;
  top: -220px;
  right: -170px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(212, 182, 120, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.fmb-eft-gate__inner {
  position: relative;
  z-index: 2;
  display: grid;
  /*
   * The Beehiiv embed inside .fmb-eft-gate__form-wrap has no
   * responsive fallback of its own: below ~390-420px of iframe width
   * its email input gets squeezed to unusable size while its submit
   * button still doesn't fit its own label, causing visible overlap.
   * minmax(480px, 1.2fr) guarantees the form column (before its own
   * padding) never drops below a width that keeps that comfortably
   * clear, verified directly against Beehiiv's own form at a range
   * of widths. Only takes effect at >=1025px — see the responsive
   * section below, where this two-column layout is replaced with a
   * single stacked column at narrower widths instead of trying to
   * keep both columns side by side with less room to work with.
   */
  grid-template-columns: minmax(0, 0.8fr) minmax(480px, 1.2fr);
}

.fmb-eft-gate__content {
  padding: 38px 34px;
}

.fmb-eft-gate__eyebrow {
  margin: 0 0 12px;
  color: var(--fmb-gold);
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fmb-eft-gate__title {
  margin: 0;
  color: var(--fmb-white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(31px, 3.2vw, 44px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.fmb-eft-gate__copy {
  margin: 16px 0 0;
  color: #c5cfdb;
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.7;
}

.fmb-eft-gate__list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.fmb-eft-gate__list li {
  position: relative;
  padding: 9px 0 9px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: #d4dce5;
  font-family: Inter, Arial, sans-serif;
  font-size: 11.5px;
  line-height: 1.5;
}

.fmb-eft-gate__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--fmb-gold);
  font-weight: 800;
}

.fmb-eft-gate__form-wrap {
  display: flex;
  align-items: center;
  padding: 32px;
  background: #10243d;
  border-left: 1px solid rgba(212, 182, 120, 0.2);
}

.fmb-eft-gate__form {
  width: 100%;
}

.fmb-eft-gate__form-title {
  margin: 0 0 17px;
  color: var(--fmb-white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
}

.fmb-eft-gate__label {
  display: block;
  margin-bottom: 7px;
  color: var(--fmb-gold-light);
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fmb-eft-gate__input {
  display: block;
  width: 100%;
  height: 49px;
  padding: 11px 13px;
  background: var(--fmb-white);
  border: 1px solid #d7d0c3;
  border-radius: 2px;
  color: var(--fmb-navy);
  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
}

.fmb-eft-gate__input:focus {
  outline: 0;
  border-color: var(--fmb-gold);
  box-shadow: 0 0 0 3px rgba(212, 182, 120, 0.24);
}

.fmb-eft-gate__consent {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 9px;
  align-items: start;
  margin: 14px 0 17px;
  color: #bdc8d5;
  font-family: Inter, Arial, sans-serif;
  font-size: 9.5px;
  line-height: 1.5;
}

.fmb-eft-gate__consent input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: var(--fmb-gold-dark);
}

.fmb-eft-gate__consent a {
  color: var(--fmb-gold-light);
  text-decoration: underline;
}

.fmb-eft-gate__submit {
  width: 100%;
  min-height: 49px;
}

.fmb-eft-gate__privacy {
  margin: 12px 0 0;
  color: #92a2b5;
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  line-height: 1.5;
  text-align: center;
}

.fmb-eft-gate__preview {
  display: none;
  margin-top: 12px;
  padding: 10px;
  background: rgba(212, 182, 120, 0.1);
  border: 1px solid rgba(212, 182, 120, 0.24);
  color: var(--fmb-gold-light);
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  line-height: 1.5;
}

.fmb-eft-tool[data-email-preview="true"]
.fmb-eft-gate__preview {
  display: block;
}

/* =========================================================
   RESULTS
========================================================= */

.fmb-eft-results[hidden] {
  display: none !important;
}

.fmb-eft-results__hero {
  position: relative;
  overflow: hidden;
  padding: 27px;
  background:
    radial-gradient(
      circle at 90% 5%,
      rgba(212, 182, 120, 0.13),
      transparent 30%
    ),
    var(--fmb-navy);
  color: var(--fmb-white);
}

.fmb-eft-results__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

.fmb-eft-results__monogram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--fmb-gold);
  color: var(--fmb-gold);
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.fmb-eft-results__brand-name {
  margin: 0;
  color: var(--fmb-white);
  font-family: Georgia, serif;
  font-size: 15px;
  font-weight: 700;
}

.fmb-eft-results__brand-url {
  display: block;
  margin-top: 2px;
  color: #9faec0;
  font-family: Inter, Arial, sans-serif;
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fmb-eft-results__eyebrow {
  margin: 0 0 7px;
  color: var(--fmb-gold);
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.fmb-eft-results__title {
  margin: 0;
  color: var(--fmb-white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(29px, 3vw, 42px);
  font-weight: 800;
  line-height: 1.1;
}

.fmb-eft-results__range {
  margin: 21px 0 5px;
  color: var(--fmb-gold);
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(40px, 5vw, 63px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.fmb-eft-results__range-label {
  margin: 0;
  color: #aebaca;
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.fmb-eft-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 21px;
  background: rgba(255, 255, 255, 0.09);
}

.fmb-eft-metric {
  min-width: 0;
  padding: 16px;
  background: var(--fmb-navy-2);
}

.fmb-eft-metric__label {
  display: block;
  margin-bottom: 5px;
  color: #9fb0c4;
  font-family: Inter, Arial, sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.fmb-eft-metric__value {
  margin: 0;
  color: var(--fmb-white);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.fmb-eft-result-progress {
  margin-top: 18px;
}

.fmb-eft-result-progress__top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 7px;
  color: #cbd4df;
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
}

.fmb-eft-result-progress__track {
  width: 100%;
  height: 7px;
  overflow: hidden;
  background: #293b50;
  border-radius: 20px;
}

.fmb-eft-result-progress__fill {
  display: block;
  width: 0;
  height: 100%;
  background: var(--fmb-gold);
  border-radius: inherit;
  transition: width 0.4s ease;
}

.fmb-eft-result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.fmb-eft-result-card {
  min-width: 0;
  padding: 19px;
  background: #faf8f4;
  border: 1px solid var(--fmb-border);
}

.fmb-eft-result-card--wide {
  grid-column: 1 / -1;
}

.fmb-eft-result-card__label {
  margin: 0 0 8px;
  color: var(--fmb-gold-dark);
  font-family: Inter, Arial, sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.fmb-eft-result-card__title {
  margin: 0 0 9px;
  color: var(--fmb-navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.fmb-eft-result-card__copy {
  margin: 0;
  color: var(--fmb-text);
  font-family: Inter, Arial, sans-serif;
  font-size: 11.5px;
  line-height: 1.65;
}

.fmb-eft-result-card__copy strong {
  color: var(--fmb-navy);
}

.fmb-eft-reasons {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fmb-eft-reasons li {
  position: relative;
  padding: 9px 0 9px 20px;
  border-bottom: 1px solid var(--fmb-border);
  color: var(--fmb-text);
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  line-height: 1.55;
}

.fmb-eft-reasons li:last-child {
  border-bottom: 0;
}

.fmb-eft-reasons li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--fmb-gold-dark);
  font-weight: 800;
}

/* =========================================================
   RESULT ACTION AREA
========================================================= */

.fmb-eft-result-actions {
  margin-top: 18px;
  padding: 20px;
  background: var(--fmb-cream-2);
  border: 1px solid var(--fmb-border);
}

.fmb-eft-result-actions__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}

.fmb-eft-result-actions__title {
  margin: 0 0 5px;
  color: var(--fmb-navy);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 800;
}

.fmb-eft-result-actions__copy {
  max-width: 690px;
  margin: 0;
  color: var(--fmb-text);
  font-family: Inter, Arial, sans-serif;
  font-size: 10.5px;
  line-height: 1.55;
}

.fmb-eft-share-privacy {
  display: grid;
  grid-template-columns: 17px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 220px;
  color: var(--fmb-text);
  font-family: Inter, Arial, sans-serif;
  font-size: 9.5px;
  line-height: 1.45;
}

.fmb-eft-share-privacy input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--fmb-gold-dark);
}

.fmb-eft-result-actions__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.fmb-eft-share-status {
  display: none;
  margin: 13px 0 0;
  padding: 10px 12px;
  background: var(--fmb-success-bg);
  border-left: 3px solid var(--fmb-success);
  color: #28503a;
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.5;
}

.fmb-eft-share-status.is-visible {
  display: block;
}

/* =========================================================
   DISCLAIMER
========================================================= */

.fmb-eft-disclaimer {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: start;
  gap: 11px;
  margin-top: 16px;
  padding: 15px 17px;
  background: #f1ede5;
  border-left: 2px solid var(--fmb-gold);
}

.fmb-eft-disclaimer__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  background: var(--fmb-white);
  border: 1px solid var(--fmb-border);
  border-radius: 50%;
  color: var(--fmb-gold-dark);
  font-size: 11px;
  font-weight: 800;
}

.fmb-eft-disclaimer__copy {
  margin: 0;
  color: var(--fmb-text);
  font-family: Inter, Arial, sans-serif;
  font-size: 10px;
  line-height: 1.6;
}

.fmb-eft-disclaimer__copy strong {
  color: var(--fmb-navy);
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1024px) {
  .fmb-eft-expenses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fmb-eft-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /*
   * Stack to a single column instead of trying to keep the gate's
   * two-column layout at this width — there isn't reliably enough
   * room left for the form column to stay clear of the Beehiiv
   * embed's ~420px overlap threshold once the content column also
   * needs its share of the space. Stacked, the form gets the full
   * width of the card instead, which is comfortably wide at any
   * viewport in this range.
   */
  .fmb-eft-gate__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .fmb-eft-gate__form-wrap {
    border-top: 1px solid rgba(212, 182, 120, 0.2);
    border-left: 0;
  }
}

@media (max-width: 900px) {
  .fmb-eft-panel__header {
    grid-template-columns: 50px minmax(0, 1fr);
  }

  .fmb-eft-panel__pill {
    grid-column: 2;
    width: fit-content;
  }
}

@media (max-width: 767px) {
  .fmb-eft-tool {
    padding: 38px 5% 44px;
    scroll-margin-top: 95px;
  }

  .fmb-eft-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .fmb-eft-tab {
    min-width: 0;
    min-height: 66px;
    padding: 12px 13px;
  }

  .fmb-eft-panel__header {
    grid-template-columns: 45px minmax(0, 1fr);
    gap: 13px;
    padding: 21px;
  }

  .fmb-eft-panel__number {
    width: 43px;
    height: 43px;
  }

  .fmb-eft-panel__pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .fmb-eft-panel__body {
    padding: 20px;
  }

  .fmb-eft-grid,
  .fmb-eft-expenses,
  .fmb-eft-result-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .fmb-eft-question--wide,
  .fmb-eft-result-card--wide {
    grid-column: auto;
  }

  .fmb-eft-panel__footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding: 17px 20px;
  }

  .fmb-eft-actions {
    justify-content: stretch;
  }

  .fmb-eft-button {
    flex: 1;
    min-width: 0;
  }

  .fmb-eft-total {
    grid-template-columns: minmax(0, 1fr);
  }

  .fmb-eft-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .fmb-eft-gate__inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .fmb-eft-gate__content {
    padding: 30px 25px;
  }

  .fmb-eft-gate__form-wrap {
    padding: 25px;
    border-top: 1px solid rgba(212, 182, 120, 0.2);
    border-left: 0;
  }

  .fmb-eft-result-actions__top {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fmb-eft-share-privacy {
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .fmb-eft-actions,
  .fmb-eft-result-actions__buttons {
    display: grid;
    grid-template-columns: 1fr;
  }

  .fmb-eft-button {
    width: 100%;
  }

  .fmb-eft-progress__top {
    align-items: flex-start;
  }

  .fmb-eft-expense__hint {
    min-height: 0;
  }

  .fmb-eft-hint {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fmb-eft-tool *,
  .fmb-eft-tool *::before,
  .fmb-eft-tool *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
/* =========================================================
   BEEHIIV EMAIL GATE
   Added for Emergency Fund Calculator v2.1.0
========================================================= */

/* Beehiiv form card */
.fmb-eft-beehiiv-form {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Small introduction above the embedded form */
.fmb-eft-gate__form-intro {
  margin: 0 0 18px;
  color: #5f6878;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}

/* Beehiiv embed container */
.fmb-eft-beehiiv-embed {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 190px;
  margin: 0;
  overflow: visible;
  border-radius: 10px;
}

/*
 * Beehiiv loads the subscribe form inside an iframe.
 * The contents of the iframe are styled inside Beehiiv,
 * but its size can be controlled here.
 */
.fmb-eft-beehiiv-embed iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 190px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 10px !important;
  background: transparent !important;
}

/* Message shown underneath the Beehiiv form */
.fmb-eft-beehiiv-help {
  margin: 14px 0 0;
  color: #697386;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

/* Privacy notice underneath the form */
.fmb-eft-beehiiv-form .fmb-eft-gate__privacy {
  margin: 12px 0 0;
  color: #727b8b;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

/*
 * Hidden compatibility fields.
 * These IDs remain in the PHP so the older calculator.js
 * does not produce missing-element errors.
 */
.fmb-eft-legacy-email-compat {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Reliably hide the gate or results when the hidden attribute is active */
.fmb-eft-gate[hidden],
.fmb-eft-results[hidden] {
  display: none !important;
}

/* Prevent the Beehiiv form from overflowing its card */
.fmb-eft-gate__form-wrap,
.fmb-eft-gate__form,
.fmb-eft-beehiiv-embed {
  min-width: 0;
}

/* Loading area displayed before the Beehiiv iframe finishes loading */
.fmb-eft-beehiiv-embed:empty {
  min-height: 190px;
  border: 1px solid rgba(16, 25, 44, 0.1);
  background:
    linear-gradient(
      90deg,
      rgba(16, 25, 44, 0.035) 25%,
      rgba(16, 25, 44, 0.065) 50%,
      rgba(16, 25, 44, 0.035) 75%
    );
  background-size: 200% 100%;
  animation: fmb-eft-beehiiv-loading 1.5s infinite;
}

@keyframes fmb-eft-beehiiv-loading {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* =========================================================
   EMAIL GATE RESPONSIVE ADJUSTMENTS
========================================================= */

@media (max-width: 900px) {
  .fmb-eft-beehiiv-embed,
  .fmb-eft-beehiiv-embed iframe {
    min-height: 210px !important;
  }
}

@media (max-width: 640px) {
  .fmb-eft-gate__form-intro {
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.6;
  }

  .fmb-eft-beehiiv-embed,
  .fmb-eft-beehiiv-embed iframe {
    min-height: 230px !important;
  }

  .fmb-eft-beehiiv-help,
  .fmb-eft-beehiiv-form .fmb-eft-gate__privacy {
    font-size: 11px;
    line-height: 1.5;
  }
}
