.tpt-afs-intake,
.tpt-afs-intake * {
  box-sizing: border-box;
}

.tpt-afs-intake {
  --afs-navy: #0d2944;
  --afs-blue: #173f67;
  --afs-orange: #f28c18;
  --afs-orange-text: #a64f00;
  --afs-ink: #172331;
  --afs-muted: #5c6874;
  --afs-line: #d8e1e8;
  padding: 36px;
  color: #ffffff;
  background: var(--afs-blue);
  border-top: 6px solid var(--afs-orange);
  box-shadow: 0 16px 40px rgba(9, 35, 58, 0.14);
  font-family: "Open Sans", Arial, sans-serif;
}

.tpt-afs-intake__header {
  margin-bottom: 30px;
}

.tpt-afs-intake__eyebrow {
  margin: 0 0 10px;
  color: #ffc27a;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tpt-afs-intake__header h3 {
  margin: 0 0 12px;
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.55rem, 2.8vw, 2.25rem);
  line-height: 1.15;
}

.tpt-afs-intake__header > p:last-child {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.tpt-afs-intake__form {
  display: grid;
  gap: 25px;
}

.tpt-afs-intake fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.tpt-afs-intake legend,
.tpt-afs-intake__field > label {
  display: block;
  margin: 0 0 9px;
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}

.tpt-afs-intake legend {
  margin-bottom: 13px;
  font-size: 0.92rem;
}

.tpt-afs-intake__optional {
  color: rgba(255, 255, 255, 0.62);
  font-family: "Open Sans", Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
}

.tpt-afs-intake__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.tpt-afs-intake__field {
  min-width: 0;
}

.tpt-afs-intake input[type="text"],
.tpt-afs-intake input[type="email"],
.tpt-afs-intake input[type="tel"],
.tpt-afs-intake select,
.tpt-afs-intake textarea {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 12px 14px;
  color: var(--afs-ink);
  background: #ffffff;
  border: 2px solid #ffffff;
  border-radius: 2px;
  box-shadow: none;
  font: inherit;
  line-height: 1.45;
}

.tpt-afs-intake textarea {
  min-height: 145px;
  resize: vertical;
}

.tpt-afs-intake input::placeholder,
.tpt-afs-intake textarea::placeholder {
  color: #68747f;
  opacity: 1;
}

.tpt-afs-intake input:focus-visible,
.tpt-afs-intake select:focus-visible,
.tpt-afs-intake textarea:focus-visible,
.tpt-afs-intake summary:focus-visible,
.tpt-afs-intake button:focus-visible,
.tpt-afs-intake a:focus-visible {
  outline: 3px solid #ffbd70;
  outline-offset: 3px;
}

.tpt-afs-intake__hint {
  margin: -5px 0 12px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.8rem;
}

.tpt-afs-intake__checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tpt-afs-intake__checks label {
  min-height: 48px;
  margin: 0;
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  font-size: 0.86rem;
  line-height: 1.4;
}

.tpt-afs-intake__checks input,
.tpt-afs-intake__consent input {
  width: 19px;
  height: 19px;
  margin: 2px 0 0;
  flex: 0 0 auto;
  accent-color: var(--afs-orange);
}

.tpt-afs-intake__advanced {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(7, 27, 45, 0.16);
}

.tpt-afs-intake__advanced summary {
  min-height: 50px;
  padding: 13px 46px 13px 15px;
  position: relative;
  color: #ffffff;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  list-style: none;
}

.tpt-afs-intake__advanced summary::-webkit-details-marker {
  display: none;
}

.tpt-afs-intake__advanced summary::after {
  position: absolute;
  top: 12px;
  right: 15px;
  color: #ffc27a;
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
}

.tpt-afs-intake__advanced[open] summary::after {
  content: "−";
}

.tpt-afs-intake__advanced-body {
  padding: 4px 15px 18px;
  display: grid;
  gap: 22px;
}

.tpt-afs-intake__consent {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-size: 0.82rem;
  line-height: 1.5;
}

.tpt-afs-intake__consent a {
  color: #ffffff;
  font-weight: 700;
}

.tpt-afs-intake__required,
.tpt-afs-intake__delivery {
  margin: -12px 0 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.74rem;
  line-height: 1.5;
}

.tpt-afs-intake__submit {
  width: fit-content;
  min-height: 52px;
  padding: 13px 22px;
  color: var(--afs-ink);
  background: var(--afs-orange);
  border: 2px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1.35;
  text-transform: uppercase;
}

.tpt-afs-intake__submit:hover {
  background: #ff9e2d;
}

.tpt-afs-intake__submit:disabled {
  color: rgba(18, 33, 48, 0.72);
  background: #d8a66f;
  cursor: wait;
}

.tpt-afs-intake__notice {
  margin: 0 0 24px;
  padding: 14px 16px;
  border-left: 5px solid;
}

.tpt-afs-intake__notice p {
  margin: 0;
}

.tpt-afs-intake__notice--success {
  color: #123d20;
  background: #e9f7ed;
  border-color: #2d7b43;
}

.tpt-afs-intake__notice--error {
  color: #5d1616;
  background: #fff0f0;
  border-color: #ad3030;
}

.tpt-afs-intake__honeypot {
  width: 1px;
  height: 1px;
  position: absolute !important;
  left: -10000px !important;
  overflow: hidden;
}

@media (max-width: 720px) {
  .tpt-afs-intake {
    padding: 27px 20px;
  }

  .tpt-afs-intake__grid,
  .tpt-afs-intake__checks {
    grid-template-columns: 1fr;
  }

  .tpt-afs-intake__form {
    gap: 23px;
  }

  .tpt-afs-intake__submit {
    width: 100%;
  }
}

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