/*
 * Per-area contact pages, /contact-us/<page-slug>/ (templates/area-contact.php).
 *
 * The approved design of 2026-10-16: a blue panel beside a white form panel in
 * one card. Loaded after practice-area.css, whose breadcrumb, page width and
 * colour tokens it reuses.
 */

body.area-contact { background: var(--pa-beige); }

.ac { padding-bottom: 96px; }

.ac .pa-crumbs { padding-bottom: 20px; }

.ac-card {
  display: flex;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(31, 61, 71, .12);
}

/* ------------------------------------------------------------ the panel - */

.ac-panel {
  flex: 1 1 440px;
  min-width: 0;
  background: var(--pa-blue);
  color: #fff;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.ac-panel__head { display: flex; flex-direction: column; gap: 16px; }

.ac-eyebrow {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--pa-orange);
}

.ac-title {
  margin: 0;
  font-size: 44px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  text-wrap: balance;
}

/* Build Your Team: the orange line under the heading. */
.ac-subtitle {
  margin: 0;
  font-size: 26px;
  line-height: 1.3;
  font-weight: 800;
  color: var(--pa-orange);
  text-wrap: balance;
}

/* No breadcrumb above the card there, so the card needs the room itself. */
.ac--landing { padding-top: 56px; }

.ac-intro {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: #d5dfe2;
}

.ac-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ac-step { display: flex; align-items: center; gap: 16px; }

.ac-step__n {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pa-orange);
  color: var(--pa-blue);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-step__t { font-weight: 700; font-size: 17px; color: #fff; }

/* The job board's app.css colours every p, span and input dark blue, which
   on this panel made the steps and the office address disappear. */
.ac-panel span:not(.ac-step__n):not(.ac-detail__label) { color: #fff; }

.ac-details {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 28px;
  font-size: 16px;
}

.ac-detail__label {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #b8c6ca;
}

.ac-detail__value { color: #fff; font-weight: 600; }
.ac-detail__value:hover, .ac-detail__value:focus-visible { color: var(--pa-orange); }

/* ------------------------------------------------------------- the form - */

.ac-form {
  flex: 1 1 560px;
  min-width: 0;
  background: #fff;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  color: var(--pa-blue);
}

.ac-jobs {
  margin: 0;
  padding-bottom: 20px;
  border-bottom: 1px solid #ece6e1;
  font-size: 18px;
  color: #3c5259;
}

.ac-jobs a { color: var(--pa-blue); font-weight: 700; text-decoration: underline; }

.ac-legal { margin: 0; font-size: 13px; color: #5b6b70; }

/* Gravity Forms. Scoped to this page so the main /contact-us/ form is untouched. */
.ac-form .gform_wrapper { margin: 0; }

.ac-form .gform_wrapper .gform_fields {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-form .gform_wrapper .gfield { grid-column: span 12; margin: 0; padding: 0; }

/* Form 1 uses Gravity Forms' legacy markup, and the theme styles that with
   !important (styles.css: 12px light labels, 30px under every row). */
.ac-form .gform_legacy_markup_wrapper ul.gform_fields li.gfield {
  margin: 0 !important;
  padding: 0 !important;
}
.ac-form .gform_legacy_markup_wrapper label.gfield_label {
  font-size: 14px !important;
  font-weight: 600 !important;
}
.ac-form .gform_legacy_markup_wrapper .ginput_container { margin-top: 0; }
.ac-form .gform_wrapper .gfield--width-half { grid-column: span 6; }
.ac-form .gform_wrapper .gfield.gform_hidden,
.ac-form .gform_wrapper .gfield--type-hidden,
.ac-form .gform_wrapper .gfield--type-captcha:not(:has(iframe)) { display: none; }

.ac-form .gform_wrapper .gfield_label {
  display: block;
  margin: 0 0 6px;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--pa-blue);
}

.ac-form .ac-optional { font-weight: 400; color: #5b6b70; }
.ac-form .gform_legacy_markup_wrapper label.gfield_label .ac-optional { font-weight: 400 !important; }

.ac-form .gform_wrapper .gfield_required { display: none; }

.ac-form .gform_wrapper input[type="text"],
.ac-form .gform_wrapper input[type="email"],
.ac-form .gform_wrapper input[type="tel"],
.ac-form .gform_wrapper textarea {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  margin: 0;
  border: 1px solid #c9c2bc;
  border-radius: 6px;
  padding: 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--pa-blue);
  background: #fff;
  box-shadow: none;
}

.ac-form .gform_wrapper textarea {
  height: 120px;
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

/* Service of interest on Build Your Team: the inputs' box, with the theme's
   chevron in place of the browser's. */
.ac-form .gform_wrapper select {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  margin: 0;
  border: 1px solid #c9c2bc;
  border-radius: 6px;
  padding: 0 44px 0 14px;
  font: inherit;
  font-size: 16px;
  color: var(--pa-blue);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%231f3d47' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  -webkit-appearance: none;
  appearance: none;
  box-shadow: none;
}

.ac-form .gform_wrapper input:focus,
.ac-form .gform_wrapper select:focus,
.ac-form .gform_wrapper textarea:focus {
  outline: 2px solid var(--pa-blue);
  outline-offset: 1px;
  border-color: var(--pa-blue);
}

.ac-form .gform_wrapper .gform_footer {
  margin: 18px 0 0;
  padding: 0;
}

.ac-form .gform_wrapper .gform_footer .gform_button,
.ac-form .gform_wrapper .gform_footer input[type="submit"] {
  width: 100%;
  height: auto;
  min-height: 54px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: var(--pa-orange);
  color: var(--pa-blue);
  font: inherit;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  /* Long labels ("Connect with our MSP staffing & supplier support team")
     wrap on phones, so the button grows with them rather than clipping. */
  line-height: 1.3;
  padding: 14px 16px;
  white-space: normal;
}

.ac-form .gform_wrapper .gform_footer .gform_button:hover,
.ac-form .gform_wrapper .gform_footer .gform_button:focus-visible { filter: brightness(.95); }

.ac-form .gform_wrapper .gfield_validation_message,
.ac-form .gform_wrapper .validation_message {
  margin: 6px 0 0;
  padding: 0;
  border: 0;
  background: none;
  font-size: 14px;
  color: #b3261e;
}

.ac-form .gform_wrapper .gform_validation_errors {
  margin: 0 0 18px;
  border-radius: 6px;
}

.ac-form .gform_confirmation_message {
  font-size: 18px;
  line-height: 1.55;
}

/* ---------------------------------------------------------------- small - */

@media (max-width: 900px) {
  .ac-card { flex-direction: column; }
  .ac-form .gform_wrapper .gfield--width-half { grid-column: span 12; }
}

@media (max-width: 600px) {
  .ac-panel, .ac-form { padding: 36px 24px; }
  .ac-title { font-size: 34px; }
  .ac-subtitle { font-size: 21px; }
  .ac--landing { padding-top: 24px; }
  .ac { padding-bottom: 56px; }
}
