/* Good Life Forms — every rule is scoped under .glf so the theme and the form don't affect each other. */
.glf {
  --glf-green: #3F7A2A;       /* buttons, selected states (AA contrast with white) */
  --glf-green-logo: #52A447;
  --glf-green-tint: #eef5e9;
  --glf-green-text: #2f5d1f;
  --glf-ink: #1c1f1a;
  --glf-muted: #4a5046;
  --glf-line: #dfe3da;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--glf-ink);
  line-height: 1.4;
  display: flex;
  justify-content: center;
  width: 100%;
}
.glf *, .glf *::before, .glf *::after { box-sizing: border-box; }
.glf [hidden] { display: none !important; }

.glf .glf-card { width: 100%; max-width: 600px; background: #fff; border: 1px solid #e3e6df; border-radius: 18px; box-shadow: 0 20px 50px rgba(17,20,17,.10); padding: 28px; display: flex; flex-direction: column; gap: 18px; overflow: hidden; text-align: left; }
.glf .glf-card.glf-sizing { transition: height .32s ease; }
.glf .glf-top { display: flex; justify-content: space-between; align-items: center; min-height: 32px; }
.glf .glf-step-label { font-size: 13px; font-weight: 600; color: var(--glf-green); }
.glf .glf-back { border: none; background: none; box-shadow: none; margin: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--glf-muted); cursor: pointer; padding: 6px 0; text-transform: none; letter-spacing: 0; }
.glf .glf-bars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.glf .glf-bars span { height: 6px; border-radius: 99px; background: #e3e6df; transition: background .35s ease; }
.glf .glf-bars span.glf-on { background: var(--glf-green); }

.glf .glf-h { margin: 0 0 4px; padding: 0; font-family: inherit; font-size: 24px; line-height: 1.25; font-weight: 800; color: var(--glf-ink); letter-spacing: 0; text-transform: none; }
.glf .glf-h:focus { outline: none; }
.glf .glf-sub { margin: 0; padding: 0; font-size: 15px; color: var(--glf-muted); }
.glf .glf-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }

.glf .glf-opt { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; width: 100%; margin: 0; padding: 12px 14px; text-align: left; border-radius: 12px; font: inherit; color: var(--glf-ink); cursor: pointer; border: 1px solid var(--glf-line); background: #fff; box-shadow: none; text-transform: none; letter-spacing: 0; line-height: 1.3; transition: border-color .15s, background .15s, transform .15s, box-shadow .15s; }
.glf .glf-opt:hover { border-color: #5E9E3F; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(17,20,17,.08); background: #fff; color: var(--glf-ink); }
.glf .glf-opt:active { transform: translateY(0) scale(.98); }
.glf .glf-opt[aria-pressed="true"] { border: 2px solid var(--glf-green); background: var(--glf-green-tint); padding: 11px 13px; }
.glf .glf-opt svg { flex-shrink: 0; }
.glf .glf-opt-label { font-size: 14px; font-weight: 600; line-height: 1.3; }
.glf .glf-opt:not(.glf-big) { justify-content: flex-start !important; text-align: left !important; }
.glf .glf-opt:not(.glf-big) .glf-opt-label { flex: 1 1 auto; text-align: left !important; padding-right: 22px; }
.glf .glf-opt.glf-big { flex-direction: column; justify-content: center !important; text-align: center !important; gap: 10px; padding: 24px 14px; border-radius: 14px; }
.glf .glf-opt.glf-big[aria-pressed="true"] { padding: 23px 13px; }
.glf .glf-opt.glf-big .glf-ic { width: 64px; height: 64px; border-radius: 16px; background: var(--glf-green-tint); display: flex; align-items: center; justify-content: center; }
.glf .glf-opt.glf-big .glf-opt-label { font-size: 18px; font-weight: 700; }
.glf .glf-opt.glf-big .glf-opt-sub { font-size: 13px; line-height: 1.4; color: #5a6056; }
.glf .glf-opt .glf-tick { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 99px; background: var(--glf-green); display: flex; align-items: center; justify-content: center; opacity: 0; transform: scale(.4); transition: opacity .18s, transform .18s; }
.glf .glf-opt[aria-pressed="true"] .glf-tick { opacity: 1; transform: scale(1); }

.glf .glf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.glf .glf-chip { background: var(--glf-green-tint); color: var(--glf-green-text); border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 600; }
.glf .glf-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.glf .glf-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.glf .glf-label { font-size: 13px; font-weight: 500; display: flex; flex-direction: column; gap: 6px; margin: 0; color: var(--glf-ink); }
.glf .glf-in { width: 100%; height: 48px; margin: 0; border: 1px solid #cfd4cb; border-radius: 8px; padding: 0 14px; font: inherit; font-size: 16px; background: #fff; color: var(--glf-ink); box-shadow: none; transition: border-color .15s, box-shadow .2s, background-color .2s; }
.glf textarea.glf-in { height: auto; min-height: 76px; padding: 12px 14px; resize: vertical; }
.glf .glf-in:focus { outline: none; border-color: #5E9E3F; box-shadow: 0 0 0 4px rgba(82,164,71,.18); }
.glf .glf-in.glf-ok { border-color: #5E9E3F; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%233F7A2A' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") no-repeat right 12px center; }
.glf .glf-in.glf-bad { border-color: #b42318; box-shadow: 0 0 0 4px rgba(180,35,24,.12); }
.glf .glf-shake { animation: glf-shake .42s cubic-bezier(.36,.07,.19,.97) both; }
.glf .glf-err { font-size: 13px; font-weight: 600; color: #b42318; }
.glf .glf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 54px; margin: 0; border: none; border-radius: 8px; background: var(--glf-green); color: #fff; font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; box-shadow: none; text-transform: none; letter-spacing: 0; transition: background .15s, transform .1s; }
.glf .glf-btn:hover { background: #356a23; color: #fff; }
.glf .glf-btn:active { transform: scale(.99); }
.glf .glf-btn[disabled] { opacity: .7; cursor: wait; }
.glf .glf-opt:focus-visible, .glf .glf-btn:focus-visible, .glf .glf-back:focus-visible, .glf .glf-linkbtn:focus-visible { outline: 3px solid rgba(82,164,71,.45); outline-offset: 1px; }
.glf .glf-spin { width: 18px; height: 18px; border-radius: 99px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: glf-spin .7s linear infinite; }
.glf .glf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.glf .glf-consent { margin: 0; font-size: 12px; line-height: 1.55; color: #5a6056; }
.glf .glf-consent a { color: var(--glf-green); font-weight: 600; text-decoration: underline; }

.glf .glf-addr-wrap { position: relative; }
.glf .glf-addr-list { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; margin: 6px 0 0 !important; padding: 6px !important; list-style: none !important; background: #fff !important; border: 1px solid #dfe3da; border-radius: 12px; box-shadow: 0 18px 40px rgba(17,20,17,.14); overflow: hidden; animation: glf-pop .16s ease-out both; }
.glf .glf-addr-list li { display: flex !important; align-items: center; gap: 12px; margin: 0 !important; padding: 10px 12px !important; border: 0 !important; border-radius: 9px; background: transparent !important; box-shadow: none !important; font-size: 14px; line-height: 1.3; color: var(--glf-ink); cursor: pointer; list-style: none !important; text-align: left; }
.glf .glf-addr-list li + li { border-top: 1px solid #eef0ea !important; border-radius: 0 0 9px 9px; }
.glf .glf-addr-list li::before, .glf .glf-addr-list li::after { content: none !important; display: none !important; }
.glf .glf-addr-pin { flex: 0 0 32px; width: 32px; height: 32px; border-radius: 99px; background: var(--glf-green-tint); display: flex; align-items: center; justify-content: center; }
.glf .glf-addr-txt { display: flex; flex-direction: column; min-width: 0; }
.glf .glf-addr-txt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glf .glf-addr-txt small { display: block; margin-top: 2px; color: #6a7066; font-size: 12.5px; }
.glf .glf-addr-list li[aria-selected="true"], .glf .glf-addr-list li:hover { background: var(--glf-green-tint) !important; border-top-color: transparent !important; border-radius: 9px; }
.glf .glf-addr-list li:hover + li, .glf .glf-addr-list li[aria-selected="true"] + li { border-top-color: transparent !important; }
.glf .glf-addr-foot { display: block; padding: 6px 12px 2px; font-size: 11px; color: #9aa094; text-align: right; }
@keyframes glf-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.glf .glf-done { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 12px 0; }
.glf .glf-check { width: 72px; height: 72px; border-radius: 999px; background: var(--glf-green); display: flex; align-items: center; justify-content: center; animation: glf-pop .45s cubic-bezier(.2,1.4,.4,1) both; }
.glf .glf-done .glf-h { font-size: 26px; }
.glf .glf-done .glf-p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--glf-muted); max-width: 380px; }
.glf .glf-link { color: var(--glf-green); font-weight: 700; }
.glf .glf-linkbtn { border: none; background: none; box-shadow: none; margin: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--glf-green); cursor: pointer; text-decoration: underline; text-transform: none; }
.glf .glf-confetti { position: absolute; left: 50%; top: 48px; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; }
.glf .glf-testbar { position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); max-width: min(92vw, 640px); background: #1c1f1a; color: #fff; font-size: 13px; padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.25); z-index: 99999; }
.glf .glf-testbar pre { margin: 8px 0 0; max-height: 40vh; overflow: auto; font-size: 11px; white-space: pre-wrap; color: #cfe7bf; background: none; border: 0; padding: 0; }

/* Photo uploads */
.glf .glf-optional { font-weight: 400; color: #6a7066; }
.glf .glf-drop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 14px; border: 1.5px dashed #b9c4b1; border-radius: 12px; background: #fafbf8; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.glf .glf-drop:hover, .glf .glf-drop.glf-drag { border-color: var(--glf-green); background: var(--glf-green-tint); }
.glf .glf-drop:focus-within { outline: 3px solid rgba(82,164,71,.45); outline-offset: 1px; }
.glf .glf-file-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.glf .glf-drop-main { font-size: 14px; font-weight: 600; color: var(--glf-ink); }
.glf .glf-drop-sub { font-size: 12px; color: #6a7066; }
.glf .glf-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.glf .glf-files:empty { display: none; }
.glf .glf-file { position: relative; display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; animation: glf-card-in .3s ease both; }
.glf .glf-file::before { display: none; }
.glf .glf-file img, .glf .glf-file-doc { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid #e3e6df; }
.glf .glf-file-doc { display: flex; align-items: center; justify-content: center; background: var(--glf-green-tint); color: var(--glf-green-text); font-weight: 700; font-size: 13px; }
.glf .glf-file-name { font-size: 11px; color: #5a6056; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.glf .glf-file-x { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; margin: 0; padding: 0; border: none; border-radius: 99px; background: rgba(28,31,26,.75); color: #fff; font: inherit; font-size: 16px; line-height: 24px; cursor: pointer; box-shadow: none; }
.glf .glf-file-count { font-size: 12px; color: #6a7066; }
.glf .glf-file-count:empty { display: none; }

/* Motion */
.glf .glf-enter-fwd { animation: glf-in-fwd .32s ease both; }
.glf .glf-enter-back { animation: glf-in-back .32s ease both; }
.glf .glf-enter-fwd .glf-opt, .glf .glf-enter-back .glf-opt { animation: glf-card-in .38s cubic-bezier(.2,.8,.3,1) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
.glf .glf-opt.glf-big:hover .glf-ic { animation: glf-bounce .55s cubic-bezier(.3,1.6,.5,1); }
.glf .glf-bars span.glf-pulse { animation: glf-glow 1.1s ease 1; }
@keyframes glf-in-fwd { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes glf-in-back { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
@keyframes glf-card-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes glf-pop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes glf-spin { to { transform: rotate(360deg); } }
@keyframes glf-shake { 10%,90% { transform: translateX(-1px); } 20%,80% { transform: translateX(3px); } 30%,50%,70% { transform: translateX(-6px); } 40%,60% { transform: translateX(6px); } }
@keyframes glf-bounce { 0% { transform: translateY(0); } 40% { transform: translateY(-7px); } 70% { transform: translateY(1px); } 100% { transform: translateY(0); } }
@keyframes glf-glow { 0% { box-shadow: 0 0 0 0 rgba(82,164,71,.6); } 100% { box-shadow: 0 0 0 7px rgba(82,164,71,0); } }

@media (prefers-reduced-motion: reduce) {
  .glf *, .glf *::before, .glf *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 480px) {
  .glf .glf-card { padding: 20px; }
  .glf .glf-grid2.glf-types { grid-template-columns: 1fr; }
  .glf .glf-fields { grid-template-columns: 1fr; }
}

/* ===== 1.3.3: fit narrow spaces (phones, theme popups) =====
   Sized by the form's own width, not the screen's, because popups add their own padding. */
.glf { container-type: inline-size; width: 100%; min-width: 0; }
.glf, .glf * { word-break: normal !important; overflow-wrap: normal !important; -webkit-hyphens: manual !important; hyphens: manual !important; }
.glf input, .glf textarea, .glf .glf-file { overflow-wrap: anywhere !important; }

@container (max-width: 560px) {
  .glf .glf-card { padding: 18px 16px; gap: 14px; border-radius: 14px; box-shadow: none; }
  .glf .glf-h { font-size: 22px; line-height: 1.2; }
  .glf .glf-sub { font-size: 14px; }
  .glf .glf-grid2 { grid-template-columns: 1fr; gap: 8px; margin-top: 12px; }
  .glf .glf-fields { grid-template-columns: 1fr; gap: 10px; }
  .glf .glf-opt { min-height: 54px; padding: 10px 14px; gap: 12px; }
  .glf .glf-opt[aria-pressed="true"] { padding: 9px 13px; }
  .glf .glf-opt-label { font-size: 15px; }
  /* Home / business: a row with the icon on the left instead of two tall squeezed tiles. */
  .glf .glf-opt.glf-big { display: grid !important; grid-template-columns: 52px 1fr; grid-template-rows: auto auto; column-gap: 14px; row-gap: 2px; align-items: center; justify-content: stretch !important; text-align: left !important; padding: 14px 40px 14px 14px; }
  .glf .glf-opt.glf-big[aria-pressed="true"] { padding: 13px 39px 13px 13px; }
  .glf .glf-opt.glf-big .glf-ic { grid-row: 1 / span 2; width: 52px; height: 52px; border-radius: 13px; }
  .glf .glf-opt.glf-big .glf-ic svg { width: 28px; height: 28px; }
  .glf .glf-opt.glf-big .glf-opt-label { font-size: 17px; align-self: end; padding-right: 0; }
  .glf .glf-opt.glf-big .glf-opt-sub { font-size: 13px; align-self: start; }
  .glf .glf-opt .glf-tick { top: 50%; margin-top: -11px; right: 12px; }
  .glf .glf-chips { gap: 6px; }
  .glf .glf-done .glf-h { font-size: 22px; }
}
