.agl, .agl * { box-sizing: border-box; }
.agl {
  --agl-green: #24572b;
  --agl-green-2: #2f6f37;
  --agl-green-dark: #163a1c;
  --agl-gold: #c9a227;
  --agl-gold-dark: #a8851a;
  --agl-bg: #f4f8f1;
  --agl-line: #dfe8da;
  --agl-text: #1d2a1f;
  --agl-muted: #5d6b60;
  --agl-err: #b3261e;
  --agl-radius: 14px;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  color: var(--agl-text);
  line-height: 1.5;
}
.agl button { font-family: inherit; cursor: pointer; }
.agl input { font-family: inherit; font-size: 16px; }

/* Apply section */
.agl-section { padding: 0; background: #fff; width: 100%; }
.agl-shell { width: 100%; display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-top: 1px solid var(--agl-line); border-bottom: 1px solid var(--agl-line); }
.agl-panel { position: relative; color: #fff; padding: 56px 56px 56px max(32px, calc((100vw - 1180px) / 2)); display: flex; flex-direction: column; justify-content: center; background:
    radial-gradient(600px 300px at 100% 0%, rgba(201,162,39,.22), transparent 60%),
    radial-gradient(500px 400px at 0% 100%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(155deg, #0f2e15 0%, #1b4823 55%, #24572b 100%); }
.agl-panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .07;
    background-image: linear-gradient(rgba(255,255,255,.6) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.6) 1px, transparent 1px);
    background-size: 44px 44px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); }
.agl-panel > * { position: relative; z-index: 1; max-width: 520px; }
.agl-eyebrow { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--agl-gold); background: rgba(201,162,39,.12); border: 1px solid rgba(201,162,39,.35); padding: 7px 14px; border-radius: 999px; }
.agl-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5bd36a; box-shadow: 0 0 0 4px rgba(91,211,106,.2); }
.agl-h2 { font-size: 36px; line-height: 1.12; letter-spacing: -.02em; margin: 18px 0 24px; color: #fff; font-weight: 800; }
.agl-h2 em { font-style: normal; color: var(--agl-gold); }
.agl-quick { display: grid; gap: 10px; }
.agl-qbtn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; text-decoration: none; color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 16px; font: inherit; transition: background .15s, border-color .15s, transform .15s; }
.agl-qbtn:hover, .agl-qbtn:focus { color: #fff; background: rgba(255,255,255,.13); border-color: rgba(201,162,39,.6); transform: translateX(3px); }
.agl-qicon { flex: 0 0 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.1); }
.agl-qicon svg { width: 20px; height: 20px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.agl-qbtn--wa .agl-qicon { background: #25d366; }
.agl-qbtn--wa .agl-qicon svg { fill: #fff; stroke: none; }
.agl-qtext { flex: 1; display: flex; flex-direction: column; }
.agl-qtext b { font-size: 15.5px; font-weight: 700; }
.agl-qtext small { font-size: 13px; color: rgba(255,255,255,.65); }
.agl-qarrow { color: var(--agl-gold); font-size: 20px; }
.agl-callline { margin: 18px 0 0; font-size: 14px; color: rgba(255,255,255,.7); }
.agl-callline a { color: var(--agl-gold); font-weight: 700; text-decoration: none; }
.agl-callline a:hover { color: var(--agl-gold); text-decoration: underline; }
.agl-formside { padding: 56px max(32px, calc((100vw - 1180px) / 2)) 56px 56px; display: flex; flex-direction: column; justify-content: center; background: linear-gradient(180deg, #fff 0%, var(--agl-bg) 100%); }
.agl-formside > * { max-width: 560px; width: 100%; }
.agl-formhead { margin-bottom: 18px; }
.agl-formhead h3 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.01em; color: var(--agl-green-dark); font-weight: 800; }
.agl-formhead p { margin: 0; font-size: 14px; color: var(--agl-muted); }

/* Steps (shared) */
.agl-card { position: relative; }
.agl-card .agl-field { margin-bottom: 12px; }
.agl-card .agl-consent { margin: 2px 0 14px; }
.agl-card .agl-errmsg { min-height: 0; }
.agl-card .agl-step.is-active { display: flex; flex-direction: column; min-height: 320px; }
.agl-card .agl-options { flex: 1; grid-auto-rows: 1fr; }
.agl-card .agl-step[data-step="done"].is-active { justify-content: center; }
.agl-progress { height: 6px; background: #e9efe6; border-radius: 99px; overflow: hidden; margin-bottom: 8px; }
.agl-progress i { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--agl-green), var(--agl-gold)); border-radius: 99px; transition: width .35s ease; }
.agl-stepinfo { display: flex; justify-content: space-between; font-size: 12px; color: var(--agl-muted); margin-bottom: 22px; }
.agl-step { display: none; animation: aglIn .3s ease; }
.agl-step.is-active { display: block; }
@keyframes aglIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.agl-q { font-size: 21px; font-weight: 750; margin: 0 0 6px; color: var(--agl-green-dark); }
.agl-hint { font-size: 14px; color: var(--agl-muted); margin: 0 0 18px; }
.agl-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agl-opt { position: relative; min-height: 74px; justify-content: center; text-align: left; background: #fff; border: 1.5px solid var(--agl-line); border-radius: 12px; padding: 16px 44px 16px 16px; font-size: 16px; font-weight: 600; color: var(--agl-text); transition: border-color .15s, background .15s, transform .1s; display: flex; flex-direction: column; gap: 4px; }
.agl-opt::after { content: ""; position: absolute; top: 16px; right: 16px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c5d3c0; background: #fff; transition: all .15s; }
.agl-opt small { font-weight: 400; color: var(--agl-muted); font-size: 13px; }
.agl-opt:hover { border-color: var(--agl-green-2); background: #f7fbf5; }
.agl-opt:active { transform: scale(.98); }
.agl-opt.is-selected { border-color: var(--agl-green); background: #eef6ea; box-shadow: inset 0 0 0 1px var(--agl-green); }
.agl-opt.is-selected::after { border-color: var(--agl-green); background: var(--agl-green); box-shadow: inset 0 0 0 3px #fff; }
.agl-field { margin-bottom: 14px; }
.agl-field label, .agl-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--agl-text); }
.agl-input { width: 100%; height: 50px; border: 1.5px solid var(--agl-line); border-radius: 10px; padding: 0 14px; background: #fff; color: var(--agl-text); outline: none; transition: border-color .15s, box-shadow .15s; }
.agl-input:focus { border-color: var(--agl-green); box-shadow: 0 0 0 3px rgba(36,87,43,.15); }
.agl-input.is-error { border-color: var(--agl-err); box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.agl-phone { display: grid; grid-template-columns: 84px 1fr; gap: 8px; }
.agl-phone.is-error .agl-input { border-color: var(--agl-err); box-shadow: 0 0 0 3px rgba(179, 38, 30, .12); }
.agl-phone.is-error .agl-dial { border-color: var(--agl-err); }
.agl-dial { height: 50px; border: 1.5px solid var(--agl-line); border-radius: 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 600; background: #f7faf5; font-size: 14px; }
.agl-dial .agl-flag { width: 20px; height: 15px; flex: 0 0 20px; }
.agl-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.agl-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--agl-muted); margin: 6px 0 18px; font-weight: 400; }
.agl-consent input { margin-top: 3px; width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--agl-green); }
.agl-consent a { color: var(--agl-green); }
.agl-btn { width: 100%; height: 54px; border: 0; border-radius: 12px; background: var(--agl-green); color: #fff; font-size: 16px; font-weight: 700; transition: background .15s, transform .1s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.agl-btn:hover, .agl-btn:focus { background: var(--agl-green-dark); color: #fff; }
.agl-btn:active { transform: scale(.99); }
.agl-btn[disabled] { opacity: .65; cursor: wait; }
.agl-btn--gold { background: var(--agl-gold); color: #1d1a0c; }
.agl-btn--gold:hover, .agl-btn--gold:focus { background: var(--agl-gold-dark); color: #fff; }
.agl-btn--white { background: #fff; color: #0F4D1C; border: 0; font-weight: 700; border-radius: 8px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); }
.agl-btn--white:hover, .agl-btn--white:focus { background: #f5f8f3; color: #005A00; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22); transform: translateY(-1px); }
.agl-btn--ghost { background: transparent; color: var(--agl-green); border: 1.5px solid var(--agl-green); }
.agl-btn--ghost:hover, .agl-btn--ghost:focus { background: #eef6ea; color: var(--agl-green-dark); }
.agl-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; min-height: 24px; }
.agl-back { background: none; border: 0; color: var(--agl-muted); font-size: 14px; padding: 6px 0; }
.agl-back:hover { color: var(--agl-green); }
.agl-secure { font-size: 12px; color: var(--agl-muted); text-align: center; margin: 12px 0 0; }
.agl-errmsg { color: var(--agl-err); font-size: 13px; min-height: 18px; margin-top: 6px; }
.agl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.agl-success { text-align: center; padding: 10px 0; }
.agl-tick { width: 64px; height: 64px; border-radius: 50%; background: #e3eedd; color: var(--agl-green); display: grid; place-items: center; font-size: 30px; margin: 0 auto 14px; }
.agl-success h3 { font-size: 23px; margin: 0 0 8px; color: var(--agl-green-dark); }
.agl-success p { color: var(--agl-muted); margin: 0 0 20px; }
.agl-success .agl-btn + .agl-btn { margin-top: 10px; }

/* Searchable country picker */
.agl-cc { position: relative; }
.agl-cc-btn { margin: 0; width: 100%; height: 50px; border: 1.5px solid var(--agl-line); border-radius: 10px; background: #fff; padding: 0 12px; display: flex; align-items: center; justify-content: flex-start; gap: 10px; text-align: left; font-size: 15px; color: var(--agl-text); transition: border-color .15s, box-shadow .15s; }
.agl-cc-btn:hover { border-color: #c5d3c0; }
.agl-cc.is-open .agl-cc-btn, .agl-cc-btn:focus { outline: none; border-color: var(--agl-green); box-shadow: 0 0 0 3px rgba(36,87,43,.15); }
.agl-flag { width: 24px; height: 18px; border-radius: 3px; object-fit: cover; flex: 0 0 24px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); background: #eef2ec; }
.agl-flag-emoji { display: inline-block; width: 24px; flex: 0 0 24px; font-size: 18px; line-height: 1; text-align: center; }
.agl-cc-name { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agl-cc-code { color: var(--agl-muted); font-size: 14px; }
.agl-cc-caret { width: 10px; height: 10px; border-right: 2px solid var(--agl-muted); border-bottom: 2px solid var(--agl-muted); transform: rotate(45deg) translateY(-3px); transition: transform .15s; margin-right: 4px; }
.agl-cc.is-open .agl-cc-caret { transform: rotate(-135deg) translateY(-2px); }
.agl-cc-pop { position: absolute; z-index: 50; left: 0; right: 0; top: calc(100% + 6px); min-width: 280px; background: #fff; border: 1px solid var(--agl-line); border-radius: 12px; box-shadow: 0 18px 40px rgba(22,58,28,.18); overflow: hidden; }
.agl-cc-pop[hidden] { display: none; }
.agl-cc-searchwrap { padding: 10px; border-bottom: 1px solid var(--agl-line); }
.agl-cc-search { width: 100%; height: 40px; border: 1.5px solid var(--agl-line); border-radius: 8px; padding: 0 12px; font-size: 15px; outline: none; }
.agl-cc-search:focus { border-color: var(--agl-green); }
.agl-cc-list { list-style: none; margin: 0; padding: 6px; max-height: 260px; overflow-y: auto; }
.agl-cc-list li { margin: 0; list-style: none; text-align: left; line-height: 1.3; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.agl-cc-list li .agl-cc-n { flex: 1 1 auto; text-align: left; min-width: 0; }
.agl-cc-list li .agl-cc-code { flex: 0 0 auto; text-align: right; }
.agl-cc-list li:hover, .agl-cc-list li.is-hl { background: #eef6ea; }
.agl-cc-list li[aria-selected="true"] { font-weight: 700; color: var(--agl-green-dark); }
.agl-cc-list .agl-cc-sep { height: 1px; background: var(--agl-line); margin: 6px 4px; padding: 0; pointer-events: none; }
.agl-cc-list .agl-cc-none { color: var(--agl-muted); cursor: default; }

/* Inline CTA */
.agl-inline { margin: 0 auto 3rem; }
.agl-inline-box { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: linear-gradient(135deg, #0F4D1C 0%, #1B6B2C 100%); color: #fff; border-radius: var(--agl-radius); padding: 22px 28px; box-shadow: 0 8px 24px rgba(15, 77, 28, 0.18); }
.agl-inline-box b { font-size: 17px; display: block; }
.agl-inline-box span { font-size: 14px; opacity: .88; }
.agl-inline-box .agl-btn { width: auto; padding: 0 24px; height: 48px; white-space: nowrap; }

/* Popup */
.agl-overlay { position: fixed; inset: 0; background: rgba(10,25,13,.62); backdrop-filter: blur(3px); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 16px; }
.agl-overlay.is-open { display: flex; animation: aglFade .25s ease; }
@keyframes aglFade { from { opacity: 0; } to { opacity: 1; } }
.agl-modal { width: 100%; max-width: 860px; background: #fff; border-radius: 20px; display: grid; grid-template-columns: .9fr 1.1fr; box-shadow: 0 30px 80px rgba(0,0,0,.35); position: relative; max-height: calc(100vh - 32px); overflow-y: auto; }
.agl-modal-side { background: linear-gradient(160deg, var(--agl-green-dark), var(--agl-green)); color: #fff; padding: 36px 30px; display: flex; flex-direction: column; justify-content: space-between; }
.agl-modal-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--agl-gold); margin: 0 0 14px; }
.agl-file { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: 14px; padding: 18px; }
.agl-file-ttl { font-weight: 800; font-size: 19px; margin-bottom: 12px; }
.agl-file ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 14px; }
.agl-file li::before { content: "✓"; color: var(--agl-gold); font-weight: 800; margin-right: 8px; }
.agl-modal-proof { font-size: 13px; opacity: .85; margin: 18px 0 0; }
.agl-modal-main { padding: 36px 32px 30px; }
.agl-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1f4ef; color: #333; font-size: 20px; line-height: 1; z-index: 2; }
.agl-close:hover { background: #e3eadf; }
.agl-modal .agl-q { font-size: 24px; }
.agl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.agl-chip { border: 1.5px solid var(--agl-line); background: #fff; border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 600; color: var(--agl-text); }
.agl-chip:hover { border-color: var(--agl-green-2); }
.agl-chip.is-selected { background: var(--agl-green); color: #fff; border-color: var(--agl-green); }
.agl-skip { display: block; margin: 12px auto 0; background: none; border: 0; color: var(--agl-muted); font-size: 13px; text-decoration: underline; }
.agl-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }

@media (max-width: 960px) {
  .agl-shell { grid-template-columns: 1fr; }
  .agl-panel { padding: 56px 32px; }
  .agl-formside { padding: 48px 32px; }
  .agl-panel > *, .agl-formside > * { max-width: 640px; }
  .agl-h2 { font-size: 30px; }
}
@media (max-width: 640px) {
  .agl-panel { padding: 40px 20px; }
  .agl-formside { padding: 36px 20px 32px; }
  .agl-h2 { font-size: 27px; }
  .agl-card .agl-step.is-active { min-height: 0; }
  .agl-card .agl-options { grid-auto-rows: auto; }
  .agl-opt { min-height: 68px; }
  .agl-options, .agl-row2 { grid-template-columns: 1fr; }
  .agl-inline-box { flex-direction: column; align-items: stretch; text-align: left; }
  .agl-inline-box .agl-btn { width: 100%; }
  /* Bottom sheet on mobile, so the popup never covers the page like an interstitial. */
  .agl-overlay { align-items: flex-end; padding: 0; }
  .agl-modal { grid-template-columns: 1fr; border-radius: 20px 20px 0 0; max-height: 92vh; animation: aglUp .3s ease; }
  @keyframes aglUp { from { transform: translateY(40px); } to { transform: none; } }
  .agl-modal-side { display: none; }
  .agl-modal-main { padding: 26px 18px 22px; }
  .agl-modal .agl-q { font-size: 21px; padding-right: 30px; }
}
