/*
 * Automattic for Agencies landing page — /automattic/.
 *
 * Enqueued only by page-templates/template-automattic.php, after the last
 * shared layer. Everything is scoped under the page's own sf-au-* classes.
 *
 * The wireframe was drawn in container-query units on a 1200px column; these
 * use vw, which computes the same at the 1440 and 390 design widths. Mobile
 * first, with the theme's single 768px breakpoint.
 *
 * @package Slyfox_Digital
 */

.sf-au-wrap {
  max-width: var(--sf-max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

.sf-au-section { padding-block: clamp(48px, 6vw, 88px); }
.sf-au-section--flush { padding-top: 0; }
.sf-au-col { display: flex; flex-direction: column; gap: 32px; }

/* --------------------------------------------------------------------------
 * Type
 * ------------------------------------------------------------------------ */
.sf-au-eyebrow {
  margin: 0;
  color: var(--sf-orange);
  font-family: var(--sf-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sf-au-h1 {
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.sf-au-h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.1; }
.sf-au-h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.15; }

.sf-au-lead {
  max-width: 58ch;
  margin: 0;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  text-wrap: pretty;
}

.sf-au-head { display: flex; flex-direction: column; gap: 10px; }
.sf-au-head p { max-width: 60ch; margin: 0; font-size: 17px; line-height: 1.55; }

.sf-au-muted { color: #4A5568; }

.sf-au-pill {
  align-self: flex-start;
  padding: 4px 8px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-r-pill);
  background: var(--sf-surface);
  color: var(--sf-navy);
  font-family: var(--sf-font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------ */
.sf-au-btns { display: flex; flex-wrap: wrap; gap: 12px 16px; margin-top: 4px; }

.sf-au-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  flex: 1 1 100%;
  min-height: 52px;
  padding: 0 28px;
  border: 2px solid var(--sf-orange);
  border-radius: var(--sf-r-btn);
  background: var(--sf-orange);
  color: var(--sf-navy);
  font-family: var(--sf-font-head);
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: background var(--sf-t), color var(--sf-t), border-color var(--sf-t), transform var(--sf-t), box-shadow var(--sf-t);
}

.sf-au-btn:hover {
  background: var(--sf-navy);
  border-color: var(--sf-navy);
  color: var(--sf-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(38, 50, 76, .25);
}

.sf-au-btn:focus-visible { outline: 3px solid var(--sf-navy); outline-offset: 3px; }

.sf-au-btn--ghost { background: transparent; border-color: var(--sf-navy); }
.sf-au-btn--ghost:hover { transform: none; box-shadow: none; }
.sf-au-btn--ghost:focus-visible { outline-color: var(--sf-orange); }

.sf-au-btn--on-navy:hover { background: var(--sf-white); border-color: var(--sf-white); color: var(--sf-navy); box-shadow: 0 8px 18px rgba(0, 0, 0, .3); }
.sf-au-btn--on-navy:focus-visible { outline-color: var(--sf-white); }

/* --------------------------------------------------------------------------
 * 1 · Hero
 * ------------------------------------------------------------------------ */
.sf-au-hero { background: linear-gradient(180deg, var(--sf-surface) 0%, var(--sf-white) 100%); }

.sf-au-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(44px, 5.5vw, 80px) clamp(40px, 5vw, 72px);
}

.sf-au-hero__copy { display: flex; flex-direction: column; gap: 20px; }

/* "What you can expect" is desktop-only in the design. */
.sf-au-expect {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-r-lg);
  background: var(--sf-white);
  box-shadow: 0 18px 50px -12px rgba(38, 50, 76, .18);
}

.sf-au-expect__title {
  margin: 0;
  color: #4A5568;
  font-family: var(--sf-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sf-au-ticks { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.sf-au-ticks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.sf-au-ticks svg { flex-shrink: 0; margin-top: 2px; }

/* --------------------------------------------------------------------------
 * 2 · Credibility strip
 * ------------------------------------------------------------------------ */
.sf-au-cred { background: var(--sf-navy); color: var(--sf-white); }
.sf-au-cred__inner { display: flex; flex-direction: column; gap: 28px; padding-block: clamp(32px, 4vw, 48px); }

.sf-au-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; }
.sf-au-stats > div { display: flex; flex-direction: column; gap: 4px; }

.sf-au-stats dd {
  order: -1;
  margin: 0;
  color: var(--sf-orange);
  font-family: var(--sf-font-head);
  font-size: clamp(34px, 3.2vw, 46px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
}

.sf-au-stats dt { font-family: var(--sf-font-head); font-size: 14px; font-weight: 700; line-height: 1.35; }

.sf-au-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.sf-au-badges__label {
  margin: 0;
  font-family: var(--sf-font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .8;
}

.sf-au-badges ul { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }

/* White pill behind each badge keeps its dark lettering legible on navy. */
.sf-au-badges li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  border-radius: var(--sf-r-pill);
  background: var(--sf-white);
}

.sf-au-badges img { width: auto; height: 56px; }

/* --------------------------------------------------------------------------
 * 3 · What we handle
 * ------------------------------------------------------------------------ */
.sf-au-part { display: flex; flex-direction: column; gap: 16px; }
.sf-au-part + .sf-au-part { margin-top: -16px; }

.sf-au-part__label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--sf-orange);
  font-family: var(--sf-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.sf-au-part__label span { white-space: nowrap; }
.sf-au-part__label::after { content: ""; flex: 1; height: 1px; background: var(--sf-border); }

.sf-au-part__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.sf-au-part__head p { max-width: 52ch; margin: 0; color: #4A5568; font-size: 16px; line-height: 1.5; }

.sf-au-feature-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }

.sf-au-feature {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--sf-r-lg);
  background: var(--sf-navy);
  color: var(--sf-white);
}

.sf-au-feature h3 { color: var(--sf-white); font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; }
.sf-au-feature p { margin: 0; font-size: 16px; line-height: 1.6; opacity: .92; }

.sf-au-feature .sf-au-feature__kicker {
  color: var(--sf-orange);
  font-family: var(--sf-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 1;
}

.sf-au-tiles { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }

.sf-au-tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  border: 1px solid transparent;
  border-radius: var(--sf-r-card);
  background: var(--sf-surface);
  transition: box-shadow var(--sf-t), transform var(--sf-t);
}

.sf-au-tile:hover { box-shadow: 0 14px 34px -14px rgba(38, 50, 76, .3); transform: translateY(-2px); }

.sf-au-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-r-tile);
  background: var(--sf-white);
  color: var(--sf-orange);
}

.sf-au-tile h4 { font-size: 17px; line-height: 1.3; }
.sf-au-tile p { margin: 0; font-size: 15px; line-height: 1.5; }

/* The AI search tile is outlined and links down to section 4. */
.sf-au-tile--ai { border: 2px solid var(--sf-navy); background: var(--sf-white); }
.sf-au-tile--ai .sf-au-tile__icon { background: var(--sf-navy); }

.sf-au-tile__link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  min-height: var(--sf-tap);
  margin-top: auto;
  border-bottom: 2px solid var(--sf-orange);
  color: var(--sf-navy);
  font-family: var(--sf-font-head);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.sf-au-tile__link:hover { color: var(--sf-orange); }
.sf-au-tile__link span { color: var(--sf-orange); }

/* --------------------------------------------------------------------------
 * 4 · AI search visibility
 * ------------------------------------------------------------------------ */
.sf-au-ai {
  position: relative;
  overflow: hidden;
  background: var(--sf-navy);
  color: var(--sf-white);
  scroll-margin-top: 16px;
}

.sf-au-ai__fox {
  position: absolute;
  right: -6%;
  bottom: -14%;
  width: clamp(280px, 38vw, 620px);
  opacity: .06;
  pointer-events: none;
}

.sf-au-ai__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(36px, 4vw, 56px);
  padding-block: clamp(64px, 8.5vw, 136px);
}

.sf-au-ai__intro { display: flex; flex-direction: column; gap: 22px; max-width: 820px; }

.sf-au-ai__h2 {
  color: var(--sf-white);
  font-size: clamp(34px, 4.2vw, 60px);
  line-height: 1.04;
  letter-spacing: -.02em;
}

.sf-au-ai__intro > p:not(.sf-au-eyebrow) {
  max-width: 62ch;
  margin: 0;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.6;
  text-wrap: pretty;
}

.sf-au-ai__points { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 0; padding: 0; list-style: none; }

.sf-au-ai__points li {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 22px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--sf-r-card);
  background: rgba(255, 255, 255, .06);
}

.sf-au-ai__n { color: var(--sf-orange); font-family: var(--sf-font-head); font-size: 34px; font-weight: 800; line-height: 1; }
.sf-au-ai__points h3 { color: var(--sf-white); font-size: 18px; line-height: 1.3; }
.sf-au-ai__points p { margin: 0; font-size: 15px; line-height: 1.55; opacity: .92; }

.sf-au-ai__close {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 40px;
  padding-top: clamp(28px, 3vw, 40px);
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.sf-au-ai__close p { flex: 1 1 420px; max-width: 60ch; margin: 0; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.55; text-wrap: pretty; }

/* --------------------------------------------------------------------------
 * 5 · How we build
 * ------------------------------------------------------------------------ */
.sf-au-split { display: grid; grid-template-columns: 1fr; gap: clamp(28px, 4vw, 64px); align-items: start; }
.sf-au-split .sf-au-head { gap: 12px; }
.sf-au-split .sf-au-head p { max-width: 40ch; }

.sf-au-standards { display: grid; grid-template-columns: 1fr; gap: 20px; margin: 0; padding: 0; list-style: none; }
.sf-au-standards li { display: flex; flex-direction: column; gap: 8px; padding-top: 16px; border-top: 3px solid var(--sf-orange); }
.sf-au-standards h3 { font-size: 19px; line-height: 1.3; }
.sf-au-standards p { margin: 0; font-size: 15px; line-height: 1.55; }

/* --------------------------------------------------------------------------
 * 6 · How it works
 * ------------------------------------------------------------------------ */
.sf-au-steps { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; padding: 0; list-style: none; }

.sf-au-steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 0 24px 20px;
  border-left: 2px solid var(--sf-input-border);
}

.sf-au-steps__mark { display: flex; align-items: center; gap: 12px; }

.sf-au-steps__mark span {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sf-orange);
  color: var(--sf-navy);
  font-family: var(--sf-font-head);
  font-size: 17px;
  font-weight: 800;
}

.sf-au-steps h3 { font-size: 19px; line-height: 1.25; }
.sf-au-steps p { margin: 0; font-size: 15px; line-height: 1.55; }

/* --------------------------------------------------------------------------
 * 7 · Selected work and 8 · Proof — one grey evidence block
 * ------------------------------------------------------------------------ */
.sf-au-evidence { background: var(--sf-surface); }
.sf-au-section--work { padding-bottom: 0; }

.sf-au-work__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 32px; }
.sf-au-work__head p { max-width: 48ch; margin: 0; color: #4A5568; font-size: 16px; }

.sf-au-work { display: grid; grid-template-columns: 1fr; gap: 24px; margin: 0; padding: 0; list-style: none; }

.sf-au-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--sf-r-card);
  background: var(--sf-white);
  box-shadow: var(--sf-shadow-card);
}

.sf-au-card__shot {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-bottom: 1px solid var(--sf-border);
  background: #EEF1F5;
}

.sf-au-card__browser {
  position: absolute;
  inset: 9% 6% 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  background: var(--sf-white);
  box-shadow: 0 2px 10px rgba(38, 50, 76, .12);
}

.sf-au-card__browser img { width: 100%; height: auto; }

.sf-au-card__chrome {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 4px;
  height: 14px;
  padding: 0 8px;
  border-bottom: 1px solid var(--sf-border);
  background: var(--sf-surface);
}

.sf-au-card__chrome span { width: 5px; height: 5px; border-radius: 50%; background: var(--sf-input-border); }

.sf-au-card__phone {
  position: absolute;
  right: 7%;
  bottom: -4%;
  width: 22%;
  aspect-ratio: 9 / 18;
  overflow: hidden;
  padding: 3px;
  border-radius: 10px;
  background: var(--sf-navy);
  box-shadow: 0 8px 20px rgba(38, 50, 76, .28);
}

.sf-au-card__phone img { width: 100%; height: 100%; border-radius: 7px; object-fit: cover; object-position: top; }

.sf-au-card__body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; }
.sf-au-card__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

.sf-au-card__type {
  color: var(--sf-orange);
  font-family: var(--sf-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sf-au-card h3 { font-size: 19px; line-height: 1.25; }
.sf-au-card p { margin: 0; font-size: 15px; line-height: 1.5; }

.sf-au-proof__h2 { padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--sf-border); }

.sf-au-reviews { display: grid; grid-template-columns: 1fr; gap: 20px; }

.sf-au-review {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px;
  border-radius: var(--sf-r-card);
  background: var(--sf-white);
  box-shadow: var(--sf-shadow-card);
}

.sf-au-review__stars { color: var(--sf-orange); font-size: 16px; letter-spacing: 2px; }
.sf-au-review blockquote { margin: 0; font-size: 16px; line-height: 1.55; }

.sf-au-review figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; font-size: 14px; line-height: 1.35; }
.sf-au-review figcaption strong { display: block; color: var(--sf-navy); font-family: var(--sf-font-head); }
.sf-au-review figcaption > span:last-child > span { color: #4A5568; }

.sf-au-review__initials {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sf-navy);
  color: var(--sf-white);
  font-family: var(--sf-font-head);
  font-size: 13px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
 * 9 · Conversion block
 * ------------------------------------------------------------------------ */
.sf-au-contact { scroll-margin-top: 16px; padding-block: clamp(48px, 6vw, 96px); }
.sf-au-contact__inner { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 4vw, 64px); align-items: start; }
.sf-au-contact__info { display: flex; flex-direction: column; gap: 22px; }
.sf-au-contact__lead { max-width: 48ch; margin: 0; font-size: 17px; line-height: 1.6; }

.sf-au-book {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px;
  border-radius: var(--sf-r-lg);
  background: var(--sf-navy);
  color: var(--sf-white);
}

.sf-au-book p { margin: 0; font-size: 15px; line-height: 1.5; opacity: .9; }
.sf-au-book .sf-au-book__title { font-family: var(--sf-font-head); font-size: 20px; font-weight: 800; line-height: 1.25; opacity: 1; }

.sf-au-contact__list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.5; }
.sf-au-contact__list li { display: flex; gap: 12px; align-items: flex-start; }
.sf-au-contact__list svg { flex-shrink: 0; margin-top: 2px; }
.sf-au-contact__list a { color: var(--sf-navy); font-weight: 600; text-underline-offset: 3px; }

/* --------------------------------------------------------------------------
 * The enquiry form
 *
 * Gravity Forms prints its stylesheet after this file, so every rule is
 * anchored on .sf-au-form .gform_wrapper.gravity-theme: one class more than
 * its own .gform_wrapper.gravity-theme selectors. A tie loses on load order,
 * and did: its 16px grid-row-gap overrode ours and, with each field spanning
 * three rows, put ~64px between fields instead of 16px.
 *
 * Columns are left to Gravity Forms' own 12-column grid, so its
 * gfield--width-half / --width-full spans and its 640px stacking still apply.
 * ------------------------------------------------------------------------ */
.sf-au-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--sf-r-xl);
  background: var(--sf-surface);
}

.sf-au-form__title { font-size: 22px; line-height: 1.2; }
.sf-au-form__fallback { margin: 0; font-size: 16px; }
.sf-au-form__fallback a { font-weight: 600; }

.sf-au-form .gform_wrapper.gravity-theme,
.sf-au-form .gform_wrapper.gravity-theme form,
.sf-au-form .gform_wrapper.gravity-theme .gform_body { margin: 0; padding: 0; }

.sf-au-form .gform_wrapper.gravity-theme .gform_fields {
  display: grid;
  column-gap: 16px;
  row-gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/*
 * Each field spans three rows of the form grid (label, control, message) and
 * shares them through subgrid, so two half-width fields side by side keep
 * their controls on one line even when one label wraps to two lines. Labels
 * sit on the bottom of their row, directly above the control. Field spacing
 * is the padding under the third row, not a grid gap, so the unused message
 * row costs nothing.
 */
.sf-au-form .gform_wrapper.gravity-theme .gfield {
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 0;
  min-width: 0;
  margin: 0;
  padding: 0 0 18px;
  border: 0;
}

.sf-au-form .gform_wrapper.gravity-theme .gfield > .gfield_label { grid-row: 1; align-self: end; }
.sf-au-form .gform_wrapper.gravity-theme .gfield > .ginput_container { grid-row: 2; }
.sf-au-form .gform_wrapper.gravity-theme .gfield > .gfield_validation_message,
.sf-au-form .gform_wrapper.gravity-theme .gfield > .validation_message,
.sf-au-form .gform_wrapper.gravity-theme .gfield > .gfield_description { grid-row: 3; }

.sf-au-form .gform_wrapper.gravity-theme .gform_hidden,
.sf-au-form .gform_wrapper.gravity-theme .gfield--type-hidden { display: none; }

.sf-au-form .gform_wrapper.gravity-theme .gform_validation_container,
.sf-au-form .gform_wrapper.gravity-theme .gfield--type-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.sf-au-form .gform_wrapper.gravity-theme .gfield_label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  color: var(--sf-navy);
  font-family: var(--sf-font-head);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.sf-au-form .gform_wrapper.gravity-theme .gfield_required { padding-inline-start: .2em; color: var(--sf-orange); font-size: inherit; }

/* Gravity Forms' legacy theme italicises this at equal specificity and loads later. */
.sf-au-form .gform_wrapper.gravity-theme .gfield_required_text { font-style: normal !important; }

/* Budget's currency note, moved into its label line by the template. */
.sf-au-form .gform_wrapper.gravity-theme .sf-au-form__label-note {
  color: #4A5568;
  font-family: var(--sf-font-body);
  font-weight: 400;
}

.sf-au-form .gform_wrapper.gravity-theme .gfield_description {
  margin: 6px 0 0;
  padding: 0;
  color: #4A5568;
  font-size: 14px;
  line-height: 1.35;
}

.sf-au-form .gform_wrapper.gravity-theme input[type="text"],
.sf-au-form .gform_wrapper.gravity-theme input[type="email"],
.sf-au-form .gform_wrapper.gravity-theme input[type="url"],
.sf-au-form .gform_wrapper.gravity-theme select,
.sf-au-form .gform_wrapper.gravity-theme textarea {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: 48px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--sf-input-border);
  border-radius: var(--sf-r-input);
  background: var(--sf-white);
  color: var(--sf-ink);
  font-family: var(--sf-font-body);
  font-size: 16px;
  line-height: 1.2;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}

/*
 * The native select arrow sits flush against the right edge and ignores
 * padding, so it is replaced by a drawn chevron with 16px of space either side.
 */
.sf-au-form .gform_wrapper.gravity-theme select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 46px;
  background: var(--sf-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 9'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5' fill='none' stroke='%2326324C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 16px center / 14px 9px;
  text-overflow: ellipsis;
  cursor: pointer;
}

.sf-au-form .gform_wrapper.gravity-theme textarea { height: auto; min-height: 120px; padding: 12px 14px; line-height: 1.5; resize: vertical; }

.sf-au-form .gform_wrapper.gravity-theme input:focus,
.sf-au-form .gform_wrapper.gravity-theme select:focus,
.sf-au-form .gform_wrapper.gravity-theme textarea:focus {
  border-color: var(--sf-orange);
  box-shadow: 0 0 0 3px rgba(255, 128, 31, .35);
  outline: none;
}

.sf-au-form .gform_wrapper.gravity-theme .gfield_error input,
.sf-au-form .gform_wrapper.gravity-theme .gfield_error select,
.sf-au-form .gform_wrapper.gravity-theme .gfield_error textarea { border-color: #B3261E; }
.sf-au-form .gform_wrapper.gravity-theme .gfield_error .gfield_label { color: var(--sf-navy); }
.sf-au-form .gform_wrapper.gravity-theme .gfield_error { background: none; border: 0; }

.sf-au-form .gform_wrapper.gravity-theme .gfield_validation_message,
.sf-au-form .gform_wrapper.gravity-theme .validation_message {
  margin: 5px 0 0;
  padding: 0;
  border: 0;
  background: none;
  color: #7F1D16;
  font-size: 13px;
  line-height: 1.3;
}

.sf-au-form .gform_wrapper.gravity-theme .gform_validation_errors {
  margin: 0 0 16px;
  padding: 10px 12px;
  border: 1px solid #B3261E;
  border-radius: var(--sf-r-btn);
  background: #FBEDEC;
  box-shadow: none;
}

.sf-au-form .gform_wrapper.gravity-theme .gform_validation_errors > h2 { color: #7F1D16; font-family: var(--sf-font-body); font-size: 14px; font-weight: 600; line-height: 1.4; }

/* Button with the reply-time note beside it. */
.sf-au-form .gform_wrapper.gravity-theme .gform_footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin: 4px 0 0;
  padding: 0;
}

.sf-au-form .gform_wrapper.gravity-theme .gform_footer input[type="submit"],
.sf-au-form .gform_wrapper.gravity-theme .gform_footer .gform_button {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 0 32px;
  border: 0;
  border-radius: var(--sf-r-btn);
  background: var(--sf-orange);
  color: var(--sf-navy);
  font-family: var(--sf-font-head);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
  transition: background var(--sf-t), color var(--sf-t), transform var(--sf-t), box-shadow var(--sf-t);
}

.sf-au-form .gform_wrapper.gravity-theme .gform_footer input[type="submit"]:hover,
.sf-au-form .gform_wrapper.gravity-theme .gform_footer .gform_button:hover {
  background: var(--sf-navy);
  color: var(--sf-white);
  transform: translateY(-2px);
  box-shadow: var(--sf-shadow-btn);
}

.sf-au-form .gform_wrapper.gravity-theme .gform_footer input[type="submit"]:focus-visible,
.sf-au-form .gform_wrapper.gravity-theme .gform_footer .gform_button:focus-visible { outline: 3px solid var(--sf-navy); outline-offset: 3px; }

.sf-au-form .sf-au-form__note { margin: 0; color: #4A5568; font-size: 14px; }

.sf-au-form .gform_confirmation_message { font-size: 17px; line-height: 1.6; }

/* --------------------------------------------------------------------------
 * Thank-you page — /automattic/thank-you/
 * ------------------------------------------------------------------------ */
.sf-au-thanks { background: linear-gradient(180deg, var(--sf-surface) 0%, var(--sf-white) 100%); }

.sf-au-thanks__inner {
  box-sizing: content-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(64px, 9vw, 140px) var(--sf-gutter);
  text-align: center;
}

.sf-au-thanks__note { max-width: 52ch; margin: 0; font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.sf-au-thanks__note a { color: var(--sf-navy); font-weight: 600; text-underline-offset: 3px; }
.sf-au-thanks__actions { justify-content: center; width: 100%; margin-top: 8px; }

/* --------------------------------------------------------------------------
 * Desktop
 * ------------------------------------------------------------------------ */
@media (min-width: 768px) {
  .sf-au-btn { flex: 0 0 auto; }

  .sf-au-hero__inner { grid-template-columns: minmax(0, 1.25fr) minmax(300px, 380px); }
  .sf-au-expect { display: flex; }

  .sf-au-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sf-au-stats > div { text-align: center; }
  .sf-au-badges { justify-content: center; }

  .sf-au-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sf-au-feature { min-height: 220px; }
  .sf-au-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }

  .sf-au-ai__points { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  .sf-au-split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
  .sf-au-standards { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .sf-au-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .sf-au-steps li { padding: 0; border-left: 0; }
  .sf-au-steps__mark::after { content: ""; flex: 1; height: 2px; background: var(--sf-input-border); }
  .sf-au-steps li:last-child .sf-au-steps__mark::after { background: transparent; }

  .sf-au-work { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
  .sf-au-reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .sf-au-contact__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }

  /* Name/Company, Country/URL and Need/Budget pair up; Gravity Forms marks them half width. */
  .sf-au-form .gform_wrapper.gravity-theme .gform_footer input[type="submit"],
  .sf-au-form .gform_wrapper.gravity-theme .gform_footer .gform_button { width: auto; }
}
