.contact-page-hero {
  overflow: hidden;
  background: var(--brand-pale);
}

.contact-page-hero__inner {
  min-height: 560px;
  display: flex;
  align-items: stretch;
}

.contact-page-hero__copy {
  width: 52%;
  padding: 94px 72px 82px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-page-hero__copy h1 {
  max-width: 650px;
  margin: 0 0 26px;
  font-size: var(--font-size-lower-hero-heading);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.08em;
}

.contact-page-hero__lead {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-size: var(--font-size-subtitle);
  font-weight: 500;
  line-height: 2;
}

.contact-page-hero__actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-page-hero__visual {
  width: 48%;
  min-height: 560px;
  position: relative;
}

.contact-page-hero__backdrop {
  position: absolute;
  inset: 48px 0 46px 22px;
  border: 1px solid #f0c8aa;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.contact-page-hero__backdrop::before, .contact-page-hero__backdrop::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: var(--brand-soft);
}

.contact-page-hero__backdrop::before {
  width: 190px;
  height: 190px;
  top: 30px;
  right: 42px;
}

.contact-page-hero__backdrop::after {
  width: 94px;
  height: 94px;
  left: 54px;
  bottom: 52px;
}

.contact-page-hero__envelope {
  width: 168px;
  color: var(--brand);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -56%);
}

.contact-page-hero__note {
  min-width: 172px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 13px;
  position: absolute;
  z-index: 3;
}

.contact-page-hero__note span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-caption);
  font-weight: 700;
}

.contact-page-hero__note p {
  margin: 0;
  color: var(--navy);
  font-size: var(--font-size-body-small);
  font-weight: 700;
  line-height: 1.65;
}

.contact-page-hero__note--one {
  top: 90px;
  left: 0;
}

.contact-page-hero__note--two {
  top: 180px;
  right: -4px;
}

.contact-page-hero__note--three {
  right: 30px;
  bottom: 74px;
}

.contact-channel-list {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 22px;
}

.contact-channel-card {
  width: calc((100% - 44px) / 3);
  min-height: 520px;
  padding: 38px 34px 34px;
  border: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-soft);
}

.contact-channel-card--form {
  border-top: 5px solid var(--brand);
}

.contact-channel-card--line {
  border-top: 5px solid var(--line-green);
}

.contact-channel-card--visit {
  border-top: 5px solid var(--navy);
}

.contact-channel-card__icon {
  width: 66px;
  height: 66px;
  margin-bottom: 24px;
  border-radius: 50%;
  color: var(--brand);
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-channel-card--line .contact-channel-card__icon {
  color: var(--line-green);
  background: #ecfff2;
}

.contact-channel-card--visit .contact-channel-card__icon {
  color: var(--navy);
  background: var(--navy-pale);
}

.contact-channel-card__icon svg {
  width: 32px;
  height: 32px;
}

.contact-channel-card__label {
  margin: 0 0 9px;
  color: var(--brand-dark);
  font-size: var(--font-size-caption);
  font-weight: 700;
  letter-spacing: 0.18em;
}

.contact-channel-card--line .contact-channel-card__label {
  color: #008a38;
}

.contact-channel-card--visit .contact-channel-card__label {
  color: var(--navy);
}

.contact-channel-card h3 {
  margin: 0 0 16px;
  font-size: var(--font-size-card-title);
  line-height: 1.55;
}

.contact-channel-card > p:not(.contact-channel-card__label) {
  margin: 0;
  color: var(--ink-soft);
}

.contact-channel-card ul {
  margin: 24px 0 28px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.contact-channel-card li {
  margin: 8px 0 0;
  padding-left: 22px;
  position: relative;
  color: var(--ink-soft);
  font-size: var(--font-size-body-small);
}

.contact-channel-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  position: absolute;
  top: 0.72em;
  left: 2px;
}

.contact-channel-card--line li::before {
  background: var(--line-green);
}

.contact-channel-card--visit li::before {
  background: var(--navy);
}

.contact-channel-card .button {
  width: 100%;
  margin-top: auto;
}

.contact-phone-note {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  background: #ffffff;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contact-phone-note > div {
  display: flex;
  flex-direction: column;
}

.contact-phone-note span {
  color: var(--brand-dark);
  font-size: var(--font-size-caption);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.contact-phone-note strong {
  font-size: var(--font-size-subtitle);
}

.contact-phone-note small {
  color: var(--ink-soft);
  font-size: var(--font-size-caption);
}

.contact-before-layout {
  display: flex;
  align-items: flex-start;
  gap: 70px;
}

.contact-before-layout > .content-heading {
  width: 42%;
  flex: 0 0 42%;
  position: sticky;
  top: 24px;
}

.contact-before-list {
  width: 58%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-before-list article {
  padding: 28px 30px;
  border: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  align-items: flex-start;
  gap: 22px;
}

.contact-before-list article > span {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-caption);
  font-weight: 700;
}

.contact-before-list h3 {
  margin: 0 0 8px;
  font-size: var(--font-size-subtitle);
  line-height: 1.55;
}

.contact-before-list p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-form-section {
  scroll-margin-top: 24px;
}

.contact-form-layout {
  display: flex;
  align-items: flex-start;
  gap: 58px;
}

.contact-form-sidebar {
  width: 31%;
  flex: 0 0 31%;
  position: sticky;
  top: 24px;
}

.contact-form-sidebar > h2 {
  margin: 0 0 20px;
  font-size: var(--font-size-content-heading-compact);
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.contact-form-sidebar > p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-required-text {
  color: var(--brand-dark);
  font-weight: 700;
}

.contact-form-sidebar__notes, .contact-form-sidebar__security {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--brand-pale);
}

.contact-form-sidebar__notes h3, .contact-form-sidebar__security h3 {
  margin: 0 0 12px;
  font-size: var(--font-size-subtitle);
}

.contact-form-sidebar__notes ul {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-soft);
}

.contact-form-sidebar__notes li + li {
  margin-top: 8px;
}

.contact-form-sidebar__security {
  background: var(--navy-pale);
  display: flex;
  align-items: flex-start;
  gap: 15px;
}

.contact-form-sidebar__security > span {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  color: var(--navy);
}

.contact-form-sidebar__security h3 {
  margin-bottom: 6px;
}

.contact-form-sidebar__security p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--font-size-body-small);
}

.contact-form-preview {
  width: 69%;
  padding: 50px 48px;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.wpcf7-form {
  margin: 0;
}

.contact-form-group {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 22px;
}

.contact-form-group + .contact-form-group {
  margin-top: 48px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.contact-form-group__heading {
  width: 100%;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.contact-form-group__heading > span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-caption);
  font-weight: 700;
}

.contact-form-group__heading h3 {
  margin: 0;
  font-size: var(--font-size-heading-xs);
  line-height: 1.5;
}

.contact-form-field {
  margin: 0;
  min-width: 0;
}

.contact-form-field--half {
  width: calc((100% - 22px) / 2);
}

.contact-form-field--full {
  width: 100%;
}

.contact-form-field > label, .contact-form-field > legend {
  margin: 0 0 10px;
  padding: 0;
  color: var(--navy);
  display: block;
  font-size: var(--font-size-body);
  font-weight: 700;
}

.contact-form-field > small {
  margin-top: 9px;
  color: var(--ink-soft);
  display: block;
  font-size: var(--font-size-caption);
  line-height: 1.75;
}

.contact-required, .contact-optional {
  margin-left: 7px;
  padding: 3px 7px;
  display: inline-flex;
  vertical-align: middle;
  font-size: var(--font-size-caption);
  font-weight: 700;
  line-height: 1.4;
}

.contact-required {
  color: #ffffff;
  background: var(--brand-dark);
}

.contact-optional {
  color: var(--ink-soft);
  background: var(--navy-pale);
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-text, .wpcf7-email, .wpcf7-tel, .wpcf7-date, .wpcf7-select, .wpcf7-textarea {
  width: 100%;
  border: 1px solid #cfc6c0;
  border-radius: 0;
  color: var(--ink);
  background: #ffffff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.wpcf7-text, .wpcf7-email, .wpcf7-tel, .wpcf7-date, .wpcf7-select {
  min-height: 58px;
  padding: 13px 15px;
}

.wpcf7-textarea {
  min-height: 210px;
  padding: 15px;
  resize: vertical;
  line-height: 1.8;
}

.wpcf7-select {
  cursor: pointer;
}

.wpcf7-text::placeholder, .wpcf7-email::placeholder, .wpcf7-tel::placeholder, .wpcf7-textarea::placeholder {
  color: #918984;
  opacity: 1;
}

.wpcf7-text:focus, .wpcf7-email:focus, .wpcf7-tel:focus, .wpcf7-date:focus, .wpcf7-select:focus, .wpcf7-textarea:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 4px rgba(241, 122, 34, 0.13);
}

.contact-form-choice {
  border: 0;
  padding: 0;
}

.wpcf7-radio, .wpcf7-checkbox {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 10px;
}

.wpcf7-list-item {
  margin: 0;
}

.wpcf7-list-item label {
  min-height: 50px;
  padding: 11px 16px;
  border: 1px solid #cfc6c0;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.wpcf7-list-item input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand);
}

.wpcf7-list-item-label {
  font-weight: 600;
}

.contact-form-consent {
  margin-top: 40px;
  padding: 24px;
  border: 1px solid var(--border);
  background: var(--brand-pale);
}

.contact-form-consent .wpcf7-list-item label {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: flex-start;
}

.contact-form-consent a {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-form-submit {
  margin-top: 30px;
  text-align: center;
}

.contact-form-submit p {
  margin: 0 0 16px;
  color: var(--ink-soft);
  font-size: var(--font-size-body-small);
}

.contact-form-submit .wpcf7-submit {
  min-width: 300px;
  border: 0;
  cursor: pointer;
}

.wpcf7-form.submitting .wpcf7-submit {
  opacity: 0.62;
  pointer-events: none;
}

.wpcf7-spinner {
  width: 26px;
  height: 26px;
  margin: 14px auto 0;
  border: 3px solid #e7ded8;
  border-top-color: var(--brand);
  border-radius: 50%;
  display: none;
  animation: contact-spinner 0.8s linear infinite;
}

.wpcf7-form.submitting .wpcf7-spinner {
  display: block;
}

.wpcf7-not-valid {
  border-color: #b3261e !important;
  background: #fff7f6;
}

.wpcf7-not-valid-tip {
  margin-top: 7px;
  color: #b3261e;
  display: block;
  font-size: var(--font-size-caption);
  font-weight: 600;
}

.wpcf7-response-output {
  margin: 28px 0 0;
  padding: 18px 20px;
  border: 1px solid var(--border);
  display: none;
  font-weight: 600;
}

.wpcf7-form.invalid .wpcf7-response-output, .wpcf7-form.failed .wpcf7-response-output, .wpcf7-form.sent .wpcf7-response-output, .wpcf7-form.spam .wpcf7-response-output, .wpcf7-form.aborted .wpcf7-response-output, .wpcf7-form.unaccepted .wpcf7-response-output {
  display: block;
}

.wpcf7-form.invalid .wpcf7-response-output, .wpcf7-form.failed .wpcf7-response-output, .wpcf7-form.spam .wpcf7-response-output, .wpcf7-form.aborted .wpcf7-response-output, .wpcf7-form.unaccepted .wpcf7-response-output {
  color: #7a1b16;
  border-color: #e3a39e;
  background: #fff4f3;
}

.wpcf7-form.sent .wpcf7-response-output {
  color: #155b2a;
  border-color: #98d5aa;
  background: #f1fff5;
}

.contact-after .content-heading h2 {
  color: #ffffff;
}

.contact-after-list {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  list-style: none;
}

.contact-after-list li {
  width: calc(100% / 3);
  min-height: 300px;
  padding: 36px 32px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
}

.contact-after-list li + li {
  border-left: 0;
}

.contact-after-list li > span {
  color: #ffc69b;
  font-size: var(--font-size-heading-md);
  font-weight: 600;
}

.contact-after-list small {
  margin: 20px 0 9px;
  color: #ffc69b;
  display: block;
  font-size: var(--font-size-caption);
  font-weight: 700;
  letter-spacing: 0.15em;
}

.contact-after-list h3 {
  margin: 0 0 13px;
  color: #ffffff;
  font-size: var(--font-size-card-title);
}

.contact-after-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.contact-after-note {
  margin-top: 24px;
  padding: 28px 32px;
  border-left: 5px solid var(--brand);
  background: rgba(255, 255, 255, 0.08);
}

.contact-after-note h3 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: var(--font-size-subtitle);
}

.contact-after-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
}

.contact-related-list {
  display: flex;
  align-items: stretch;
  gap: 18px;
}

.contact-related-list a {
  width: calc((100% - 36px) / 3);
  min-height: 270px;
  padding: 32px;
  border: 1px solid var(--border);
  background: #ffffff;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.contact-related-list a:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.contact-related-list span {
  color: var(--brand-dark);
  font-size: var(--font-size-caption);
  font-weight: 700;
  letter-spacing: 0.15em;
}

.contact-related-list h3 {
  margin: 18px 0 12px;
  font-size: var(--font-size-card-title);
}

.contact-related-list p {
  margin: 0 0 22px;
  color: var(--ink-soft);
}

.contact-related-list b {
  margin-top: auto;
  color: var(--brand-dark);
  font-size: var(--font-size-body-small);
}

@media (max-width: 1080px) {
  .contact-page-hero__copy {
    padding-right: 48px;
  }
  .contact-page-hero__note--two {
    right: 12px;
  }
  .contact-channel-card {
    padding-right: 28px;
    padding-left: 28px;
  }
  .contact-form-layout {
    gap: 38px;
  }
  .contact-form-preview {
    padding: 42px 36px;
  }
}

@media (max-width: 900px) {
  .contact-page-hero__inner, .contact-before-layout, .contact-form-layout {
    flex-direction: column;
  }
  .contact-page-hero__copy, .contact-page-hero__visual, .contact-before-layout > .content-heading, .contact-before-list, .contact-form-sidebar, .contact-form-preview {
    width: 100%;
    flex-basis: auto;
  }
  .contact-page-hero__copy {
    padding: 66px 0 46px;
  }
  .contact-page-hero__visual {
    min-height: 470px;
  }
  .contact-page-hero__backdrop {
    inset: 24px 30px 34px;
  }
  .contact-page-hero__note--one {
    left: 7%;
  }
  .contact-page-hero__note--two {
    right: 8%;
  }
  .contact-page-hero__note--three {
    right: 16%;
  }
  .contact-channel-card {
    width: calc((100% - 22px) / 2);
  }
  .contact-channel-card:last-child {
    width: 100%;
    min-height: 0;
  }
  .contact-before-layout, .contact-form-layout {
    gap: 38px;
  }
  .contact-before-layout > .content-heading, .contact-form-sidebar {
    position: static;
  }
  .contact-form-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
  }
  .contact-form-sidebar > .section-label, .contact-form-sidebar > h2, .contact-form-sidebar > p {
    width: 100%;
  }
  .contact-form-sidebar__notes, .contact-form-sidebar__security {
    width: calc((100% - 18px) / 2);
    margin-top: 10px;
  }
  .contact-after-list, .contact-related-list {
    flex-wrap: wrap;
  }
  .contact-after-list li {
    width: 50%;
  }
  .contact-after-list li:nth-child(3) {
    width: 100%;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
  }
  .contact-related-list a {
    width: calc((100% - 18px) / 2);
  }
  .contact-related-list a:last-child {
    width: 100%;
    min-height: 0;
  }
}

@media (max-width: 700px) {
  .contact-channel-card {
    width: 100%;
    min-height: 0;
  }
  .contact-form-sidebar__notes, .contact-form-sidebar__security, .contact-form-field--half {
    width: 100%;
  }
  .contact-form-preview {
    padding: 34px 24px;
  }
  .contact-after-list {
    flex-direction: column;
  }
  .contact-after-list li, .contact-after-list li:nth-child(3) {
    width: 100%;
    min-height: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
  }
  .contact-after-list li + li, .contact-after-list li:nth-child(3) {
    border-top: 0;
  }
  .contact-related-list {
    flex-direction: column;
  }
  .contact-related-list a, .contact-related-list a:last-child {
    width: 100%;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .contact-page-hero__copy {
    padding: 52px 0 34px;
  }
  .contact-page-hero__copy h1 {
    font-size: var(--font-size-lower-hero-mobile);
  }
  .contact-page-hero__lead {
    font-size: var(--font-size-body);
  }
  .contact-page-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .contact-page-hero__actions .button {
    width: 100%;
  }
  .contact-page-hero__visual {
    min-height: 430px;
    width: calc(100% + 32px);
    margin: 0 -16px;
  }
  .contact-page-hero__backdrop {
    inset: 24px 16px 30px;
  }
  .contact-page-hero__envelope {
    width: 132px;
  }
  .contact-page-hero__note {
    min-width: 0;
    padding: 14px 15px;
  }
  .contact-page-hero__note--one {
    top: 58px;
    left: 4%;
  }
  .contact-page-hero__note--two {
    top: 162px;
    right: 4%;
  }
  .contact-page-hero__note--three {
    right: 10%;
    bottom: 54px;
  }
  .contact-before-list article {
    padding: 24px 22px;
  }
  .contact-form-preview {
    width: calc(100% + 16px);
    margin-left: -8px;
    padding: 30px 18px;
  }
  .contact-form-group {
    gap: 22px;
  }
  .contact-form-group + .contact-form-group {
    margin-top: 38px;
    padding-top: 38px;
  }
  .contact-form-group__heading h3 {
    font-size: var(--font-size-card-title);
  }
  .wpcf7-radio, .wpcf7-checkbox {
    flex-direction: column;
  }
  .wpcf7-list-item label {
    width: 100%;
  }
  .contact-form-submit .wpcf7-submit {
    width: 100%;
    min-width: 0;
  }
  .contact-after-note {
    padding: 24px 22px;
  }
}

@keyframes contact-spinner {
  to {
    transform: rotate(360deg);
  }
}
