/*
 * Homepage - Contact section (ported from the Homepage V2 A/B test
 * template's Contact section, page-templates/page-home-v2.php /
 * assets/css/homepage-v2.css). Self-contained - does NOT rely on that
 * template's .vm-home scoping, since this lives on the real front page
 * instead. Scoped under .home-contact so it can't collide with anything
 * else; enqueued only for is_front_page() - see vm_enqueue_assets() in
 * functions.php.
 *
 * Colors/fonts pull the same tokens as the rest of the site (--red,
 * --red-dark, --font-display, --font-body, --light-grey, --border-grey,
 * --container-width, all defined in style.css) instead of homepage-v2.css's
 * own --maroon/--charcoal/--display/--body tokens.
 */

.home-contact {
  padding: 96px 0;
  background: var(--light-grey, #f5f5f5);
}

.home-contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
  align-items: flex-start;
}

.home-contact-head {
  margin-bottom: 32px;
}

.home-contact .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red, #8D0101);
  margin-bottom: 14px;
}

.home-contact .eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--red, #8D0101);
  display: inline-block;
}

.home-contact-head h2 {
  font-family: var(--font-display, sans-serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.15;
  color: var(--black, #111111);
  margin-bottom: 14px;
}

.home-contact-head p {
  color: var(--grey, #6b6b6b);
  font-size: 17px;
  line-height: 1.6;
}

.home-contact-points {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}

.home-contact-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.home-contact-icon {
  width: 46px;
  height: 46px;
  border-radius: 6px;
  background: rgba(141, 1, 1, 0.08);
  color: var(--red, #8D0101);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.home-contact-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.6;
}

.home-contact-point h4 {
  font-family: var(--font-display, sans-serif);
  font-weight: 500;
  font-size: 14.5px;
  color: var(--black, #111111);
  margin-bottom: 4px;
}

.home-contact-point p {
  font-size: 13.5px;
  color: var(--grey, #6b6b6b);
}

.home-contact-logos {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-grey, #e3e3e3);
}

.home-contact .trust-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grey, #6b6b6b);
  margin-bottom: 14px;
}

.home-contact-logo-row {
  max-width: 420px;
}

.home-contact-logo-row img {
  width: 100%;
  height: auto;
  display: block;
}

.home-form-card {
  background: #fff;
  border: 1px solid var(--border-grey, #e3e3e3);
  border-radius: 10px;
  padding: 38px;
  box-shadow: 0 1px 2px rgba(10, 8, 6, 0.04), 0 8px 24px rgba(10, 8, 6, 0.06);
}

.home-form-card .wpforms-container,
.home-form-card .wpforms-container-full,
.home-form-card div.wpforms-container-full {
  margin: 0 !important;
  max-width: none !important;
  background: transparent !important;
}

.home-form-card .wpforms-head-container {
  margin: 0 !important;
  padding: 0 !important;
}

.home-form-card .wpforms-title,
.home-form-card .wpforms-head-container .wpforms-title {
  display: none !important;
}

.home-form-card .wpforms-description {
  font-size: 12px !important;
  color: var(--grey, #6b6b6b) !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

.home-form-card .wpforms-form,
.home-form-card form.wpforms-form {
  background: transparent !important;
  color: var(--text, #1a1a1a);
}

.home-form-card .wpforms-field-container,
.home-form-card .wpforms-field-row,
.home-form-card .wpforms-form {
  overflow: hidden;
}

.home-form-card .wpforms-field-container::after,
.home-form-card .wpforms-field-row::after,
.home-form-card .wpforms-form::after {
  content: "";
  display: table;
  clear: both;
}

.home-form-card .wpforms-field {
  padding: 0 0 16px !important;
  margin: 0 !important;
  float: none;
}

.home-form-card .wpforms-field-label {
  display: block !important;
  float: none !important;
  width: auto !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: var(--text, #1a1a1a) !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
}

.home-form-card .wpforms-field-sublabel {
  display: block !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--grey, #6b6b6b) !important;
  margin: 6px 0 0 !important;
}

.home-form-card .wpforms-required-label {
  color: var(--red, #8D0101) !important;
  margin-left: 2px;
}

.home-form-card .wpforms-field input[type="text"],
.home-form-card .wpforms-field input[type="email"],
.home-form-card .wpforms-field input[type="url"],
.home-form-card .wpforms-field input[type="tel"],
.home-form-card .wpforms-field input[type="number"],
.home-form-card .wpforms-field input[type="password"],
.home-form-card .wpforms-field input[type="date"],
.home-form-card .wpforms-field select,
.home-form-card .wpforms-field textarea,
.home-form-card .wpforms-field .choices__inner {
  width: 100% !important;
  max-width: 100% !important;
  background: #fff !important;
  border: 1px solid var(--border-grey, #e3e3e3) !important;
  border-radius: 6px !important;
  padding: 12px 14px !important;
  color: var(--text, #1a1a1a) !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  min-height: 46px;
  height: auto !important;
  color-scheme: light;
}

.home-form-card .wpforms-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%236b6b6b' stroke-opacity='1' stroke-width='1.5' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 38px !important;
}

.home-form-card .wpforms-field textarea {
  min-height: 90px !important;
  resize: vertical;
}

.home-form-card .wpforms-field input::placeholder,
.home-form-card .wpforms-field textarea::placeholder {
  color: #9a9aa2 !important;
  opacity: 1;
}

.home-form-card .wpforms-field input[type="text"]:focus,
.home-form-card .wpforms-field input[type="email"]:focus,
.home-form-card .wpforms-field input[type="url"]:focus,
.home-form-card .wpforms-field input[type="tel"]:focus,
.home-form-card .wpforms-field input[type="number"]:focus,
.home-form-card .wpforms-field input[type="password"]:focus,
.home-form-card .wpforms-field input[type="date"]:focus,
.home-form-card .wpforms-field select:focus,
.home-form-card .wpforms-field textarea:focus,
.home-form-card .wpforms-field .choices.is-focused .choices__inner {
  border-color: var(--red, #8D0101) !important;
  outline: none !important;
  box-shadow: none !important;
}

.home-form-card .wpforms-field select option,
.home-form-card .choices__list--dropdown,
.home-form-card .choices__list[aria-expanded] {
  background: #fff;
  color: var(--text, #1a1a1a);
}

.home-form-card .wpforms-one-half,
.home-form-card .wpforms-one-third,
.home-form-card .wpforms-two-thirds,
.home-form-card .wpforms-field-row-block {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.home-form-card .wpforms-one-half {
  float: left !important;
  width: 48% !important;
  margin-left: 4% !important;
}

.home-form-card .wpforms-one-third {
  float: left !important;
  width: 30.666% !important;
  margin-left: 4% !important;
}

.home-form-card .wpforms-two-thirds {
  float: left !important;
  width: 65.333% !important;
  margin-left: 4% !important;
}

.home-form-card .wpforms-first {
  clear: both !important;
  margin-left: 0 !important;
}

.home-form-card .wpforms-layout-table,
.home-form-card .wpforms-field-layout-columns,
.home-form-card .wpforms-layout-columns {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0 16px;
}

.home-form-card .wpforms-layout-column {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 !important;
}

.home-form-card .wpforms-field-checkbox ul,
.home-form-card .wpforms-field-radio ul,
.home-form-card .wpforms-field-gdpr-checkbox ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.home-form-card .wpforms-field-checkbox li,
.home-form-card .wpforms-field-radio li,
.home-form-card .wpforms-field-gdpr-checkbox li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 8px !important;
  color: var(--grey, #6b6b6b);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.home-form-card .wpforms-field-label-inline {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--grey, #6b6b6b) !important;
  display: inline !important;
}

.home-form-card .wpforms-field input[type="checkbox"],
.home-form-card .wpforms-field input[type="radio"] {
  width: 16px !important;
  height: 16px !important;
  min-height: 0 !important;
  margin: 2px 0 0 !important;
  padding: 0 !important;
  flex-shrink: 0;
  accent-color: var(--red, #8D0101);
  background: #fff !important;
  border: 1px solid var(--border-grey, #e3e3e3) !important;
}

.home-form-card .wpforms-error,
.home-form-card label.wpforms-error,
.home-form-card em.wpforms-error {
  color: var(--red, #8D0101) !important;
  font-size: 12px !important;
  font-style: normal;
  margin: 6px 0 0 !important;
}

.home-form-card .wpforms-field input.wpforms-error,
.home-form-card .wpforms-field select.wpforms-error,
.home-form-card .wpforms-field textarea.wpforms-error {
  border-color: #ff6b6d !important;
}

.home-form-card .wpforms-field-hp,
.home-form-card .wpforms-field-hidden,
.home-form-card .wpforms-recaptcha-hidden {
  display: none !important;
}

.home-form-card .wpforms-submit-container {
  margin: 4px 0 0 !important;
  padding: 0 !important;
  clear: both;
}

.home-form-card .wpforms-submit,
.home-form-card button.wpforms-submit,
.home-form-card input[type="submit"].wpforms-submit,
.home-form-card .wpforms-page-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  background: var(--red, #8D0101) !important;
  color: #fff !important;
  border: 2px solid transparent !important;
  border-radius: 4px !important;
  padding: 15px 28px !important;
  font-family: inherit !important;
  font-size: 14.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.01em;
  line-height: 1.2 !important;
  min-height: 0 !important;
  height: auto !important;
  box-shadow: none !important;
  cursor: pointer;
}

.home-form-card .wpforms-submit:hover,
.home-form-card .wpforms-submit:focus,
.home-form-card .wpforms-submit:focus-visible {
  background: var(--red-dark, #621C15) !important;
  color: #fff !important;
  outline: none !important;
}

.home-form-card .wpforms-confirmation-container,
.home-form-card .wpforms-confirmation-container-full,
.home-form-card div[class*="wpforms-confirmation"] {
  background: transparent !important;
  border: 0 !important;
  margin: 0 !important;
  padding: 24px 0 !important;
  color: var(--text, #1a1a1a) !important;
  text-align: center;
}

.home-form-card .wpforms-confirmation-container p,
.home-form-card .wpforms-confirmation-container-full p,
.home-form-card div[class*="wpforms-confirmation"] p {
  color: var(--grey, #6b6b6b) !important;
  font-size: 14.5px;
}

@media (max-width: 980px) {
  .home-contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 680px) {
  .home-contact {
    padding: 64px 0;
  }

  .home-form-card {
    padding: 26px 22px;
  }

  .home-form-card .wpforms-one-half,
  .home-form-card .wpforms-one-third,
  .home-form-card .wpforms-two-thirds,
  .home-form-card .wpforms-field-row-block {
    width: 100% !important;
    float: none !important;
    margin-left: 0 !important;
  }

  .home-form-card .wpforms-layout-table,
  .home-form-card .wpforms-field-layout-columns,
  .home-form-card .wpforms-layout-columns {
    display: block !important;
  }
}
