/* Form and progress. Inherits the landing page's fonts and text colour.
   Override --gbpa-accent etc. in your theme CSS if needed. */
.gbpa-wrap { --gbpa-border: color-mix(in srgb, currentColor 28%, transparent); --gbpa-soft: color-mix(in srgb, currentColor 66%, transparent); --gbpa-radius: 6px; --gbpa-err: #b42318; }
.gbpa-form { max-width: 34rem; font: inherit; color: inherit; }
.gbpa-form *, .gbpa-progress * { box-sizing: border-box; }
.gbpa-field { margin: 0 0 1.1rem; }
.gbpa-field label { display: block; font-weight: 600; margin: 0 0 .35rem; line-height: 1.35; }
.gbpa-optional { font-weight: 400; color: var(--gbpa-soft); }
.gbpa-field input, .gbpa-field textarea { display: block; width: 100%; font: inherit; color: inherit; background: transparent; border: 1px solid var(--gbpa-border); border-radius: var(--gbpa-radius); padding: .7rem .8rem; line-height: 1.4; min-height: 2.9rem; }
.gbpa-field textarea { resize: vertical; min-height: 5.5rem; }
.gbpa-form :focus-visible { outline: 2px solid var(--gbpa-brand, #1f5f8b); outline-offset: 2px; }
.gbpa-hint, .gbpa-note { margin: .35rem 0 0; font-size: .9em; color: var(--gbpa-soft); }
.gbpa-note { margin: 1rem 0 .8rem; }
.gbpa-check { display: flex; gap: .6rem; align-items: flex-start; margin: 0 0 .7rem; line-height: 1.45; cursor: pointer; }
.gbpa-check input { width: 1.15rem; height: 1.15rem; margin: .15rem 0 0; flex: none; accent-color: var(--gbpa-brand, #1f5f8b); }
.gbpa-check a { color: inherit; }
.gbpa-submit { display: inline-block; width: 100%; font: inherit; font-weight: 700; padding: .9rem 1.2rem; border: 0; border-radius: var(--gbpa-radius); background: var(--gbpa-brand, #1f5f8b); color: #fff; cursor: pointer; }
.gbpa-submit[disabled] { opacity: .65; cursor: progress; }
.gbpa-status:empty { display: none; }
.gbpa-status { margin: 1rem 0 0; padding: .9rem 1rem; border-radius: var(--gbpa-radius); border: 1px solid var(--gbpa-border); }
.gbpa-status.is-error { border-color: var(--gbpa-err); color: var(--gbpa-err); }
.gbpa-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.gbpa-progress { max-width: 34rem; padding: 1.25rem; border: 1px solid var(--gbpa-border); border-radius: 10px; }
.gbpa-progress-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 1rem; }
.gbpa-progress-title { margin: 0; font-weight: 700; font-size: 1.1em; line-height: 1.3; }
.gbpa-elapsed { font-variant-numeric: tabular-nums; color: var(--gbpa-soft); font-size: .95em; }
.gbpa-steps { list-style: none; margin: 0; padding: 0; }
.gbpa-steps li { position: relative; display: grid; grid-template-columns: 1.5rem 1fr auto; align-items: center; gap: .75rem; padding: .7rem 0; color: var(--gbpa-soft); }
.gbpa-steps li + li { border-top: 1px solid var(--gbpa-border); }
.gbpa-step-state { font-size: .85em; }
/* Step marker: empty ring (waiting), spinning ring (active), filled disc with tick (done). Pure CSS. */
.gbpa-step-mark { width: 1.25rem; height: 1.25rem; border-radius: 50%; border: 2px solid var(--gbpa-border); box-sizing: border-box; position: relative; }
.gbpa-steps li.is-active { color: inherit; font-weight: 600; }
.gbpa-steps li.is-active .gbpa-step-mark { border-color: var(--gbpa-border); border-top-color: var(--gbpa-brand, #1f5f8b); animation: gbpa-spin .9s linear infinite; }
.gbpa-steps li.is-done { color: inherit; }
.gbpa-steps li.is-done .gbpa-step-mark { background: var(--gbpa-brand, #1f5f8b); border-color: var(--gbpa-brand, #1f5f8b); }
.gbpa-steps li.is-done .gbpa-step-mark::after { content: ""; position: absolute; left: .34rem; top: .14rem; width: .3rem; height: .55rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.gbpa-steps li.is-done .gbpa-step-state { color: var(--gbpa-soft); }
/* Moving bar under the active step. */
.gbpa-steps li.is-active::after { content: ""; position: absolute; left: 2.25rem; right: 0; bottom: 0; height: 3px; border-radius: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gbpa-brand, #1f5f8b) 50%, transparent 100%); background-size: 50% 100%; background-repeat: no-repeat;
  animation: gbpa-sweep 1.6s ease-in-out infinite; }
.gbpa-detail { min-height: 1.5em; margin: 1rem 0 .25rem; font-size: .95em; opacity: 0; transform: translateY(4px); }
.gbpa-detail.is-in { opacity: 1; transform: none; transition: opacity .4s ease, transform .4s ease; }
.gbpa-progress-note { margin: .5rem 0 0; font-size: .88em; color: var(--gbpa-soft); }
@keyframes gbpa-spin { to { transform: rotate(360deg); } }
@keyframes gbpa-sweep { 0% { background-position: -100% 0; } 100% { background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce) {
  .gbpa-steps li.is-active .gbpa-step-mark { animation: none; border-color: var(--gbpa-brand, #1f5f8b); }
  .gbpa-steps li.is-active::after { animation: none; background: var(--gbpa-brand, #1f5f8b); opacity: .35; }
  .gbpa-detail.is-in { transition: none; }
}
.gbpa-result:focus { outline: none; }
.gbpa-result-note { margin: 1rem 0 0; color: var(--gbpa-soft); }
@media (min-width: 40rem) { .gbpa-submit { width: auto; } }
