/*
 * Pricing calculator on /pricing (replaces the app.donorfuse.com/auth/pricing iframe).
 * Visual values were measured from the app's own pricing component so it looks the same.
 * Everything is scoped under .dfp so it can't affect the rest of the Webflow styles.
 */
@font-face {
  font-family: "Work Sans";
  src: url(/assets/fonts/WorkSans-latin.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

.dfp {
  --dfp-dark: #32413c;
  --dfp-gold: #a08e3c;
  --dfp-green: #669384;
  --dfp-muted: #697370;
  --dfp-blue: #0d6efd;
  --dfp-line: #d5dbda;
  font-family: "Work Sans", Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.57;
  color: rgba(0, 0, 0, 0.85);
  background: #fff;
  border: 1px solid var(--dfp-line);
  border-radius: 20px;
  padding: 40px;
  width: 100%;
  max-width: 1200px;
  margin: 12px auto 40px;
  text-align: left;
}
.dfp *, .dfp *::before, .dfp *::after { box-sizing: border-box; }
.dfp h2, .dfp h3, .dfp h4, .dfp p, .dfp ul { margin: 0; padding: 0; }
.dfp button { font-family: inherit; }

/* Monthly / yearly toggle */
.dfp-billing { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dfp-toggle { display: flex; gap: 8px; width: 231px; background: #f6f3e2; border-radius: 100px; padding: 4px; }
.dfp-toggle button {
  flex: 1 1 0; white-space: nowrap; border: 0; background: transparent; color: #2d413d;
  font-size: 14px; font-weight: 500; line-height: 20px;
  padding: 8px 10px; border-radius: 1000px; cursor: pointer;
}
.dfp-toggle button[aria-pressed="true"] { background: var(--dfp-dark); color: #fff; }
.dfp-toggle button:focus-visible, .dfp-btn:focus-visible { outline: 2px solid var(--dfp-gold); outline-offset: 2px; }
.dfp-more:focus { outline: none; }
.dfp-more:focus-visible { outline: 2px solid var(--dfp-gold); outline-offset: -4px; border-radius: 12px; }
.dfp-save { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; font-style: italic; }
.dfp-save-yearly { color: #2d413d; }
.dfp-save-pct { color: var(--dfp-gold); }

/* Numbers box */
.dfp-numbers {
  margin-top: 56px; padding: 40px; border-radius: 12px;
  background: #fcfcf8; border: 1px solid #d5dbda;
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
}
.dfp-numbers h2 {
  max-width: 383px; margin-right: auto;
  font-size: 32px; line-height: 40px; font-weight: 600; letter-spacing: -0.32px; color: var(--dfp-dark);
}
.dfp-inputs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: 444px; max-width: 100%; }
.dfp-field label { display: block; margin-bottom: 8px; font-size: 16px; line-height: 20px; font-weight: 600; color: var(--dfp-muted); }
.dfp-field input {
  display: block; width: 100%; height: 52px; margin: 0;
  padding: 14px 12px; border: 1px solid #d5dbda; border-radius: 8px; background: #fff;
  font: 500 16px/24px "Work Sans", Roboto, Arial, sans-serif; color: #2d413d;
}
.dfp-field input::placeholder { color: #c6cbca; opacity: 1; }
.dfp-field input:focus { outline: none; border-color: var(--dfp-green); box-shadow: 0 0 0 2px rgba(102, 147, 132, 0.2); }
/* No up/down spinner arrows on the number boxes */
.dfp-field input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
.dfp-field input[type="number"]::-webkit-outer-spin-button,
.dfp-field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
/* Tooltip on "Active Donors/month" (same look as the app's tooltip) */
.dfp-has-tip { position: relative; }
.dfp-has-tip label { cursor: help; }
.dfp-tip {
  position: absolute; left: 50%; bottom: 100%; transform: translate(-50%, -6px);
  z-index: 10; width: max-content; max-width: 250px;
  padding: 6px 8px; border-radius: 6px; background: rgba(0, 0, 0, 0.75); color: #fff;
  font-size: 14px; line-height: 22px; font-weight: 400; text-align: left;
  box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.1s, visibility 0.1s;
}
.dfp-tip::after {
  content: ""; position: absolute; top: 100%; left: 50%; margin-left: -5px;
  border: 5px solid transparent; border-top-color: rgba(0, 0, 0, 0.75);
}
.dfp-has-tip label:hover ~ .dfp-tip, .dfp-has-tip input:focus ~ .dfp-tip { opacity: 1; visibility: visible; }

/* Product cards */
.dfp .dfp-choose { margin: 64px 0 32px; font-size: 20px; line-height: 20px; font-weight: 500; color: var(--dfp-muted); }
.dfp-products { display: flex; flex-wrap: wrap; gap: 32px; justify-content: center; align-items: flex-start; }
.dfp-card { flex: 1 1 280px; max-width: 350px; border-radius: 20px; padding: 4px; }
.dfp-card[data-product="1"] { background: var(--dfp-gold); }
.dfp-card[data-product="2"] { background: #dbe5e2; }
.dfp-card[data-product="2"].is-selected { background: var(--dfp-green); }
.dfp-card[data-product="3"] { background: #dee9f5; }
.dfp-card-body { background: #fff; border-radius: 16px; padding: 24px; }
.dfp-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.dfp-card h3 { font-size: 20px; line-height: 24px; font-weight: 600; color: var(--dfp-dark); }
.dfp-badge { border-radius: 100px; padding: 4px 16px; font-size: 14px; line-height: 20px; font-weight: 600; }
.dfp-badge-required { background: rgba(102, 147, 132, 0.1); color: var(--dfp-green); }
.dfp-badge-soon { background: rgba(177, 95, 95, 0.1); color: #b15f5f; }
.dfp .dfp-desc { min-height: 60px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--dfp-muted); }
.dfp .dfp-price { display: flex; align-items: baseline; margin: 24px 0 20px; color: var(--dfp-dark); font-weight: 600; }
.dfp-price-cur { font-size: 32px; line-height: 1; }
.dfp-price-num { font-size: 48px; line-height: 56px; }
.dfp-price-per { margin-left: 2px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--dfp-muted); }
.dfp-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; padding: 12px 24px;
  border-radius: 8px; border: 1px solid var(--dfp-dark); background: transparent; color: var(--dfp-dark);
  font-size: 16px; line-height: 24px; font-weight: 600; cursor: pointer;
}
.dfp-btn svg { display: none; flex: none; }
.dfp-btn[aria-pressed="true"] { background: var(--dfp-dark); color: #fff; border-color: transparent; }
.dfp-btn[aria-pressed="true"] svg { display: block; }
.dfp-btn:disabled { cursor: not-allowed; color: rgba(0, 0, 0, 0.45); border-color: rgba(0, 0, 0, 0.25); }
.dfp-card[data-product="1"] .dfp-btn { cursor: default; }

/* "More Features" */
.dfp-more {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  border: 0; background: transparent; padding: 16px 24px; cursor: pointer; text-align: left;
  font-size: 14px; line-height: 20px; font-weight: 600; color: #2d413d;
}
.dfp-more-icon { display: flex; width: 24px; height: 24px; border-radius: 75px; background: #fff; align-items: center; justify-content: center; }
.dfp-more-icon svg { width: 15px; height: 15px; }
.dfp-more-icon svg { transition: transform 0.2s; }
.dfp.is-expanded .dfp-more-icon svg, .dfp-card.is-expanded .dfp-more-icon svg { transform: rotate(180deg); }
.dfp .dfp-features { display: none; list-style: none; padding: 16px 24px 24px; }
.dfp.is-expanded .dfp-features, .dfp-card.is-expanded .dfp-features { display: flex; flex-direction: column; gap: 8px; }
.dfp.is-expanded .dfp-more, .dfp-card.is-expanded .dfp-more { padding: 24px 24px 0; font-size: 16px; }
.dfp .dfp-features li { display: flex; align-items: center; gap: 12px; margin: 0; padding: 0; font-size: 16px; line-height: 24px; font-weight: 500; color: #2d413d; }
.dfp-features li::before {
  content: ""; flex: none; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle cx='10' cy='10' r='8' fill='%2332413C'/%3E%3Cpath d='M6.66797 9.83335L9.16797 12.0834L13.3346 7.91669' stroke='white' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}
/* Selected (gold/green) cards: white text and light-gold checks */
.dfp-card.is-selected .dfp-more, .dfp-card.is-selected .dfp-features li { color: #fff; }
.dfp-card.is-selected .dfp-features li::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Ccircle opacity='0.23' cx='10' cy='10' r='8' fill='white'/%3E%3Cpath d='M6.66797 9.83335L9.16797 12.0834L13.3346 7.91669' stroke='white' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* Summary */
.dfp-summary {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--dfp-line);
  font-size: 20px; line-height: 32px; font-weight: 500; color: #2d413d;
}
.dfp-plan strong { font-size: 24px; font-weight: 600; }
.dfp-total { font-size: 24px; font-weight: 600; color: #2d413d; }
.dfp-total strong { margin-left: 12px; font-weight: 600; }
.dfp .dfp-note { margin-top: 8px; font-size: 12px; color: var(--dfp-muted); }
.dfp-note:empty { display: none; }

@media screen and (max-width: 767px) {
  .dfp { padding: 20px; }
  /* switch: full width, equal halves, 40px tall; note centred */
  .dfp-billing { align-items: stretch; gap: 8px; }
  .dfp-toggle { width: 100%; max-width: 100%; }
  .dfp-toggle button { padding: 10px 12px; }
  .dfp-save { justify-content: center; }
  /* numbers box */
  .dfp-numbers { margin-top: 24px; padding: 16px 12px; gap: 16px; flex-direction: column; align-items: stretch; }
  .dfp-numbers h2 { font-size: 16px; line-height: 20px; max-width: none; margin-right: 0; }
  .dfp-inputs { grid-template-columns: 1fr; gap: 16px; width: 100%; }
  .dfp-field label { font-size: 14px; margin-bottom: 4px; }
  /* line above the cards + cards */
  .dfp .dfp-choose { margin: 24px 0 32px; font-size: 16px; line-height: 20px; }
  .dfp-products { gap: 20px; }
  .dfp-card { max-width: none; }
  .dfp-card-body { padding: 20px; }
  .dfp-card-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dfp .dfp-desc { min-height: 0; }
  .dfp-more { padding: 16px 20px; }
  .dfp.is-expanded .dfp-more, .dfp-card.is-expanded .dfp-more { padding: 16px 20px 0; }
  .dfp .dfp-features { padding: 16px 20px; }
  .dfp .dfp-features li { font-size: 14px; line-height: 20px; }
  /* summary: tier on its own line, plan below; total row edge to edge */
  .dfp-summary { flex-direction: column; align-items: stretch; gap: 8px; margin-top: 24px; padding-top: 20px; }
  .dfp-plan { display: flex; flex-direction: column; font-size: 14px; line-height: 32px; font-weight: 500; }
  .dfp-plan strong { font-size: 16px; }
  .dfp-total { display: flex; justify-content: space-between; align-items: center; font-size: 20px; line-height: 32px; }
  .dfp-total strong { margin-left: 12px; }
}
