:root {
  --afhps-accent: #69a957;
  --afhps-heading: #2f3b2f;
  --afhps-ink: #354035;
  --afhps-muted: #6f786f;
  --afhps-soft: #edf5e9;
  --afhps-line: #dfe8dc;
  --afhps-white: #fff;
  --afhps-heading-font: "Grandstander", "Trebuchet MS", Arial, sans-serif;
  --afhps-body-font: "Montserrat", "Avenir Next", Avenir, Arial, sans-serif;
}

body.afhps-open { overflow: hidden; }

.afhps-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  overflow: auto;
  padding: 28px;
  background: rgba(25, 31, 25, .72);
}

.afhps-shell,
.afhps-shell * { box-sizing: border-box; }

.afhps-shell {
  position: relative;
  width: min(650px, 100%);
  margin: auto;
  padding: 18px;
  border: 1px solid #edf0e9;
  border-radius: 26px;
  background: #e8f2e4;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .30);
  color: var(--afhps-ink);
  font-family: var(--afhps-body-font);
  font-size: 16px;
  line-height: 1.55;
}

.afhps-shell [hidden] { display: none !important; }
.afhps-shell button,
.afhps-shell input,
.afhps-shell select { font: inherit; }
.afhps-shell a { color: var(--afhps-accent); }

.afhps-close {
  position: absolute;
  z-index: 4;
  top: 15px;
  right: 17px;
  width: 39px;
  height: 39px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 5px 16px rgba(43, 58, 42, .10);
  color: #596159;
  font-size: 27px;
  line-height: 1;
  cursor: pointer;
}

.afhps-card h2 {
  padding: 0;
  color: var(--afhps-heading);
  font-family: var(--afhps-heading-font);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.04;
  text-transform: none;
}

.afhps-card {
  position: relative;
  min-width: 0;
  min-height: 680px;
  padding: 36px 36px 72px;
  overflow: hidden;
  border: 1px solid #e8eee5;
  border-radius: 24px;
  background: var(--afhps-white);
  box-shadow: 0 22px 55px rgba(45, 62, 44, .10);
}

.afhps-progress {
  width: 190px;
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 28px 1fr 28px 1fr 28px;
  align-items: center;
}

.afhps-progress span {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef0eb;
  color: #9aa199;
  font-size: 11px;
  font-weight: 800;
}

.afhps-progress i { height: 2px; background: #eef0eb; }
.afhps-progress span.is-current,
.afhps-progress span.is-complete { background: var(--afhps-accent); color: #fff; }
.afhps-progress i.is-complete { background: var(--afhps-accent); }

.afhps-package {
  margin: -11px 0 24px;
  color: #8c958a;
  font-size: 11px;
  font-weight: 750;
  text-align: center;
}

.afhps-kicker {
  margin: 0;
  color: var(--afhps-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.9px;
}

.afhps-card h2 {
  margin: 12px 0 25px;
  font-size: clamp(30px, 3vw, 36px);
}

.afhps-offer-price {
  margin: 0 0 22px;
  padding: 19px 20px;
  border: 1px solid #d6e6d0;
  border-radius: 14px;
  background: var(--afhps-soft);
}

.afhps-offer-price span,
.afhps-offer-price strong,
.afhps-offer-price em { display: block; }
.afhps-offer-price span { margin-bottom: 4px; color: var(--afhps-muted); font-size: 11px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.afhps-offer-price strong { color: var(--afhps-heading); font-family: var(--afhps-heading-font); font-size: 18px; line-height: 1.25; }
.afhps-offer-price em { margin-top: 9px; color: var(--afhps-accent); font-size: 17px; font-style: normal; font-weight: 800; }
.afhps-payment-choices { grid-template-columns: 1fr; }
.afhps-step-actions-single .afhps-next { width: 100%; }

.afhps-card form,
.afhps-card fieldset { margin: 0; }

.afhps-card fieldset {
  min-width: 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--afhps-line);
}

.afhps-card legend {
  padding: 0 12px 0 0;
  color: var(--afhps-ink);
  font-family: var(--afhps-heading-font);
  font-size: 14px;
  font-weight: 700;
}

.afhps-card label {
  display: block;
  margin: 12px 0;
  color: var(--afhps-ink);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.afhps-card input[type="text"],
.afhps-card input[type="email"],
.afhps-card select {
  width: 100%;
  min-height: 46px;
  display: block;
  margin: 7px 0 0;
  padding: 11px 13px;
  border: 1px solid var(--afhps-line);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  box-shadow: none;
  color: var(--afhps-ink);
  font-size: 14px;
  font-weight: 400;
}

.afhps-card input:focus,
.afhps-card select:focus {
  border-color: var(--afhps-accent);
  box-shadow: 0 0 0 3px rgba(105, 169, 87, .14);
}

.afhps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.afhps-postal { grid-template-columns: 130px 1fr; }
.afhps-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }

.afhps-choice {
  display: flex !important;
  align-items: flex-start;
  gap: 9px;
  margin: 0 !important;
  padding: 12px !important;
  border: 1px solid var(--afhps-line);
  border-radius: 11px;
  background: #fff;
  cursor: pointer;
}

.afhps-choice:has(input:checked) { border-color: var(--afhps-accent); background: var(--afhps-soft); }
.afhps-choice input { flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--afhps-accent); }
.afhps-choice span,
.afhps-choice small { display: block; }
.afhps-choice small { margin-top: 3px; color: #5d665c; font-weight: 400; line-height: 1.4; }

.afhps-binding-note,
.afhps-address p,
.afhps-home-count p {
  margin: 15px 0;
  padding: 11px 12px;
  border-radius: 10px;
  background: #f6f8f5;
  color: #596358;
  font-size: 12px;
  line-height: 1.5;
}

.afhps-appointment-counter {
  margin: 19px 0 8px;
  color: var(--afhps-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

.afhps-appointment { margin: 0; }
.afhps-appointment-title { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; }
.afhps-appointment-title > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--afhps-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.afhps-appointment-title strong,
.afhps-appointment-title small { display: block; }
.afhps-appointment-title small { margin-top: 2px; color: #657064; font-size: 11px; }

.afhps-calendar { width: 100%; margin: 0; padding: 4px 0 0; background: #fff; }
.afhps-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 20px;
  text-align: center;
  text-transform: capitalize;
}
.afhps-cal-nav strong { color: var(--afhps-ink); font-size: 14px; font-weight: 700; }
.afhps-cal-nav button {
  min-width: 0;
  margin: 0;
  padding: 4px 7px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  box-shadow: none;
  color: var(--afhps-accent);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.afhps-cal-nav button:hover { background: var(--afhps-soft); color: var(--afhps-heading); }

.afhps-cal-weekdays,
.afhps-cal-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; }
.afhps-cal-weekdays span { padding: 4px 0; color: #929b91; font-size: 10px; font-weight: 800; text-align: center; text-transform: uppercase; }
.afhps-cal-days > p { grid-column: 1 / -1; padding: 32px 10px; color: var(--afhps-muted); font-size: 13px; text-align: center; }
.afhps-cal-blank { display: block; }
.afhps-cal-day {
  width: 100%;
  min-width: 0;
  aspect-ratio: 1;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--afhps-soft);
  box-shadow: none;
  color: var(--afhps-accent);
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.afhps-cal-day:disabled { background: transparent; color: #c7ccc6; cursor: default; opacity: 1; }
.afhps-cal-day:not(:disabled):hover,
.afhps-cal-day.is-day-selected { background: var(--afhps-accent); color: #fff; }

.afhps-cal-times { margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--afhps-line); font-size: 13px; }
.afhps-cal-times > p { margin: 0; color: var(--afhps-muted); text-align: center; }
.afhps-cal-times > div { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; margin-top: 12px; }
.afhps-cal-time {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 11px 7px;
  border: 1px solid var(--afhps-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  color: var(--afhps-accent);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.afhps-cal-time:hover,
.afhps-cal-time.is-selected { border-color: var(--afhps-accent); background: var(--afhps-soft); color: var(--afhps-heading); }
.afhps-cal-selected { margin: 15px 0 0; padding: 10px 11px; border-radius: 8px; background: var(--afhps-soft); color: #315d2e; font-size: 12px; font-weight: 700; text-align: center; }

.afhps-slot-error,
.afhps-error,
.afhps-step-error { margin-top: 12px; padding: 11px; border-radius: 9px; background: #fff0ee; color: #a3231d; font-size: 13px; line-height: 1.4; }
.afhps-location-inline {
  margin: 18px 0 0 !important;
  padding-top: 17px;
  border-top: 1px solid var(--afhps-line);
}
.afhps-location-inline > span { display: block; font-family: var(--afhps-heading-font); font-size: 13px; font-weight: 700; }
.afhps-location-inline select { margin-top: 8px !important; }

.afhps-summary { margin: 20px 0 0; padding: 15px 17px; border-radius: 12px; background: var(--afhps-soft); font-size: 13px; }
.afhps-summary > strong { font-size: 15px; }
.afhps-summary-plan { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin: -2px 0 14px; padding-bottom: 12px; border-bottom: 1px solid #d4e5cd; }
.afhps-summary-plan span { color: #596358; font-size: 12px; }
.afhps-summary-plan strong { color: var(--afhps-heading); font-size: 13px; text-align: right; }
.afhps-summary ul { margin: 10px 0 0; padding-left: 20px; }
.afhps-summary li { margin: 0 0 9px; }
.afhps-summary li span { color: #596358; }
.afhps-summary p { margin: 12px 0 0; padding-top: 11px; border-top: 1px solid #d4e5cd; }
.afhps-vat { margin: 14px 0; color: #657064; font-size: 13px; }

.afhps-check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 500 !important; line-height: 1.5 !important; }
.afhps-check input { width: 17px; height: 17px; flex: 0 0 17px; margin: 1px 0 0; accent-color: var(--afhps-accent); }
.afhps-check a { color: var(--afhps-accent); font-weight: 700; }

.afhps-step-actions { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.afhps-back,
.afhps-next,
.afhps-submit { min-height: 48px; margin: 0; padding: 13px 17px; border-radius: 12px; font-size: 14px; font-weight: 800; cursor: pointer; text-transform: none; }
.afhps-back { border: 1px solid var(--afhps-line); background: #fff; color: #4f594e; }
.afhps-next,
.afhps-submit { flex: 1; border: 0; background: var(--afhps-accent); box-shadow: 0 9px 22px rgba(105, 169, 87, .22); color: #fff; }
.afhps-next:disabled,
.afhps-submit:disabled { cursor: wait; opacity: .55; }
.afhps-submit { width: auto; }
.afhps-security { margin: 12px 0 0; color: var(--afhps-muted); font-size: 11px; text-align: center; }
.afhps-hp { position: absolute !important; left: -99999px !important; }

.afhps-card footer {
  position: absolute;
  right: 36px;
  bottom: 18px;
  left: 36px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--afhps-line);
  color: #929a91;
  font-size: 10px;
}

.afhps-shell button:focus-visible,
.afhps-shell a:focus-visible { outline: 3px solid rgba(105, 169, 87, .28); outline-offset: 2px; }

@media (max-width: 900px) {
  .afhps-overlay { padding: 16px; }
  .afhps-shell { padding: 16px; }
}

@media (max-width: 560px) {
  .afhps-overlay { display: block; padding: 0; }
  .afhps-shell { width: 100%; min-height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: #fff; }
  .afhps-close { top: 10px; right: 10px; }
  .afhps-card { min-height: 0; padding: 25px 20px; }
  .afhps-card h2 { font-size: 30px; }
  .afhps-grid,
  .afhps-choices { grid-template-columns: 1fr; }
  .afhps-postal { grid-template-columns: 105px 1fr; }
  .afhps-cal-weekdays,
  .afhps-cal-days { gap: 5px; }
  .afhps-cal-times > div { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .afhps-step-actions { align-items: stretch; }
  .afhps-back { padding-right: 12px; padding-left: 12px; }
  .afhps-card footer { position: static; margin-top: 34px; }
}
