/* Ebenezer Form hero.
   The eyebrow, heading, and intro sit beside an embedded form panel that a
   hairline divider separates on desktop; the panel stacks below the copy on
   small screens. Loaded on top of hero.css, which keeps providing the shared
   heading and sticker styles; everything here scopes under the --form
   modifier. */

.acu-ebenezer-hero--form {
  background-color: var(--acu-casual-cream);
  color: var(--acu-midnight-purple);
}

.acu-ebenezer-hero__form-container {
  /* 48px up to the design's 64px between each column and the divider. */
  --acu-ebenezer-hero-form-divider-gap: clamp(var(--space-2xl), 4.5vw, var(--space-3xl));
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  /* 64px gutters around the design's 1312px content width. */
  max-width: 90rem;
  margin-inline: auto;
  padding: clamp(var(--space-3xl), 8vw, 7rem) var(--space-3xl);
}

/* The divider sits at the exact center of the row, so each column carries
   its half of the design's 64px air on its own side of the line. */
.acu-ebenezer-hero--form .acu-ebenezer-hero__content {
  padding-right: var(--acu-ebenezer-hero-form-divider-gap);
}

/* The Form eyebrow trades the general hero's pill for the page sections'
   coral icon treatment. */
.acu-ebenezer-hero--form .acu-ebenezer-hero__eyebrow {
  align-items: center;
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  display: flex;
  font-family: var(--font-serif);
  font-size: var(--text-xs);
  font-weight: var(--font-semibold);
  gap: var(--space-sm);
  letter-spacing: var(--tracking-widest);
  line-height: var(--leading-snug);
  margin: 0 0 var(--space-md);
  padding: 0;
  text-transform: uppercase;
}

.acu-ebenezer-hero--form .acu-ebenezer-hero__eyebrow-icon {
  display: block;
  flex: 0 0 auto;
  height: 0.75rem;
  width: 1rem;
}

/* The comp's 76px/36px heading matches the Contact hero's in-between size. */
.acu-ebenezer-hero--form .acu-ebenezer-hero__content h1 {
  color: var(--acu-wildcat-purple);
  font-size: clamp(2.25rem, 5.3vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.acu-ebenezer-hero--form .acu-ebenezer-hero__description {
  color: inherit;
  max-width: none;
  margin-top: var(--space-lg);
  font-size: var(--text-xl);
  line-height: var(--leading-normal);
}

/* The divider runs the full row height because the grid stretches both
   columns. */
.acu-ebenezer-hero__form-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  border-left: 1px solid rgba(10, 11, 3, 0.2);
  padding-left: var(--acu-ebenezer-hero-form-divider-gap);
}

/* The form arrives after first paint from the provider's async script, so
   the embed reserves the height of a typical request form up front. Without
   it the page sections below jump when the form renders on phones, where the
   panel stacks under the copy (CLS 0.145 on First Time Freshmen). flow-root
   keeps the form's own top margin from collapsing through the panel, which
   moved the embed down 10px on load. */
.acu-ebenezer-hero__form-embed {
  display: flow-root;
  min-width: 0;
  min-height: 30.5rem;
  color: inherit;
  font-family: var(--font-sans);
}

/* Slate reuses the placeholder div as its form container, so that div needs
   its own formatting context too, or the first field's margin still moves it. */
.acu-ebenezer-hero__form-embed > div {
  display: flow-root;
}

.acu-ebenezer-hero__form-embed iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

/* Baseline control styling for embeds that arrive without their own look.
   The selectors stay scoped to the panel and target bare elements, so a form
   that ships real styles of its own (for example Slate's per-form CSS with
   its ID selectors) still wins where it defines one. */

.acu-ebenezer-hero__form-embed label {
  display: block;
  margin: 0 0 var(--space-2xs);
  color: inherit;
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  line-height: var(--leading-normal);
}

/* Embeds often separate a label from its control with a line break. The
   label is already a block here, so that break only doubles the gap. */
.acu-ebenezer-hero__form-embed label + br {
  display: none;
}

/* One field per paragraph is the common embed shape; keep the design's
   20px rhythm between fields instead of the legacy paragraph margin. */
.acu-ebenezer-hero__form-embed p {
  margin: 0 0 1.25rem;
}

.acu-ebenezer-hero__form-embed p:last-child {
  margin-bottom: 0;
}

.acu-ebenezer-hero__form-embed label:has(input[type="checkbox"]),
.acu-ebenezer-hero__form-embed label:has(input[type="radio"]) {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: var(--font-regular);
}

.acu-ebenezer-hero__form-embed input:not([type="checkbox"], [type="radio"], [type="submit"], [type="button"], [type="image"], [type="hidden"]),
.acu-ebenezer-hero__form-embed select,
.acu-ebenezer-hero__form-embed textarea {
  box-sizing: border-box;
  width: 100%;
  height: 3rem;
  margin: 0;
  padding: 0 1rem;
  border: 1px solid rgba(10, 11, 3, 0.3);
  border-radius: var(--radius-md);
  background-color: var(--acu-white);
  color: var(--acu-midnight-purple);
  font-family: var(--font-sans);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  appearance: none;
}

.acu-ebenezer-hero__form-embed textarea {
  height: auto;
  min-height: 7.5rem;
  padding: 0.75rem 1rem;
  resize: vertical;
}

.acu-ebenezer-hero__form-embed select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2321174B'%3E%3Cpath d='M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5rem;
  padding-right: 3rem;
}

.acu-ebenezer-hero__form-embed ::placeholder {
  color: color-mix(in srgb, var(--acu-midnight-purple) 55%, transparent);
  opacity: 1;
}

.acu-ebenezer-hero__form-embed input[type="checkbox"],
.acu-ebenezer-hero__form-embed input[type="radio"] {
  accent-color: var(--acu-wildcat-purple);
}

.acu-ebenezer-hero__form-embed input:focus-visible,
.acu-ebenezer-hero__form-embed select:focus-visible,
.acu-ebenezer-hero__form-embed textarea:focus-visible,
.acu-ebenezer-hero__form-embed button:focus-visible {
  outline: 2px solid var(--acu-wildcat-purple);
  outline-offset: 2px;
}

.acu-ebenezer-hero__form-embed button,
.acu-ebenezer-hero__form-embed input[type="submit"],
.acu-ebenezer-hero__form-embed input[type="button"] {
  width: auto;
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid var(--acu-citrus-orange);
  border-radius: var(--radius-md);
  background-color: var(--acu-citrus-orange);
  color: var(--acu-midnight-purple);
  font-family: var(--font-serif);
  font-size: var(--text-md);
  font-weight: var(--font-semibold);
  line-height: 1;
  cursor: pointer;
  appearance: none;
  transition:
    background-color var(--motion-fast) var(--ease-out),
    border-color var(--motion-fast) var(--ease-out);
}

.acu-ebenezer-hero__form-embed button:hover,
.acu-ebenezer-hero__form-embed input[type="submit"]:hover,
.acu-ebenezer-hero__form-embed input[type="button"]:hover {
  border-color: var(--acu-sunset-orange);
  background-color: var(--acu-sunset-orange);
}

/* Without a form the content column takes a readable single-column width. */
.acu-ebenezer-hero--form-no-panel .acu-ebenezer-hero__form-container {
  grid-template-columns: minmax(0, 1fr);
}

.acu-ebenezer-hero--form-no-panel .acu-ebenezer-hero__content {
  max-width: 46rem;
  padding-right: 0;
}

@media (max-width: 63.9375rem) {
  .acu-ebenezer-hero__form-container {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-2xl);
    padding: var(--space-3xl) var(--space-lg);
  }

  .acu-ebenezer-hero--form .acu-ebenezer-hero__content {
    padding-right: 0;
  }

  .acu-ebenezer-hero--form .acu-ebenezer-hero__content h1 {
    line-height: 1.1;
  }

  .acu-ebenezer-hero__form-panel {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 47.9375rem) {
  .acu-ebenezer-hero--form .acu-ebenezer-hero__description {
    font-size: var(--text-lg);
  }
}
