.elb-shell,
.elb-shell * {
  box-sizing: border-box;
}

.elb-shell {
  --elb-accent: #2f7d45;
  --elb-ink: #13241a;
  --elb-muted: #5d6b62;
  --elb-line: #dfe7e1;
  --elb-soft: #f4f7f5;
  --elb-white: #fff;
  color: var(--elb-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0 auto;
  max-width: 920px;
  padding: 20px 0;
  scroll-margin-top: 28px;
}

.elb-card {
  background: var(--elb-white);
  border: 1px solid rgba(19, 36, 26, 0.1);
  border-radius: 24px;
  box-shadow: 0 22px 70px rgba(21, 48, 31, 0.12);
  overflow: hidden;
  padding: clamp(24px, 5vw, 56px);
  position: relative;
}

.elb-card::before {
  background: linear-gradient(90deg, var(--elb-accent), #83b86a);
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.elb-intro {
  margin: 0 auto 34px;
  max-width: 700px;
  text-align: center;
}

.elb-eyebrow {
  color: var(--elb-accent);
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.elb-intro h2 {
  color: var(--elb-ink);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 0 0 14px;
}

.elb-intro p {
  color: var(--elb-muted);
  font-size: 1.04rem;
  line-height: 1.65;
  margin: 0;
}

.elb-notice {
  align-items: flex-start;
  border: 1px solid;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 28px;
  padding: 14px 16px;
}

.elb-notice--success {
  background: #ecf9f0;
  border-color: #a5d8b4;
  color: #14552a;
}

.elb-notice--warning {
  background: #fff8df;
  border-color: #ead287;
  color: #6c5100;
}

.elb-notice--error {
  background: #fff0f0;
  border-color: #efb4b4;
  color: #8a2020;
}

.elb-notice__list {
  margin: 6px 0 0;
  padding-left: 18px;
}

.elb-notice__list li {
  margin: 2px 0;
}

.elb-upload__count {
  color: var(--elb-muted);
  font-size: 0.78rem;
  margin: -8px 0 14px;
}

.elb-upload__count[hidden] {
  display: none;
}

.elb-upload__error {
  color: #8a2020;
  font-size: 0.82rem;
  margin: -8px 0 16px;
}

.elb-upload__error[hidden] {
  display: none;
}

.elb-progress {
  margin: 0 auto 38px;
  max-width: 670px;
}

.elb-progress__bar {
  background: #e5ebe7;
  border-radius: 999px;
  height: 7px;
  overflow: hidden;
}

.elb-progress__bar span {
  background: var(--elb-accent);
  border-radius: inherit;
  display: block;
  height: 100%;
  transition: width 260ms ease;
  width: 33.333%;
}

.elb-progress__labels {
  color: #849087;
  display: flex;
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: space-between;
  margin-top: 10px;
}

.elb-progress__labels span.is-active {
  color: var(--elb-accent);
}

.elb-form {
  margin: 0 auto;
  max-width: 670px;
}

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

/* Hidden immediately, not only once JS adds a class, so all three steps
   do not flash on screen before the footer script runs. The plugin prints a
   <noscript> block that reverts this for visitors without JavaScript. */
.elb-step:not(.is-active) {
  display: none;
}

.elb-step legend {
  color: var(--elb-ink);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding: 0;
}

.elb-step__hint {
  color: var(--elb-muted);
  line-height: 1.55;
  margin: 7px 0 24px;
}

.elb-grid {
  display: grid;
  gap: 18px;
}

.elb-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.elb-field {
  display: block;
  margin: 0 0 18px;
}

.elb-field > span:not(.elb-upload__dropzone) {
  color: #273b2e;
  display: block;
  font-size: 0.89rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.elb-field b,
.elb-consent b {
  color: var(--elb-accent);
}

.elb-field input,
.elb-field select,
.elb-field textarea {
  appearance: none;
  background: var(--elb-white);
  border: 1px solid #cfd9d2;
  border-radius: 10px;
  color: var(--elb-ink);
  font: inherit;
  line-height: 1.4;
  outline: none;
  padding: 13px 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  width: 100%;
}

.elb-field select {
  background-image: linear-gradient(45deg, transparent 50%, #647269 50%), linear-gradient(135deg, #647269 50%, transparent 50%);
  background-position: calc(100% - 19px) calc(50% - 2px), calc(100% - 14px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 38px;
}

.elb-field textarea {
  min-height: 150px;
  resize: vertical;
}

.elb-field input:focus,
.elb-field select:focus,
.elb-field textarea:focus {
  border-color: var(--elb-accent);
  /* Fallback first for browsers without color-mix() support. */
  box-shadow: 0 0 0 3px rgba(47, 125, 69, 0.16);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--elb-accent) 16%, transparent);
}

.elb-field input.is-invalid,
.elb-field select.is-invalid,
.elb-field textarea.is-invalid {
  border-color: #be3030;
}

.elb-field small {
  color: #76827a;
  display: block;
  font-size: 0.75rem;
  margin-top: 6px;
  text-align: right;
}

.elb-actions {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  margin-top: 27px;
}

.elb-actions--end {
  justify-content: flex-end;
}

.elb-button {
  align-items: center;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 800;
  gap: 9px;
  justify-content: center;
  min-height: 48px;
  padding: 12px 21px;
  text-decoration: none;
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.elb-button:hover {
  transform: translateY(-1px);
}

.elb-button--primary {
  background: var(--elb-accent);
  box-shadow: 0 9px 24px rgba(47, 125, 69, 0.25);
  box-shadow: 0 9px 24px color-mix(in srgb, var(--elb-accent) 25%, transparent);
  color: #fff;
}

.elb-button--secondary {
  background: var(--elb-soft);
  color: #3e5145;
}

.elb-button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.elb-upload {
  cursor: pointer;
}

.elb-field > span {
  display: flex;
  justify-content: space-between;
}

.elb-field > span em {
  color: #849087;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
}

.elb-upload__title {
  display: flex !important;
  justify-content: space-between;
}

.elb-upload__title em {
  color: #849087;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 600;
}

.elb-upload input[type="file"] {
  height: 1px;
  opacity: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.elb-upload__dropzone {
  align-items: center;
  background: var(--elb-soft);
  border: 1.5px dashed #b5c4ba;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 145px;
  padding: 22px;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease;
}

.elb-upload:hover .elb-upload__dropzone,
.elb-upload input:focus-visible + .elb-upload__dropzone,
.elb-upload input:focus + .elb-upload__dropzone {
  background: #f2f8f4;
  background: color-mix(in srgb, var(--elb-accent) 7%, #fff);
  border-color: var(--elb-accent);
}

.elb-upload__icon {
  align-items: center;
  background: var(--elb-accent);
  border-radius: 50%;
  color: #fff;
  display: flex;
  font-size: 1.2rem;
  height: 34px;
  justify-content: center;
  margin-bottom: 10px;
  width: 34px;
}

.elb-upload__dropzone strong {
  color: var(--elb-ink);
}

.elb-upload__dropzone small {
  color: var(--elb-muted);
  margin-top: 5px;
  text-align: center;
}

.elb-previews {
  display: grid;
  gap: 9px;
  /* Fixed tile width so a single preview does not stretch across the form. */
  grid-template-columns: repeat(auto-fill, minmax(0, 118px));
  margin: -6px 0 20px;
}

.elb-previews:empty {
  display: none;
}

.elb-previews > span {
  min-width: 0;
  position: relative;
}

.elb-previews__remove {
  align-items: center;
  background: rgba(19, 36, 26, 0.72);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  height: 24px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: absolute;
  right: 4px;
  top: 4px;
  width: 24px;
}

.elb-previews__remove:hover,
.elb-previews__remove:focus-visible {
  background: #8a2020;
}

.elb-previews img {
  aspect-ratio: 1;
  border-radius: 8px;
  display: block;
  object-fit: cover;
  width: 100%;
}

.elb-previews small {
  color: var(--elb-muted);
  display: block;
  font-size: 0.68rem;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.elb-consent {
  align-items: flex-start;
  color: var(--elb-muted);
  display: flex;
  font-size: 0.82rem;
  gap: 10px;
  line-height: 1.5;
  margin-top: 10px;
}

.elb-consent input {
  accent-color: var(--elb-accent);
  flex: 0 0 auto;
  height: 18px;
  margin-top: 2px;
  width: 18px;
}

/* The consent wording must always be legible - it is what the visitor is
   agreeing to. Themes commonly style "label > input + span" as a custom
   checkbox indicator with white text, which made this invisible. !important is
   deliberate here and used nowhere else. */
.elb-shell .elb-consent > span {
  color: var(--elb-muted) !important;
}

.elb-shell .elb-consent > span b {
  color: var(--elb-accent) !important;
}

.elb-turnstile {
  margin: 4px 0 18px;
}

.elb-privacy {
  color: #7b887f;
  font-size: 0.75rem;
  margin: 14px 0 0;
  text-align: right;
}

.elb-honeypot {
  height: 0;
  left: -9999px;
  overflow: hidden;
  position: absolute;
  width: 0;
}

@media (max-width: 640px) {
  .elb-shell {
    padding: 8px 0;
  }

  .elb-card {
    border-radius: 16px;
    padding: 30px 19px;
  }

  .elb-intro {
    margin-bottom: 28px;
  }

  .elb-grid--2 {
    gap: 0;
    grid-template-columns: 1fr;
  }

  .elb-progress__labels {
    font-size: 0.7rem;
  }

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

  .elb-actions--end {
    flex-direction: column;
  }

  .elb-button {
    width: 100%;
  }

  .elb-previews {
    grid-template-columns: repeat(auto-fill, minmax(0, 95px));
  }

  .elb-turnstile {
  margin: 4px 0 18px;
}

.elb-privacy {
    text-align: center;
  }
}


@media (prefers-reduced-motion: reduce) {
  .elb-shell *,
  .elb-shell *::before {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .elb-button:hover {
    transform: none;
  }
}

/* ---------------------------------------------------------------------------
   Theme-conflict guards.

   Every text element below previously took its colour by inheritance, which
   any theme or Elementor global typography rule can override. The doubled
   .elb-shell class raises specificity enough to win against typical theme
   selectors without resorting to !important.
   --------------------------------------------------------------------------- */
.elb-shell.elb-shell .elb-intro h2,
.elb-shell.elb-shell .elb-step legend {
  color: var(--elb-ink);
}

.elb-shell.elb-shell .elb-intro p,
.elb-shell.elb-shell .elb-step__hint,
.elb-shell.elb-shell .elb-field > span,
.elb-shell.elb-shell .elb-progress__labels span {
  color: var(--elb-muted);
}

.elb-shell.elb-shell .elb-field > span b {
  color: var(--elb-accent);
}

.elb-shell.elb-shell .elb-field input,
.elb-shell.elb-shell .elb-field select,
.elb-shell.elb-shell .elb-field textarea {
  background: var(--elb-white);
  color: var(--elb-ink);
}

.elb-shell.elb-shell .elb-field input::placeholder,
.elb-shell.elb-shell .elb-field textarea::placeholder {
  color: #94a29a;
  opacity: 1;
}

.elb-shell.elb-shell .elb-upload__dropzone strong {
  color: var(--elb-ink);
}

.elb-shell.elb-shell .elb-upload__title,
.elb-shell.elb-shell .elb-upload__dropzone small,
.elb-shell.elb-shell .elb-field small,
.elb-shell.elb-shell .elb-upload__count {
  color: var(--elb-muted);
}

.elb-shell.elb-shell .elb-button--primary {
  color: #fff;
}

.elb-shell.elb-shell .elb-button--secondary {
  color: var(--elb-ink);
}

.elb-shell.elb-shell .elb-notice strong,
.elb-shell.elb-shell .elb-notice span,
.elb-shell.elb-shell .elb-notice li {
  color: inherit;
}

/* ---------------------------------------------------------------------------
   Confirmation screen. Replaces the form once a request is saved, so nobody
   re-fills an empty form they have already submitted.
   --------------------------------------------------------------------------- */
.elb-thanks {
  padding: clamp(8px, 3vw, 26px) 0 clamp(4px, 2vw, 18px);
  text-align: center;
}

.elb-thanks .elb-eyebrow {
  display: block;
  margin-bottom: 22px;
}

.elb-thanks__mark {
  align-items: center;
  background: var(--elb-soft);
  border-radius: 50%;
  color: var(--elb-accent);
  display: inline-flex;
  height: 78px;
  justify-content: center;
  margin-bottom: 22px;
  width: 78px;
}

.elb-shell.elb-shell .elb-thanks h2 {
  color: var(--elb-ink);
  font-size: clamp(1.4rem, 2.6vw, 1.85rem);
  line-height: 1.22;
  margin: 0 auto 12px;
  max-width: 20ch;
}

.elb-shell.elb-shell .elb-thanks p {
  color: var(--elb-muted);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 44ch;
}

.elb-shell.elb-shell .elb-thanks__ref {
  border-top: 1px solid var(--elb-line);
  font-size: 0.86rem;
  margin: 26px auto 0;
  max-width: 42ch;
  padding-top: 20px;
}

.elb-shell.elb-shell .elb-thanks__ref strong {
  color: var(--elb-accent);
}
