/*
 * NextFrontLine enterprise form system
 * Scope: public inquiry and recruitment forms only.
 */

.enterprise-form-layout {
  display: grid;
  width: min(100%, 1040px);
  max-width: 1040px;
  margin-inline: auto;
  gap: clamp(28px, 5vw, 48px);
}

.enterprise-form-copy {
  display: grid;
  width: min(100%, 920px);
  margin-inline: auto;
  gap: 12px;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 4vw, 36px);
  border-left: 4px solid var(--logo-blue, #087fa8);
  background: #f4f8fb;
}

.enterprise-form-copy > :first-child,
.enterprise-form-copy > :last-child {
  margin-block: 0;
}

.enterprise-form-copy h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  letter-spacing: -.025em;
}

.enterprise-form-copy p {
  max-width: 72ch;
  margin: 0;
  color: #475569;
}

.enterprise-form-copy .button-row {
  margin-top: 6px;
}

.public-form.enterprise-form {
  display: block;
  width: min(100%, 920px);
  max-width: 920px;
  margin-inline: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-top: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(11, 31, 54, .09);
}

.public-form.enterprise-form[data-form-mode="quick"] {
  border-top: 1px solid #cbd5e1;
}

.enterprise-form .public-form__fields {
  display: block;
  min-width: 0;
}

.enterprise-form .public-form__fields[disabled] {
  opacity: .72;
}

.enterprise-form .public-form__fields[disabled] details {
  pointer-events: none;
}

.enterprise-form__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 38px) clamp(22px, 5vw, 48px);
  border-bottom: 1px solid #dbe4ec;
  background: linear-gradient(135deg, #f7fafc 0%, #edf5f9 100%);
}

.enterprise-form__head h2 {
  margin: 4px 0 0;
  color: #0b1f36;
  font-size: clamp(1.65rem, 3.2vw, 2.35rem);
  line-height: 1.35;
  letter-spacing: -.035em;
}

.enterprise-form__eyebrow {
  margin: 0;
  color: var(--logo-blue, #087fa8);
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.enterprise-form__lead {
  max-width: 58ch;
  margin: 10px 0 0;
  color: #526579;
  font-size: .92rem;
}

.enterprise-form__time {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  margin: 2px 0 0;
  padding: 8px 12px;
  border: 1px solid #b7cad8;
  border-radius: 999px;
  color: #173654;
  background: rgba(255,255,255,.88);
  font-size: .76rem;
  font-weight: 850;
  white-space: nowrap;
}

.enterprise-form__time::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: #12987f;
}

.enterprise-form__body {
  display: grid;
  gap: 24px;
  padding: clamp(26px, 5vw, 48px);
}

.enterprise-form__service {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 15px 18px;
  border: 1px solid #d4e0e9;
  border-radius: 8px;
  background: #f8fafc;
}

.enterprise-form__service span {
  color: #5d6d7e;
  font-size: .76rem;
  font-weight: 800;
}

.enterprise-form__service strong {
  color: #0b1f36;
  font-size: .98rem;
}

.enterprise-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
}

.enterprise-form .form-field {
  min-width: 0;
  gap: 8px;
}

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

.enterprise-form .form-field label {
  display: flex;
  min-height: 24px;
  align-items: center;
  gap: 8px;
  color: #172b42;
  font-size: .86rem;
  font-weight: 850;
}

.enterprise-form .form-field label .field-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 3px;
  color: #fff;
  background: #b42318;
  font-size: .65rem;
  font-weight: 850;
  line-height: 1.45;
}

.enterprise-form .form-field label .field-badge--optional {
  color: #536579;
  background: #e8eef3;
}

.enterprise-form .form-field input,
.enterprise-form .form-field select,
.enterprise-form .form-field textarea {
  width: 100%;
  min-height: 56px;
  padding: 14px 15px;
  border: 1px solid #8fa2b5;
  border-radius: 6px;
  color: #0b1f36;
  background: #fff;
  font: inherit;
  font-size: 1rem;
  line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.enterprise-form .form-field textarea {
  min-height: 144px;
  resize: vertical;
}

.enterprise-form .form-field input:hover,
.enterprise-form .form-field select:hover,
.enterprise-form .form-field textarea:hover {
  border-color: #61798f;
}

.enterprise-form .form-field input:focus,
.enterprise-form .form-field select:focus,
.enterprise-form .form-field textarea:focus {
  border-color: #087fa8;
  outline: 0;
  box-shadow: 0 0 0 4px rgba(8,127,168,.16);
}

.enterprise-form .form-field input[aria-invalid="true"],
.enterprise-form .form-field select[aria-invalid="true"],
.enterprise-form .form-field textarea[aria-invalid="true"] {
  border-color: #b42318;
  background: #fffafa;
}

.enterprise-form .field-help {
  margin: 0;
  color: #5c6d7f;
  font-size: .76rem;
  line-height: 1.65;
}

.enterprise-form__optional {
  border-block: 1px solid #dbe4ec;
}

.enterprise-form__optional summary {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  padding: 14px 42px 14px 4px;
  color: #173654;
  font-size: .88rem;
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.enterprise-form__optional summary::-webkit-details-marker {
  display: none;
}

.enterprise-form__optional summary::after {
  position: absolute;
  right: 10px;
  width: 10px;
  height: 10px;
  border-right: 2px solid #087fa8;
  border-bottom: 2px solid #087fa8;
  content: "";
  transform: rotate(45deg) translateY(-3px);
  transition: transform .15s ease;
}

.enterprise-form__optional[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.enterprise-form__optional summary:focus-visible {
  border-radius: 4px;
  outline: 3px solid rgba(8,127,168,.35);
  outline-offset: 2px;
}

.enterprise-form__optional-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 24px;
  padding: 6px 4px 24px;
}

.enterprise-form .form-disclaimer {
  margin: 0;
  padding: 14px 16px;
  border-radius: 6px;
  color: #536579;
  background: #f4f7f9;
  font-size: .78rem;
  line-height: 1.7;
}

.enterprise-form .consent {
  display: flex;
  min-height: 48px;
  align-items: flex-start;
  gap: 12px;
  margin: 0;
  padding: 8px 0;
  color: #465a6e;
  font-size: .84rem;
  line-height: 1.75;
  cursor: pointer;
}

.enterprise-form .consent input {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 2px 0 0;
  accent-color: #087fa8;
}

.enterprise-form .consent span {
  min-width: 0;
}

.enterprise-form .consent a {
  display: inline;
  min-height: 0;
  color: #075f80;
  font-weight: 800;
  text-underline-offset: .2em;
}

.enterprise-form .form-submit {
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: #0b1f36;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: .02em;
  cursor: pointer;
}

.enterprise-form .form-submit:hover {
  background: #123b60;
  transform: none;
}

.enterprise-form .form-submit:focus-visible {
  outline: 3px solid #65cce1;
  outline-offset: 3px;
}

.enterprise-form .form-submit[disabled] {
  cursor: wait;
  opacity: .62;
}

.enterprise-form .form-status {
  min-height: 1.75em;
  margin: 0;
  color: #173654;
  font-size: .86rem;
  font-weight: 800;
  line-height: 1.7;
}

.enterprise-form .notice {
  margin: 24px;
}

@media (max-width: 720px) {
  .enterprise-form-layout {
    gap: 24px;
  }

  .enterprise-form-copy {
    padding: 20px;
  }

  .public-form.enterprise-form {
    border-radius: 8px;
  }

  .enterprise-form__head {
    display: grid;
    gap: 14px;
    padding: 24px 20px;
  }

  .enterprise-form__time {
    justify-self: start;
  }

  .enterprise-form__body {
    gap: 22px;
    padding: 26px 20px 30px;
  }

  .enterprise-form__service {
    display: grid;
    gap: 3px;
  }

  .enterprise-form__grid,
  .enterprise-form__optional-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .enterprise-form .form-field--wide {
    grid-column: auto;
  }

  .enterprise-form .form-field input,
  .enterprise-form .form-field select,
  .enterprise-form .form-field textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .enterprise-form *,
  .enterprise-form *::before,
  .enterprise-form *::after {
    transition-duration: .01ms !important;
  }
}


/* Keep the anti-spam field out of visual layout and the accessibility tree. */
.enterprise-form .form-honeypot {
  display: none !important;
}



/* Preserve the native closed-state contract even when child layouts use grid. */
.enterprise-form details.enterprise-form__optional:not([open]) > :not(summary) {
  display: none !important;
}

