.fdtc-wrapper {
  --fdtc-primary: #173f5f;
  --fdtc-primary-dark: #0e2d46;
  --fdtc-accent: #e76f2e;
  --fdtc-eyebrow: #009e00;
  --fdtc-header-align: right;
  --fdtc-text: #1d2935;
  --fdtc-muted: #61717f;
  --fdtc-line: #dce3e8;
  --fdtc-surface: #f6f8fa;
  --fdtc-white: #fff;
  max-width: 1120px;
  margin: 0 auto 4rem;
  color: var(--fdtc-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.fdtc-intro {
  max-width: 790px;
  margin: 1rem auto 2.25rem;
  text-align: var(--fdtc-header-align);
}

.fdtc-eyebrow {
  display: inline-block;
  margin-bottom: .7rem;
  color: var(--fdtc-eyebrow);
  font-size: .78rem;
  font-weight: 750;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.fdtc-intro h1 {
  margin: 0 0 .85rem;
  color: var(--fdtc-primary-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.fdtc-lead {
  color: var(--fdtc-muted);
  font-size: 1.08rem;
  line-height: 1.7;
}

.fdtc-lead p:last-child {
  margin-bottom: 0;
}

.fdtc-alert {
  display: grid;
  gap: .3rem;
  margin: 0 0 1.5rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid;
  border-radius: 10px;
  line-height: 1.5;
}

.fdtc-alert--success {
  border-color: #a8d8be;
  background: #effaf4;
  color: #175f38;
}

.fdtc-alert--error {
  border-color: #efb3b3;
  background: #fff3f3;
  color: #8c2020;
}

.fdtc-alert ul {
  margin: .4rem 0 0 1.2rem;
}

.fdtc-form {
  display: grid;
  gap: 1.35rem;
}

.fdtc-section {
  min-width: 0;
  margin: 0;
  padding: 1.75rem;
  border: 1px solid var(--fdtc-line);
  border-radius: 12px;
  background: var(--fdtc-white);
  box-shadow: 0 8px 28px rgba(14, 45, 70, .055);
}

.fdtc-section legend {
  display: flex;
  width: 100%;
  margin: 0 0 1.5rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid var(--fdtc-line);
  color: var(--fdtc-primary-dark);
  line-height: 1.3;
}

.fdtc-section legend > span:last-child {
  display: grid;
  gap: .25rem;
}

.fdtc-section legend strong {
  font-size: 1.2rem;
  font-weight: 730;
}

.fdtc-section legend small {
  color: var(--fdtc-muted);
  font-size: .9rem;
  font-weight: 400;
}

.fdtc-step {
  display: inline-grid;
  flex: 0 0 2.5rem;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: .9rem;
  border-radius: 50%;
  background: var(--fdtc-primary);
  color: #fff;
  place-items: center;
  font-size: .8rem;
  font-weight: 750;
}

.fdtc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem 1.4rem;
}

.fdtc-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: .5rem;
}

.fdtc-field--wide {
  grid-column: 1 / -1;
}

.fdtc-field label,
.fdtc-label {
  margin: 0;
  color: var(--fdtc-text);
  font-size: .92rem;
  font-weight: 680;
}

.fdtc-field label > span[aria-hidden="true"],
.fdtc-label > span[aria-hidden="true"],
.fdtc-submit p span {
  color: #b42318;
}

.fdtc-field input[type="text"],
.fdtc-field input[type="email"],
.fdtc-field input[type="tel"],
.fdtc-field select,
.fdtc-field textarea {
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: .75rem .85rem;
  border: 1px solid #bdc8d0;
  border-radius: 7px;
  outline: 0;
  background: #fff;
  color: var(--fdtc-text);
  font: inherit;
  line-height: 1.4;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.fdtc-field textarea {
  min-height: 108px;
  resize: vertical;
}

.fdtc-field input:focus,
.fdtc-field select:focus,
.fdtc-field textarea:focus {
  border-color: var(--fdtc-primary);
  box-shadow: 0 0 0 3px rgba(23, 63, 95, .13);
}

.fdtc-field input::placeholder,
.fdtc-field textarea::placeholder {
  color: #82909b;
  opacity: 1;
}

.fdtc-options {
  display: flex;
  gap: .65rem;
}

.fdtc-options--wrap {
  flex-wrap: wrap;
}

.fdtc-options label {
  position: relative;
  flex: 1 1 auto;
  cursor: pointer;
}

.fdtc-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fdtc-options label span {
  display: grid;
  min-height: 46px;
  padding: .65rem .9rem;
  border: 1px solid #bdc8d0;
  border-radius: 7px;
  background: #fff;
  color: #40515f;
  place-items: center;
  text-align: center;
  transition: all .18s ease;
}

.fdtc-options input:checked + span {
  border-color: var(--fdtc-primary);
  background: #edf3f7;
  color: var(--fdtc-primary-dark);
  box-shadow: inset 0 0 0 1px var(--fdtc-primary);
}

.fdtc-options input:focus-visible + span {
  outline: 3px solid rgba(23, 63, 95, .2);
  outline-offset: 2px;
}

.fdtc-upload {
  position: relative;
  margin-bottom: 1.25rem;
}

.fdtc-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.fdtc-upload label {
  display: grid;
  min-height: 155px;
  margin: 0;
  padding: 1.25rem;
  border: 2px dashed #aebdc8;
  border-radius: 10px;
  background: var(--fdtc-surface);
  cursor: pointer;
  place-items: center;
  align-content: center;
  gap: .3rem;
  text-align: center;
  transition: border-color .18s ease, background .18s ease;
}

.fdtc-upload label:hover,
.fdtc-upload input:focus-visible + label,
.fdtc-upload.is-selected label {
  border-color: var(--fdtc-primary);
  background: #edf3f7;
}

.fdtc-upload-icon {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: .25rem;
  border-radius: 50%;
  background: var(--fdtc-primary);
  color: #fff;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.fdtc-upload label strong {
  color: var(--fdtc-primary-dark);
  font-size: 1rem;
}

.fdtc-upload label span:last-child {
  color: var(--fdtc-muted);
  font-size: .88rem;
}

.fdtc-consent {
  display: grid;
  grid-template-columns: 1.15rem 1fr;
  gap: .75rem;
  align-items: start;
  margin: 0;
  color: #485965;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 400;
  line-height: 1.55;
}

.fdtc-consent input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .13rem;
  accent-color: var(--fdtc-primary);
}

.fdtc-consent a {
  color: var(--fdtc-primary);
  font-weight: 650;
  text-decoration: underline;
}

.fdtc-turnstile {
  display: flex;
  margin-top: 1.2rem;
  justify-content: flex-start;
}

.fdtc-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .35rem 0 0;
}

.fdtc-submit p {
  margin: 0;
  color: var(--fdtc-muted);
  font-size: .84rem;
}

.fdtc-submit button {
  display: inline-flex;
  min-height: 52px;
  padding: .8rem 1.3rem;
  border: 0;
  border-radius: 7px;
  background: var(--fdtc-accent);
  color: #fff;
  cursor: pointer;
  align-items: center;
  gap: 1.25rem;
  font: inherit;
  font-weight: 730;
  box-shadow: 0 7px 18px rgba(196, 79, 18, .2);
  transition: background .18s ease, transform .18s ease;
}

.fdtc-submit button:hover {
  background: #cc5719;
  transform: translateY(-1px);
}

.fdtc-submit button:focus-visible {
  outline: 3px solid rgba(231, 111, 46, .28);
  outline-offset: 3px;
}

.fdtc-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 767px) {
  .fdtc-wrapper {
    margin-bottom: 2.5rem;
  }

  .fdtc-intro {
    margin-top: .25rem;
    margin-bottom: 1.5rem;
  }

  .fdtc-section {
    padding: 1.2rem;
    border-radius: 9px;
  }

  .fdtc-grid {
    grid-template-columns: 1fr;
  }

  .fdtc-field--wide {
    grid-column: auto;
  }

  .fdtc-section legend {
    align-items: flex-start;
  }

  .fdtc-section legend strong {
    font-size: 1.05rem;
  }

  .fdtc-options--inline {
    flex-wrap: wrap;
  }

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

  .fdtc-submit button {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fdtc-wrapper *,
  .fdtc-wrapper *::before,
  .fdtc-wrapper *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
