/* ==========================================================================
   Homes of Hope — Pricing page components
   Written so it works both in Elementor (where Atomic blocks read the --blk-* /
   --txt-m variables through the ywam-block / ywam-text global classes) and in a
   plain HTML preview (where the direct properties apply).
   ========================================================================== */

/* "Example content" notice */
.notice {
  --blk-display: flex;
  --blk-pad: 14px 20px;
  display: flex;
  padding: 14px 20px;
  align-items: center;
  gap: 12px;
  border: 2px dashed var(--orange);
  border-radius: var(--r-md);
  background: rgb(255 111 0 / 0.08);
  font-size: 0.95rem;
}
.notice-label {
  flex-shrink: 0;
  padding: 4px 10px;
  border-radius: var(--pill);
  background: var(--orange);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.notice-text { color: var(--ink); }

.tag-example {
  display: inline-block;
  width: fit-content;
  padding: 3px 9px;
  border: 1.5px dashed var(--mahogany);
  border-radius: var(--pill);
  color: var(--mahogany);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Prose block (guarantee) */
.prose { --blk-display: flex; --blk-dir: column; display: flex; flex-direction: column; gap: 16px; max-width: 70ch; }
.prose p { color: var(--muted); }
.prose .lead { color: var(--ink); }

/* ---------- House cost ---------- */
.house-grid {
  --blk-display: grid;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  align-items: stretch;
}

.price-feature {
  --blk-display: flex;
  --blk-dir: column;
  --blk-pad: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 48px);
  gap: 14px;
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--sand);
}
.price-feature .tag-example { border-color: var(--orange); color: var(--orange); }
.price-feature-size { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.price-big {
  font-family: var(--font-display), sans-serif;
  font-weight: 800;
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
}
.price-feature-note { color: rgb(245 239 228 / 0.8); max-width: 46ch; }
.price-feature .chips { --blk-m: 6px 0 0; margin-top: 6px; }
.price-feature .chips .chip { background: rgb(245 239 228 / 0.1); border-color: rgb(245 239 228 / 0.2); color: var(--sand); }

.addons {
  --blk-display: flex;
  --blk-dir: column;
  --blk-pad: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 40px);
  gap: 4px;
  border-radius: var(--r-lg);
  background: var(--paper);
}
.addons h3 { --txt-m: 0 0 12px; margin: 0 0 12px; }
.addon {
  --blk-display: grid;
  --blk-pad: 16px 0;
  display: grid;
  padding: 16px 0;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 16px;
  border-top: 1px solid var(--line);
}
.addon-name { font-weight: 700; }
.addon-note { grid-column: 1; font-size: 0.9rem; color: var(--muted); }
.addon-price { grid-column: 2; grid-row: 1; font-family: var(--font-display), sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; white-space: nowrap; }

/* ---------- Trip packages ---------- */
.plans {
  --blk-display: grid;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
}

.plan {
  --blk-display: flex;
  --blk-dir: column;
  --blk-pad: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  gap: 18px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line);
}
.plan--deluxe { background: var(--navy); color: var(--sand); }
.plan-head { --blk-display: flex; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.plan h3 { font-size: clamp(1.6rem, 1rem + 1.4vw, 2.2rem); }

.plan-prices { --blk-display: grid; display: grid; gap: 0; border-top: 1px solid var(--line); }
.plan--deluxe .plan-prices { border-top-color: rgb(245 239 228 / 0.18); }
.plan-price {
  --blk-display: grid;
  --blk-pad: 12px 0;
  display: grid;
  padding: 12px 0;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.plan--deluxe .plan-price { border-bottom-color: rgb(245 239 228 / 0.18); }
.plan-price-label { font-size: 0.95rem; }
.plan-price-value { font-family: var(--font-display), sans-serif; font-weight: 800; font-size: 1.6rem; letter-spacing: -0.03em; white-space: nowrap; }
.plan-price:first-child .plan-price-value { font-size: clamp(2.2rem, 1.6rem + 1.4vw, 2.9rem); color: var(--mahogany); }
.plan--deluxe .plan-price:first-child .plan-price-value { color: var(--orange); }

.feature-group { --blk-display: flex; --blk-dir: column; display: flex; flex-direction: column; gap: 8px; }
.feature-group-title { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--firebrick); }
.plan--deluxe .feature-group-title { color: var(--orange); }

.feature {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
  line-height: 1.4;
}
.feature::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--jungle) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23F5EFE4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.plan--deluxe .feature::before { background-color: var(--orange); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%230B1E2D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.feature--no { color: var(--muted); text-decoration: line-through; text-decoration-color: rgb(75 86 97 / 0.4); }
.feature--no::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.plan--deluxe .feature--no { color: rgb(245 239 228 / 0.55); text-decoration-color: rgb(245 239 228 / 0.35); }
.plan--deluxe .feature--no::before { background: transparent; box-shadow: inset 0 0 0 1.5px rgb(245 239 228 / 0.3); }

.plan .button { margin-top: auto; align-self: flex-start; }
.plans-note { --txt-m: 20px 0 0; margin-top: 20px; font-size: 0.9rem; color: var(--muted); }

@media (max-width: 1000px) {
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .house-grid { grid-template-columns: 1fr; }
}

/* ---------- Steps ---------- */
.steps { --blk-display: grid; display: grid; gap: 0; counter-reset: step; }

.step {
  --blk-display: grid;
  --blk-pad: clamp(24px, 3vw, 36px) 0;
  display: grid;
  padding: clamp(24px, 3vw, 36px) 0;
  grid-template-columns: clamp(64px, 9vw, 120px) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 12px clamp(20px, 3vw, 48px);
  align-items: start;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { font-family: var(--font-display), sans-serif; font-weight: 800; font-size: clamp(2.4rem, 1.5rem + 2.5vw, 4rem); line-height: 0.9; letter-spacing: -0.05em; color: var(--orange); }
.step-title { --blk-display: flex; --blk-dir: column; display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); line-height: 1.05; }
.step-body { --blk-display: flex; --blk-dir: column; display: flex; flex-direction: column; gap: 10px; color: var(--muted); }
.step-body p { color: var(--muted); }
.chip--payment { background: var(--orange); color: var(--ink); border: 0; align-self: flex-start; }

@media (max-width: 860px) {
  .step { grid-template-columns: 56px minmax(0, 1fr); }
  .step-body { grid-column: 2; }
}

/* ---------- Calculator ([ywam_hoh_calculator]) ---------- */
.hoh-calc {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(20px, 2.5vw, 32px);
  align-items: start;
}

.calc-inputs { display: grid; gap: 14px; }

.calc-card {
  display: grid;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.calc-card h3 { margin: 0; font-size: 0.8rem; font-family: var(--font-body), sans-serif; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--firebrick); }
.calc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 14px; }

.field { display: grid; gap: 6px; align-content: start; }
.hoh-calc [hidden], .hoh-form [hidden] { display: none !important; }
.field > span, .field legend { font-weight: 700; font-size: 0.95rem; }
.field small { color: var(--muted); font-size: 0.82rem; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }

.field input[type="number"], .field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="date"], .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgb(255 111 0 / 0.35); }

/* Segmented choice buttons (radio) */
.segmented { display: flex; flex-wrap: wrap; gap: 8px; }
.segmented label { position: relative; }
.segmented input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.segmented span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--pill);
  background: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.segmented input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--sand); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 3px rgb(255 111 0 / 0.5); }

/* Summary card */
.calc-summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 18px;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--r-lg);
  background: var(--ink);
  color: var(--sand);
}
.calc-summary h3 { margin: 0; font-size: 0.8rem; font-family: var(--font-body), sans-serif; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); }
.calc-line { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding-bottom: 14px; border-bottom: 1px solid rgb(245 239 228 / 0.15); }
.calc-line-label { color: rgb(245 239 228 / 0.8); }
.calc-line-value { font-family: var(--font-display), sans-serif; font-weight: 800; font-size: 1.5rem; letter-spacing: -0.03em; }
.calc-line-per { grid-column: 1 / -1; font-size: 0.85rem; color: rgb(245 239 228 / 0.65); }
.calc-total .calc-line-value { font-size: clamp(2.2rem, 1.6rem + 1.6vw, 3rem); color: var(--orange); }
.calc-total { border-bottom: 0; padding-bottom: 0; }
.calc-toggle { display: flex; align-items: center; gap: 10px; font-size: 0.92rem; cursor: pointer; }
.calc-toggle input { width: 20px; height: 20px; accent-color: var(--orange); }
.calc-fine { font-size: 0.8rem; color: rgb(245 239 228 / 0.65); }
.calc-summary .button { justify-self: start; }

@media (max-width: 900px) {
  .hoh-calc { grid-template-columns: 1fr; }
  .calc-summary { position: static; }
}

/* ---------- Inquiry form ([ywam_hoh_inquiry]) ---------- */
.hoh-form {
  display: grid;
  gap: 16px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--r-lg);
  background: var(--paper);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.field .req { color: var(--firebrick); }
.form-preview-note {
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--sand);
  font-size: 0.88rem;
  color: var(--muted);
}
.hoh-form .button[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }
.inquiry-contact { --blk-display: flex; --blk-dir: column; display: flex; flex-direction: column; gap: 6px; }
.inquiry-contact p { font-size: 1.05rem; }

/* Calculator v2: add-on checkboxes, price hints on choices, housing note */
.segmented .seg-extra { margin-left: 6px; font-weight: 500; font-size: 0.8rem; opacity: 0.75; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px 0 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--pill);
  background: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--orange); }
.check small { font-weight: 500; color: var(--muted); }
.check:has(input:checked) { border-color: var(--ink); background: var(--sand); }
.check:has(input:focus-visible) { box-shadow: 0 0 0 3px rgb(255 111 0 / 0.5); }
.calc-note {
  margin: 0;
  padding: 10px 14px;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--sand);
  font-size: 0.9rem;
  color: var(--ink);
}

/* Packages v2 (client PDF): who it's for, housing note, "Before you come" */
.plan-for { --txt-m: -4px 0 0; margin-top: -4px; color: var(--muted); font-size: 0.95rem; line-height: 1.45; }
.plan--deluxe .plan-for { color: rgb(245 239 228 / 0.8); }
.plan-note {
  --txt-m: 0;
  padding: 12px 14px;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--sand);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--ink);
}
.plan-note strong { font-weight: 700; }
.plan--deluxe .plan-note { background: rgb(245 239 228 / 0.1); color: var(--sand); }
.plan-prices .plan-price:only-child { border-bottom: 0; padding-bottom: 0; }

.before-block { --blk-m: clamp(56px, 7vw, 96px) 0 0; margin-top: clamp(56px, 7vw, 96px); }
.before-eyebrow { --txt-m: 0 0 16px; }
.before-title { --txt-m: 0 0 clamp(24px, 3vw, 40px); margin-bottom: clamp(24px, 3vw, 40px); font-size: clamp(1.7rem, 1rem + 2.2vw, 2.8rem); }
.before-block .way p a { color: var(--ink); font-weight: 700; text-decoration-color: var(--orange); }

.step-body a { color: var(--ink); font-weight: 700; text-decoration-color: var(--orange); text-underline-offset: 3px; }

/* ---------- HubSpot forms ([ywam_hubspot_form], inc/hubspot-forms.php) ---------- */
.hs-form-wrap { padding: clamp(24px, 3vw, 40px); border-radius: var(--r-lg); background: var(--paper); }
.hs-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.hs-consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--orange); }
.hs-consent a { color: var(--ink); }
/* The preview's button looks like what HubSpot's button styling can produce: no arrow, no lift */
.button--plain::after { display: none; }
.hs-preview .form-preview-note.is-flash { animation: hs-flash 1.2s var(--ease-out); }
@keyframes hs-flash { 0%, 40% { background: var(--orange); color: var(--ink); } }

/* ---------- Build month → price set ([ywam_hoh_build_month] + calculator) ---------- */
.hoh-month { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 28px; }
.hoh-month-field { flex: 0 1 340px; }
.hoh-month-field select { font-weight: 700; }
.hoh-month-status { flex: 1 1 260px; margin: 0; padding-bottom: 12px; color: var(--muted); font-size: 0.95rem; }
.hoh-month-status.is-warning { color: var(--firebrick); font-weight: 600; }
.hoh-month-bar { --blk-pad: clamp(20px, 3vw, 32px) clamp(20px, 3vw, 36px); border-radius: var(--r-lg); background: var(--paper); border-left: 4px solid var(--orange); }
.calc-when .hoh-month-status { padding-bottom: 0; flex-basis: 100%; }
.calc-when .hoh-month-field { flex-basis: 100%; }
.hoh-p { transition: color 0.4s; }

/* School Apply page without a form yet ([ywam_school_apply]) */
.apply-soon { display: grid; gap: 14px; justify-items: start; }
.apply-soon h3 { margin: 0; font-family: var(--font-display), sans-serif; font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); letter-spacing: -0.02em; }
.apply-soon p { margin: 0; color: var(--muted); }

/* Forms opened from a button (reveal) */
.form-reveal { margin-top: clamp(24px, 3vw, 40px); scroll-margin-top: 110px; }
.form-reveal.is-open { animation: form-reveal 0.35s var(--ease-out); }
@keyframes form-reveal { from { opacity: 0; transform: translateY(-8px); } }
.form-reveal .hs-form-wrap { max-width: 820px; }
.on-dark .form-reveal .hs-form-wrap { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .form-reveal.is-open { animation: none; } }
