/* ==========================================================================
   Website forms (request info, contact, newsletter, consultant) - "af-f"
   Used in the popups (inc/form/*.cfm) and inside pages (contact, consultant).
   Colors follow Settings > Appearance and brand through the --af-* variables.
   ========================================================================== */
/* Brand colors (same defaults as css/theme.css; Settings > Appearance and brand overrides them after this file) */
:root { --af-green: #058e30; --af-green-dark: #07842a; --af-green-light: #2fc158; --af-green-mid: #4faf6a; --af-green-soft: #e8f5ec; --af-green-wash: #f4f8f5; --af-mint: #b8f0c8; --af-red: #dd5244; --af-red-dark: #cc4b3e; --af-brand-dark: #0d3b22; }
.af-f {
  --f-green: var(--af-green, #058e30);
  --f-green-dark: var(--af-green-dark, #07842a);
  --f-green-soft: var(--af-green-soft, #e8f5ec);
  --f-accent: var(--af-red, #dd5244);
  --f-ink: #1c2a21;
  --f-soft: #5b6b61;
  --f-line: #d9e0db;
  --f-field: #fff;
  --f-bg: #fff;
  --f-wash: var(--af-green-wash);
  --f-err: #c0362c;
  --f-err-soft: #fdf0ef;
  --f-radius: 12px;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid #e6ebe7;
  border-radius: 20px;
  background: var(--f-bg);
  color: var(--f-ink);
  font: 400 15px/1.55 var(--af-font, 'Lato', Arial, Helvetica, sans-serif);
  box-shadow: 0 18px 44px rgba(16, 40, 25, .08);
  text-align: left;
}
.af-f *, .af-f *::before, .af-f *::after { box-sizing: border-box; }
.af-f--flat { padding: 0; border: 0; box-shadow: none; background: transparent; }

/* Header */
.af-f__head { display: flex; align-items: flex-start; gap: 14px; margin: 0 0 22px; }
.af-f__badge { flex: none; display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: linear-gradient(135deg, var(--f-green-dark), var(--f-green)); color: #fff; font-size: 21px; box-shadow: 0 10px 22px color-mix(in srgb, var(--af-green) 25%, transparent); }
.af-f__title { margin: 2px 0 4px !important; padding: 0 !important; border: 0 !important; color: var(--f-ink) !important; font: 900 22px/1.25 var(--af-font, 'Lato', Arial, sans-serif) !important; letter-spacing: -.2px; text-transform: none !important; background: none !important; text-align: left !important; }
.af-f__lead { margin: 0 !important; color: var(--f-soft); font-size: 14.5px; }

/* Sections */
.af-f__section { margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.af-f__legend { display: flex; align-items: center; gap: 10px; width: 100%; margin: 0 0 14px; padding: 0; color: var(--f-ink); font: 900 13px/1.2 var(--af-font, 'Lato', Arial, sans-serif); letter-spacing: .08em; text-transform: uppercase; }
.af-f__legend::after { content: ""; flex: 1; height: 1px; background: #e6ebe7; }
.af-f__step { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--f-green-soft); color: var(--f-green-dark); font-size: 12px; letter-spacing: 0; }

/* Grid */
.af-f__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.af-f__full { grid-column: 1 / -1; }
@media (max-width: 559px) { .af-f { padding: 20px 16px; border-radius: 16px; } .af-f__grid { grid-template-columns: 1fr; gap: 14px; } .af-f__title { font-size: 20px !important; } }

/* Fields */
.af-f__field { position: relative; display: flex; flex-direction: column; gap: 6px; min-width: 0; margin: 0; padding: 0; float: none; width: auto; }
.af-f__field[hidden] { display: none; }
.af-f__label { display: flex; align-items: baseline; gap: 6px; margin: 0; padding: 0; color: var(--f-ink); font: 700 14px/1.3 var(--af-font, 'Lato', Arial, sans-serif); text-transform: none; float: none; width: auto; }
.af-f__label abbr { color: var(--f-accent); text-decoration: none; border: 0; cursor: help; }
.af-f__opt { margin-left: auto; padding: 1px 8px; border-radius: 999px; background: var(--f-wash); color: var(--f-soft); font-size: 11.5px; font-weight: 700; }
.af-f input[type=text], .af-f input[type=email], .af-f input[type=tel], .af-f input[type=number], .af-f input[type=url], .af-f select, .af-f textarea {
  display: block; width: 100%; height: 48px; margin: 0; padding: 0 14px;
  border: 1.5px solid var(--f-line); border-radius: var(--f-radius); background: var(--f-field); color: var(--f-ink);
  font: 400 15px/1.3 var(--af-font, 'Lato', Arial, sans-serif); box-shadow: none; outline: 0; -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.af-f textarea { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.55; resize: vertical; }
.af-f select { padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6b61' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 15px center; }
.af-f input::placeholder, .af-f textarea::placeholder { color: #9aa69e; opacity: 1; }
.af-f input:hover, .af-f select:hover, .af-f textarea:hover { border-color: #b9c4bd; }
.af-f input:focus, .af-f select:focus, .af-f textarea:focus { border-color: var(--f-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--af-green) 14%, transparent); }
.af-f__hint { margin: 0; color: var(--f-soft); font-size: 12.5px; }

/* Errors */
.af-f__field.is-error input, .af-f__field.is-error select, .af-f__field.is-error textarea { border-color: var(--f-err); background-color: var(--f-err-soft); }
.af-f__field.is-error input:focus, .af-f__field.is-error select:focus, .af-f__field.is-error textarea:focus { box-shadow: 0 0 0 4px rgba(192, 54, 44, .14); }
.af-f__error { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--f-err); font-size: 13px; font-weight: 700; }
.af-f__error::before { content: "!"; flex: none; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--f-err); color: #fff; font-size: 11px; font-weight: 900; }
.af-f__alert { display: flex; gap: 12px; margin: 0 0 20px; padding: 14px 16px; border: 1px solid #f3c9c4; border-radius: 14px; background: var(--f-err-soft); color: #7d2019; font-size: 14px; }
.af-f__alert strong { display: block; color: var(--f-err); }
.af-f__alert ul { margin: 4px 0 0; padding: 0 0 0 18px; }
.af-f__alert a { color: inherit; }
.af-f__alert-ico { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--f-err); color: #fff; font-weight: 900; }

/* Checkbox */
.af-f__check { position: relative; display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 16px; border: 1.5px solid #e6ebe7; border-radius: 14px; background: var(--f-wash); cursor: pointer; font-size: 14px; line-height: 1.45; color: var(--f-ink); }
.af-f__check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.af-f__box { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border: 2px solid #b9c4bd; border-radius: 7px; background: #fff; transition: all .15s ease; }
.af-f__box::after { content: ""; width: 10px; height: 6px; margin-top: -3px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg) scale(0); transition: transform .15s ease; }
.af-f__check input:checked + .af-f__box { border-color: var(--f-green); background: var(--f-green); }
.af-f__check input:checked + .af-f__box::after { transform: rotate(-45deg) scale(1); }
.af-f__check input:focus-visible + .af-f__box { box-shadow: 0 0 0 4px color-mix(in srgb, var(--af-green) 20%, transparent); }
.af-f__check:has(input:checked) { border-color: color-mix(in srgb, var(--af-green) 35%, transparent); background: var(--f-green-soft); }

/* Selected franchises */
.af-f__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.af-f__chips li { margin: 0; padding: 0; list-style: none; }
.af-f__chips li::before { display: none; }
.af-f__chip { position: relative; display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 7px 10px 7px 14px; border: 1.5px solid color-mix(in srgb, var(--af-green) 35%, transparent); border-radius: 999px; background: var(--f-green-soft); color: var(--f-green-dark); font-weight: 700; font-size: 14px; cursor: pointer; user-select: none; transition: all .15s ease; }
.af-f__chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.af-f__chip span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.af-f__chip i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: color-mix(in srgb, var(--af-green) 15%, transparent); font-style: normal; font-size: 13px; line-height: 1; }
.af-f__chip i::before { content: "\2715"; }
.af-f__chip:has(input:not(:checked)) { border-style: dashed; border-color: var(--f-line); background: #fff; color: var(--f-soft); text-decoration: line-through; }
.af-f__chip:has(input:not(:checked)) i::before { content: "+"; font-weight: 900; }
.af-f__chip:has(input:focus-visible) { box-shadow: 0 0 0 4px color-mix(in srgb, var(--af-green) 20%, transparent); }
.af-f__count { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--f-green); color: #fff; font-size: 12px; letter-spacing: 0; }

/* Bottom: consent, captcha, button */
.af-f__foot { display: grid; gap: 14px; margin-top: 6px; }
.af-f__trust { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--f-soft); font-size: 12.5px; line-height: 1.5; }
.af-f__trust::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 1px; background: 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='%235b6b61' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") no-repeat center / contain; }
.af-f__trust a { color: var(--f-green-dark); font-weight: 700; }
.af-captcha { min-height: 0; }
.af-captcha .cf-turnstile { width: 100%; }
.af-f__submit { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin: 0; padding: 14px 22px; border: 0; border-radius: 14px; background: linear-gradient(135deg, var(--f-accent), #c94335); color: #fff !important; font: 900 16px/1.2 var(--af-font, 'Lato', Arial, sans-serif); letter-spacing: .2px; text-transform: none; cursor: pointer; box-shadow: 0 12px 24px color-mix(in srgb, var(--af-red) 28%, transparent); transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.af-f__submit:hover { transform: translateY(-1px); box-shadow: 0 16px 30px color-mix(in srgb, var(--af-red) 34%, transparent); }
.af-f__submit:focus-visible { outline: 3px solid color-mix(in srgb, var(--af-red) 35%, transparent); outline-offset: 3px; }
.af-f__submit[disabled] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.af-f__submit .af-f__arrow { transition: transform .15s ease; }
.af-f__submit:hover .af-f__arrow { transform: translateX(3px); }
.af-f__submit.is-busy { pointer-events: none; }
.af-f__submit.is-busy .af-f__arrow { display: none; }
.af-f__submit.is-busy::after { content: ""; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: af-f-spin .7s linear infinite; }
@keyframes af-f-spin { to { transform: rotate(360deg); } }
.af-f__note { margin: 0; color: var(--f-soft); font-size: 12.5px; text-align: center; }

/* Honeypot */
.af-f__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Success */
.af-f__done { padding: 18px 6px 6px; text-align: center; }
.af-f__done-ico { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--f-green-soft); color: var(--f-green); animation: af-f-pop .4s ease both; }
.af-f__done-ico svg { width: 38px; height: 38px; }
.af-f__done-ico path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: af-f-draw .45s .25s ease forwards; }
.af-f__done h2, .af-f__done h1 { margin: 0 0 8px !important; color: var(--f-ink) !important; font: 900 24px/1.25 var(--af-font, 'Lato', Arial, sans-serif) !important; text-transform: none !important; border: 0 !important; background: none !important; text-align: center !important; }
.af-f__done p { max-width: 420px; margin: 0 auto 18px; color: var(--f-soft); }
.af-f__btn2 { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 22px; border: 2px solid var(--f-line); border-radius: 12px; background: #fff; color: var(--f-green-dark) !important; font: 700 15px/1.2 var(--af-font, 'Lato', Arial, sans-serif); text-decoration: none; cursor: pointer; }
.af-f__btn2:hover { border-color: var(--f-green); background: var(--f-green-soft); }
@keyframes af-f-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes af-f-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .af-f__done-ico, .af-f__done-ico path { animation: none; stroke-dashoffset: 0; } .af-f__submit, .af-f__submit .af-f__arrow { transition: none; } }

/* Popup pages (fancybox iframe) */
body.af-fpop { margin: 0; padding: 0; background: #fff; }
body.af-fpop .af-f { max-width: 640px; border: 0; border-radius: 0; box-shadow: none; padding: 28px 28px 32px; }
@media (max-width: 559px) { body.af-fpop .af-f { padding: 20px 16px 28px; } }

/* Dark mode (site toggle) */
html[data-theme="dark"] .af-f { --f-ink: #e6ece8; --f-soft: #a9c2b2; --f-line: #345243; --f-field: #10201a; --f-bg: #16241c; --f-wash: #1b2d23; --f-err-soft: #3a1d1a; border-color: #2a4134; box-shadow: none; }
html[data-theme="dark"] .af-f__chip:has(input:not(:checked)), html[data-theme="dark"] .af-f__btn2, html[data-theme="dark"] .af-f__box { background: #10201a; }
html[data-theme="dark"] .af-f__alert { border-color: #6b2a24; color: #f3c9c4; }
html[data-theme="dark"] body.af-fpop { background: #16241c; }

/* Close button inside the form (popups) - added by js/forms.js */
.af-f__close { position: absolute; top: 14px; right: 14px; z-index: 5; display: grid; place-items: center; width: 40px; height: 40px; margin: 0; padding: 0; border: 0; border-radius: 50%; background: var(--f-wash); color: var(--f-ink); font: 400 26px/1 Arial, sans-serif; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.af-f__close:hover { background: var(--f-green-soft); color: var(--f-green-dark); transform: rotate(90deg); }
.af-f__close:focus-visible { outline: 3px solid color-mix(in srgb, var(--af-green) 35%, transparent); outline-offset: 2px; }
body.af-fpop .af-f__head { padding-right: 44px; }
body.af-fpop .af-f__done { padding-top: 34px; }

/* Phones: compact, and 16px text so iPhones do not zoom into the fields */
@media (max-width: 559px) {
  .af-f__head { gap: 12px; margin-bottom: 16px; }
  .af-f__badge { width: 42px; height: 42px; border-radius: 13px; }
  .af-f__badge svg { width: 20px; height: 20px; }
  .af-f__title { font-size: 19px !important; }
  .af-f__lead { font-size: 13.5px; line-height: 1.45; }
  .af-f__section { margin-bottom: 18px; }
  .af-f__legend { margin-bottom: 12px; font-size: 12px; }
  .af-f__label { font-size: 13.5px; }
  .af-f input[type=text], .af-f input[type=email], .af-f input[type=tel], .af-f input[type=number], .af-f input[type=url], .af-f select, .af-f textarea { height: 46px; font-size: 16px; border-radius: 11px; }
  .af-f textarea { height: auto; min-height: 120px; }
  .af-f__check { padding: 12px 14px; font-size: 13.5px; }
  .af-f__trust { font-size: 12px; }
  .af-f__submit { min-height: 50px; font-size: 15.5px; border-radius: 12px; }
  .af-f__close { top: 10px; right: 10px; width: 36px; height: 36px; font-size: 24px; }
  body.af-fpop .af-f { padding: 18px 16px 24px; }
}


/* Searchable dropdowns (search panel and forms) (js/combo.js, select[data-af-combo]) */
.af-combo { position: relative; }
.af-combo, .af-combo *, .af-combo *::before, .af-combo *::after { box-sizing: border-box; }
.af-combo__native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; }
.af-combo__btn { display: flex; align-items: center; gap: 10px; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--af-input, #d1d3d4); border-radius: 12px; background: var(--af-surface, #fff); color: var(--af-muted, #939598); font: 400 15px/1.2 var(--af-font, 'Lato', Arial, sans-serif); text-align: left; cursor: pointer; }
.af-combo__btn.is-set { color: var(--af-text, #414042); font-weight: 700; }
.af-combo__btn:focus-visible, .af-combo.is-open .af-combo__btn { border-color: var(--af-green-light, #2FC158); box-shadow: 0 0 0 3px color-mix(in srgb, var(--af-green-light) 20%, transparent); outline: 0; }
.af-combo__value { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.af-combo__chev { flex: none; width: 12px; height: 8px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6b61' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center; transition: transform .15s ease; }
.af-combo.is-open .af-combo__chev { transform: rotate(180deg); }
.af-combo__panel { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; width: max(100%, 320px); max-width: calc(100vw - 32px); display: flex; flex-direction: column; max-height: 420px; padding: 10px; border: 1px solid var(--af-line, #e6e7e8); border-radius: 16px; background: var(--af-surface, #fff); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.af-combo__panel[hidden], .af-combo__backdrop[hidden] { display: none; }
.af-combo__head { display: none; }
.af-combo__search { flex: none; width: 100%; height: 42px; margin: 0 0 8px; padding: 0 12px 0 36px; border: 1px solid var(--af-input, #d1d3d4); border-radius: 10px; background: var(--af-green-wash, #f4f8f5) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23939598' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; color: var(--af-text, #414042); font: 400 15px var(--af-font, 'Lato', Arial, sans-serif); outline: 0; }
.af-combo__search:focus { border-color: var(--af-green-light, #2FC158); background-color: var(--af-surface, #fff); }
.af-combo__list { flex: 1; min-height: 0; overflow: auto; margin: 0; padding: 0; list-style: none; overscroll-behavior: contain; }
.af-combo__opt { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 10px; border-radius: 9px; color: var(--af-text, #414042); font-size: 14.5px; line-height: 1.3; cursor: pointer; }
.af-combo__opt::before { display: none !important; }
.af-combo__opt.is-head { margin-top: 6px; font-weight: 900; color: var(--af-green-dark, #07842A); }
.af-combo__opt.is-sub { padding-left: 24px; }
.af-combo__opt.is-all { font-weight: 700; }
.af-combo__opt[hidden] { display: none; }
.af-combo__opt:hover, .af-combo__opt.is-active { background: var(--af-green-soft, #e8f5ec); }
.af-combo__opt[aria-selected="true"] { background: var(--af-green, #058e30); color: #fff; }
.af-combo__opt[aria-selected="true"] .af-combo__count { background: rgba(255,255,255,.25); color: #fff; }
.af-combo__name { flex: 1; min-width: 0; }
.af-combo__count { flex: none; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--af-green-wash, #f4f8f5); color: var(--af-text-soft, #5f6062); font-size: 12px; font-weight: 700; text-align: center; }
.af-combo__none { margin: 10px; color: var(--af-muted, #939598); font-size: 14px; text-align: center; }
@media (max-width: 599px) {
  html.af-combo-lock, html.af-combo-lock body { overflow: hidden; }
  .af-combo__backdrop { position: fixed; inset: 0; z-index: 5000; background: rgba(12,28,18,.5); }
  .af-combo__panel { position: fixed; z-index: 5001; top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-width: none; max-height: 80vh; max-height: 80dvh; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .af-combo__head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
  .af-combo__title { font: 900 17px var(--af-font, 'Lato', Arial, sans-serif); color: var(--af-text, #414042); }
  .af-combo__x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--af-green-wash, #f4f8f5); color: var(--af-text, #414042); font-size: 24px; line-height: 1; cursor: pointer; }
  .af-combo__search { font-size: 16px; }
  .af-combo__opt { padding: 12px 10px; font-size: 15px; }
}
html[data-theme="dark"] .af-combo__btn, html[data-theme="dark"] .af-combo__search { background-color: var(--af-surface-2, #10201a); border-color: var(--af-input, #d1d3d4); }


/* Inside the website forms (.af-f): same look as the other fields */
.af-f .af-combo__btn { height: 48px; border: 1.5px solid var(--f-line); border-radius: var(--f-radius); background: var(--f-field); color: #9aa69e; font: 400 15px/1.2 var(--af-font, 'Lato', Arial, sans-serif); }
.af-f .af-combo__btn.is-set { color: var(--f-ink); font-weight: 400; }
.af-f .af-combo__btn:hover { border-color: #b9c4bd; }
.af-f .af-combo.is-open .af-combo__btn, .af-f .af-combo__btn:focus-visible { border-color: var(--f-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--af-green) 14%, transparent); }
.af-f .af-combo__chev { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6b61' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.af-f__field.is-error .af-combo__btn { border-color: var(--f-err); background-color: var(--f-err-soft); }
.af-f .af-combo__panel { width: 100%; max-height: 320px; border-color: var(--f-line); background: var(--f-bg); }
.af-f .af-combo__opt { color: var(--f-ink); }
.af-combo__label { margin: 8px 0 2px; padding: 4px 10px; color: var(--af-text-soft, #5f6062); font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; list-style: none; }
.af-combo__label::before { display: none !important; }
.af-combo__label[hidden] { display: none; }
.af-combo.is-short .af-combo__search { display: none; }
@media (max-width: 559px) { .af-f .af-combo__btn { height: 46px; font-size: 16px; border-radius: 11px; } .af-f .af-combo__panel { max-height: 75vh; max-height: 75dvh; } }
html[data-theme="dark"] .af-f .af-combo__btn { background: var(--f-field); }
.af-f .af-combo__opt.is-all { color: var(--f-soft); font-weight: 400; font-style: italic; }
.af-f .af-combo__opt.is-all[aria-selected="true"] { background: transparent; color: var(--f-soft); }
.af-f .af-combo__opt.is-all.is-active, .af-f .af-combo__opt.is-all:hover { background: var(--f-green-soft); }

/* Phone with country code picker (js/phone.js, input[data-af-phone]) */
.af-flag { flex: none; display: inline-block; width: 24px; height: 18px; border-radius: 3px; background: url("/gx/flags/flags.png") no-repeat 0 0 / 384px 288px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.af-flag--none { background: #e6ebe7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235b6b61' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3.5 3 14.5 0 18M12 3c-3 3.5-3 14.5 0 18'/%3E%3C/svg%3E") no-repeat center; }
.af-phone { position: relative; display: flex; align-items: stretch; width: 100%; }
.af-phone, .af-phone * { box-sizing: border-box; }
.af-f .af-phone__cc { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 48px; margin: 0 -1.5px 0 0; padding: 0 10px 0 12px; border: 1.5px solid var(--f-line); border-radius: var(--f-radius) 0 0 var(--f-radius); background: var(--f-wash); color: var(--f-ink); font: 700 15px/1 var(--af-font, 'Lato', Arial, sans-serif); cursor: pointer; }
.af-f .af-phone__cc:hover { border-color: #b9c4bd; }
.af-f .af-phone.is-open .af-phone__cc, .af-f .af-phone__cc:focus-visible { position: relative; z-index: 1; border-color: var(--f-green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--af-green) 14%, transparent); outline: 0; }
.af-phone__chev { width: 10px; height: 7px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235b6b61' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center; }
.af-f .af-phone input[type=tel] { flex: 1; min-width: 0; border-radius: 0 var(--f-radius) var(--f-radius) 0; }
.af-f__field.is-error .af-phone__cc { border-color: var(--f-err); }
.af-phone__panel { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; display: flex; flex-direction: column; width: min(360px, calc(100vw - 32px)); max-height: 360px; padding: 10px; border: 1px solid var(--f-line, #d9e0db); border-radius: 16px; background: var(--f-bg, #fff); box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.af-phone__panel[hidden], .af-phone__backdrop[hidden], .af-phone__opt[hidden], .af-phone__label[hidden] { display: none; }
.af-phone__head { display: none; }
.af-f .af-phone__search { flex: none; height: 42px; margin: 0 0 8px; padding: 0 12px 0 36px; border-radius: 10px; background: var(--f-wash) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%23939598' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 12px center; }
.af-phone__list { flex: 1; min-height: 0; overflow: auto; margin: 0; padding: 0; list-style: none; overscroll-behavior: contain; }
.af-phone__label { margin: 8px 0 2px; padding: 4px 10px; color: var(--f-soft, #5b6b61); font-size: 11.5px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; list-style: none; }
.af-phone__opt { display: flex; align-items: center; gap: 10px; margin: 0; padding: 9px 10px; border-radius: 9px; color: var(--f-ink, #1c2a21); font-size: 14.5px; line-height: 1.3; cursor: pointer; list-style: none; }
.af-phone__label::before, .af-phone__opt::before { display: none !important; }
.af-phone__opt:hover, .af-phone__opt.is-active { background: var(--f-green-soft, #e8f5ec); }
.af-phone__opt[aria-selected="true"] { background: var(--f-green, #058e30); color: #fff; }
.af-phone__opt[aria-selected="true"] .af-phone__dial { color: #fff; }
.af-phone__name { flex: 1; min-width: 0; }
.af-phone__dial { flex: none; color: var(--f-soft, #5b6b61); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.af-phone__none { margin: 10px; color: var(--f-soft, #5b6b61); font-size: 14px; text-align: center; }
@media (max-width: 599px) {
  .af-f .af-phone__cc { height: 46px; font-size: 16px; }
  .af-phone__backdrop { position: fixed; inset: 0; z-index: 5000; background: rgba(12,28,18,.5); }
  .af-phone__panel { position: fixed; z-index: 5001; top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 80vh; max-height: 80dvh; padding: 14px 14px calc(14px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; }
  .af-phone__head { display: flex; align-items: center; justify-content: space-between; margin: 0 0 10px; }
  .af-phone__title { font: 900 17px var(--af-font, 'Lato', Arial, sans-serif); color: var(--f-ink, #1c2a21); }
  .af-phone__x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--f-wash, #f5f8f6); color: var(--f-ink, #1c2a21); font-size: 24px; line-height: 1; cursor: pointer; }
  .af-f .af-phone__search { font-size: 16px; }
  .af-phone__opt { padding: 12px 10px; font-size: 15px; }
}
.af-f .af-phone__search { width: 100%; border: 1.5px solid var(--f-line); color: var(--f-ink); font: 400 15px var(--af-font, 'Lato', Arial, sans-serif); outline: 0; -webkit-appearance: none; appearance: none; }
.af-f .af-phone__search:focus { border-color: var(--f-green); background-color: var(--f-field); box-shadow: 0 0 0 4px color-mix(in srgb, var(--af-green) 14%, transparent); }
@media (max-width: 599px) { .af-f .af-phone__search { font-size: 16px; } }

/* Popups: close button always visible (stays at the top right while scrolling), nothing wider than the screen */
body.af-fpop { overflow-x: hidden; }
body.af-fpop .af-f__close { position: fixed; top: 12px; right: 12px; z-index: 50; background: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.18); border: 1px solid #e6ebe7; }
html[data-theme="dark"] body.af-fpop .af-f__close { background: #1b2d23; border-color: #2a4134; }
.af-f__check > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.af-f__foot, .af-f__grid, .af-f__section, .af-f form { min-width: 0; max-width: 100%; }
.af-captcha { max-width: 100%; overflow: hidden; }
.af-f .cf-turnstile iframe { max-width: 100% !important; }

/* Compact dropdown list (v4.2): smaller rows, search field and panel */
.af-combo__panel { max-height: 300px; padding: 6px; border-radius: 12px; }
.af-combo__search { height: 34px; margin: 0 0 5px; padding: 0 10px 0 30px; border-radius: 8px; font-size: 13.5px; background-position: 10px center; background-size: 13px 13px; }
.af-combo__opt { gap: 8px; padding: 6px 9px; border-radius: 7px; font-size: 13.5px; line-height: 1.25; }
.af-combo__opt.is-head { margin-top: 4px; }
.af-combo__opt.is-sub { padding-left: 20px; }
.af-combo__count { min-width: 22px; padding: 1px 6px; font-size: 11px; }
.af-combo__label { margin: 6px 0 1px; padding: 3px 9px; font-size: 10.5px; }
.af-combo__none { margin: 8px; font-size: 13px; }
.af-f .af-combo__panel { max-height: 280px; }
@media (max-width: 599px) {
  .af-combo__panel { max-height: 60vh; max-height: 60dvh; padding: 10px 10px calc(10px + env(safe-area-inset-bottom)); border-radius: 16px 16px 0 0; }
  .af-combo__head { margin: 0 0 6px; }
  .af-combo__title { font-size: 15px; }
  .af-combo__x { width: 30px; height: 30px; font-size: 20px; }
  .af-combo__search { height: 38px; font-size: 16px; }
  .af-combo__opt { padding: 8px 9px; font-size: 14px; }
  .af-f .af-combo__panel { max-height: 60vh; max-height: 60dvh; }
}
