.gwaef {
  --gwaef-green: #178c32;
  --gwaef-green-dark: #116f27;
  --gwaef-green-soft: #f1f8f2;
  --gwaef-ink: #111827;
  --gwaef-text: #374151;
  --gwaef-muted: #6b7280;
  --gwaef-line: #d8dee6;
  --gwaef-surface: #ffffff;
  color: var(--gwaef-text);
  margin: 0 auto;
  max-width: 1040px;
  padding: 20px 0 40px;
}

.gwaef *,
.gwaef *::before,
.gwaef *::after {
  box-sizing: border-box;
}

.gwaef__header {
  border-bottom: 1px solid var(--gwaef-line);
  margin-bottom: 22px;
  padding-bottom: 20px;
}

.gwaef__eyebrow {
  color: var(--gwaef-green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  margin: 0 0 7px;
  text-transform: uppercase;
}

.gwaef h2,
.gwaef h3,
.gwaef legend {
  color: var(--gwaef-ink);
  letter-spacing: 0;
}

.gwaef h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 0 0 8px;
}

.gwaef h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 24px 0 10px;
}

.gwaef__header > p:last-child,
.gwaef__intro {
  color: var(--gwaef-muted);
  line-height: 1.6;
  margin: 0;
  max-width: 760px;
}

.gwaef__steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0 0 28px;
  overflow-x: auto;
}

.gwaef__steps button {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--gwaef-line);
  border-radius: 0;
  color: var(--gwaef-muted);
  cursor: pointer;
  display: flex;
  font: inherit;
  font-size: 13px;
  gap: 7px;
  justify-content: center;
  min-height: 48px;
  padding: 8px;
  white-space: nowrap;
}

.gwaef__steps button span {
  align-items: center;
  background: #eef0f3;
  border-radius: 50%;
  display: inline-flex;
  font-size: 11px;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.gwaef__steps button.is-active {
  border-bottom-color: var(--gwaef-green);
  color: var(--gwaef-ink);
  font-weight: 700;
}

.gwaef__steps button.is-active span,
.gwaef__steps button.is-complete span {
  background: var(--gwaef-green);
  color: #ffffff;
}

.gwaef__steps button:disabled {
  cursor: default;
  opacity: 0.55;
}

.gwaef__form {
  position: relative;
}

.gwaef__panel {
  border: 0;
  margin: 0;
  min-width: 0;
  padding: 0;
}

.gwaef--enhanced .gwaef__panel {
  display: none;
}

.gwaef--enhanced .gwaef__panel.is-active {
  animation: gwaef-enter 220ms ease-out;
  display: block;
}

.gwaef__panel legend {
  align-items: center;
  border-bottom: 1px solid var(--gwaef-line);
  display: flex;
  font-size: 22px;
  font-weight: 700;
  gap: 10px;
  margin-bottom: 16px;
  padding: 0 0 12px;
  width: 100%;
}

.gwaef__panel legend span {
  color: var(--gwaef-green);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.gwaef__grid {
  display: grid;
  gap: 18px 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.gwaef label:not(.gwaef__check) {
  color: var(--gwaef-text);
  display: flex;
  flex-direction: column;
  font-size: 14px;
  font-weight: 650;
  gap: 7px;
  letter-spacing: 0;
}

.gwaef input[type="text"],
.gwaef input[type="email"],
.gwaef input[type="tel"],
.gwaef input[type="number"],
.gwaef input[type="date"],
.gwaef select,
.gwaef textarea,
.gwaef input[type="file"] {
  background: var(--gwaef-surface);
  border: 1px solid #b9c1cc;
  border-radius: 4px;
  color: var(--gwaef-ink);
  font: inherit;
  font-size: 16px;
  letter-spacing: 0;
  min-height: 48px;
  padding: 10px 12px;
  width: 100%;
}

.gwaef textarea {
  line-height: 1.5;
  min-height: 145px;
  resize: vertical;
}

.gwaef input:focus,
.gwaef select:focus,
.gwaef textarea:focus,
.gwaef button:focus-visible {
  border-color: var(--gwaef-green);
  box-shadow: 0 0 0 3px rgba(23, 140, 50, 0.18);
  outline: 0;
}

.gwaef [aria-invalid="true"],
.gwaef__options.has-error {
  border-color: #b42318 !important;
  box-shadow: 0 0 0 2px rgba(180, 35, 24, 0.12);
}

.gwaef__options {
  border: 1px solid transparent;
  display: grid;
  gap: 4px 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
}

.gwaef__check {
  align-items: flex-start;
  color: var(--gwaef-text);
  cursor: pointer;
  display: flex;
  font-size: 14px;
  font-weight: 500;
  gap: 9px;
  line-height: 1.4;
  padding: 7px 2px;
}

.gwaef__check input {
  accent-color: var(--gwaef-green);
  flex: 0 0 auto;
  height: 18px;
  margin: 1px 0 0;
  width: 18px;
}

.gwaef__manual-toggle {
  margin-top: 15px;
}

.gwaef__conditional {
  background: var(--gwaef-green-soft);
  border-left: 3px solid var(--gwaef-green);
  margin-top: 20px;
  padding: 16px 18px 18px;
}

.gwaef__conditional h3 {
  margin-top: 0;
}

.gwaef__wide,
.gwaef__upload {
  margin-top: 22px;
}

.gwaef__upload span {
  color: var(--gwaef-muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.gwaef__notice {
  border-left: 4px solid;
  margin: 0 0 20px;
  padding: 13px 15px;
}

.gwaef__notice--error {
  background: #fff4f2;
  border-color: #b42318;
  color: #7a271a;
}

.gwaef__notice--success,
.gwaef__success {
  background: var(--gwaef-green-soft);
  border-left: 4px solid var(--gwaef-green);
  padding: 22px;
}

.gwaef__summary {
  background: #f7f8fa;
  border: 1px solid var(--gwaef-line);
  padding: 18px;
}

.gwaef__summary dl {
  display: grid;
  gap: 8px 18px;
  grid-template-columns: 110px minmax(0, 1fr);
  margin: 0;
}

.gwaef__summary dt {
  color: var(--gwaef-muted);
  font-size: 13px;
  font-weight: 700;
}

.gwaef__summary dd {
  color: var(--gwaef-ink);
  margin: 0;
  overflow-wrap: anywhere;
}

.gwaef__terms {
  border-top: 1px solid var(--gwaef-line);
  margin-top: 24px;
  padding-top: 16px;
}

.gwaef__actions {
  align-items: center;
  border-top: 1px solid var(--gwaef-line);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 28px;
  padding-top: 18px;
}

.gwaef__button {
  border-radius: 24px;
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  min-height: 46px;
  padding: 10px 20px;
}

.gwaef__button--primary {
  background: var(--gwaef-green);
  border: 1px solid var(--gwaef-green);
  color: #ffffff;
}

.gwaef__button--primary:hover {
  background: var(--gwaef-green-dark);
  border-color: var(--gwaef-green-dark);
}

.gwaef__button--secondary {
  background: #ffffff;
  border: 1px solid #b9c1cc;
  color: var(--gwaef-ink);
}

.gwaef__button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.gwaef__privacy {
  color: var(--gwaef-muted);
  font-size: 12px;
  line-height: 1.5;
  margin: 14px 0 0;
  text-align: right;
}

.gwaef__trap {
  height: 1px;
  left: -10000px;
  overflow: hidden;
  position: absolute;
  top: auto;
  width: 1px;
}

[hidden] {
  display: none !important;
}

@keyframes gwaef-enter {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 820px) {
  .gwaef__options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gwaef__steps button {
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  .gwaef {
    padding-top: 8px;
  }

  .gwaef h2 {
    font-size: 24px;
  }

  .gwaef__grid,
  .gwaef__options {
    grid-template-columns: 1fr;
  }

  .gwaef__steps {
    grid-template-columns: repeat(5, minmax(74px, 1fr));
  }

  .gwaef__steps button {
    flex-direction: column;
    gap: 4px;
    min-height: 62px;
  }

  .gwaef__actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .gwaef__button {
    width: 100%;
  }

  .gwaef__summary dl {
    grid-template-columns: 1fr;
  }

  .gwaef__summary dd:not(:last-child) {
    margin-bottom: 7px;
  }

  .gwaef__privacy {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gwaef--enhanced .gwaef__panel.is-active {
    animation: none;
  }

  .gwaef * {
    scroll-behavior: auto !important;
  }
}

