/* ===== Contact page ===== */
.gc-contact-page {
  --gc-contact-shell-width: min(var(--gc-content-max), calc(100% - (2 * var(--gc-lower-tablet-gutter))));
  --gc-contact-shell-width-sp: calc(100% - (2 * var(--gc-lower-sp-gutter)));
  width: 100%;
  max-width: none;
  background:
    linear-gradient(180deg, rgba(248, 252, 253, 0.98) 0%, #ffffff 32%),
    #ffffff;
  color: #2c4c5b;
  overflow: hidden;
  position: relative;
}

.gc-contact-page > :not(#gc-menu-overlay):not(.gc-company-header):not(.gc-company-header-logo):not(.gc-company-nav-top):not(.gc-company-nav-main):not(.gc-company-page-title):not(.gc-fixed-page-hero) {
  position: relative;
  z-index: 1;
}

.gc-contact-intro,
.gc-contact-form-section {
  width: var(--gc-contact-shell-width);
  margin: 0 auto;
}

.gc-contact-intro {
  padding-top: 128px;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 84px;
  align-items: start;
}

.gc-contact-heading h2 {
  margin: 0;
  color: #8cc4df;
  font-family: "Roboto", sans-serif;
  font-size: 70px;
  font-weight: 100;
  line-height: 1;
  letter-spacing: 0.01em;
}

.gc-contact-heading p {
  margin: 12px 0 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 400;
  color: #5f8ba1;
}

.gc-contact-heading p::before {
  content: "";
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: center / contain no-repeat
    url("../images/top/common/heading-marker.svg");
}

.gc-contact-intro-copy {
  padding-top: 18px;
}

.gc-contact-intro-copy p {
  margin: 0;
  font-size: 16px;
  line-height: 2;
  color: #355868;
}

.gc-contact-intro-copy p + p {
  margin-top: 12px;
}

.gc-contact-intro-lead {
  font-size: 22px;
  line-height: 1.8;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.gc-contact-form-section {
  padding-top: 56px;
  padding-bottom: 140px;
}

.gc-contact-form-card {
  padding: 52px 56px 60px;
  border: 1px solid rgba(118, 164, 185, 0.24);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fcfd 100%),
    #ffffff;
  box-shadow: 0 32px 80px rgba(75, 121, 146, 0.12);
}

.gc-contact-cf7-form,
.gc-contact-cf7-form .wpcf7-form,
.gc-contact-cf7 {
  width: 100%;
}

.gc-contact-cf7 {
  display: grid;
  gap: 28px;
}

.gc-contact-cf7-feedback {
  min-height: 0;
}

.wpcf7 form.gc-contact-cf7-form .wpcf7-response-output {
  margin: 0;
  border: 1px solid transparent;
  border-radius: 24px;
  padding: 18px 22px;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 500;
  box-shadow: 0 16px 36px rgba(63, 104, 124, 0.08);
}

.wpcf7 form.gc-contact-cf7-form.sent .wpcf7-response-output {
  border-color: rgba(117, 191, 223, 0.28);
  background:
    linear-gradient(135deg, rgba(117, 191, 223, 0.18) 0%, rgba(241, 250, 253, 0.98) 100%),
    #f8fcfd;
  color: #24566d;
}

.wpcf7 form.gc-contact-cf7-form.invalid .wpcf7-response-output,
.wpcf7 form.gc-contact-cf7-form.unaccepted .wpcf7-response-output,
.wpcf7 form.gc-contact-cf7-form.payment-required .wpcf7-response-output {
  border-color: rgba(206, 158, 88, 0.34);
  background:
    linear-gradient(135deg, rgba(247, 223, 181, 0.34) 0%, rgba(255, 250, 242, 0.98) 100%),
    #fffaf2;
  color: #835d21;
}

.wpcf7 form.gc-contact-cf7-form.failed .wpcf7-response-output,
.wpcf7 form.gc-contact-cf7-form.aborted .wpcf7-response-output,
.wpcf7 form.gc-contact-cf7-form.spam .wpcf7-response-output {
  border-color: rgba(185, 111, 111, 0.28);
  background:
    linear-gradient(135deg, rgba(236, 203, 203, 0.38) 0%, rgba(253, 246, 246, 0.98) 100%),
    #fdf6f6;
  color: #8d4444;
}

.gc-contact-cf7-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 32px;
}

.gc-contact-cf7-field {
  display: grid;
  grid-template-rows: auto auto minmax(21px, auto);
  row-gap: 12px;
  align-content: start;
  min-width: 0;
}

.gc-contact-cf7-field--full {
  grid-column: 1 / -1;
}

.gc-contact-cf7-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2d5264;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gc-contact-cf7-required {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(108, 188, 223, 0.14);
  color: #4c91b0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

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

.gc-contact-cf7-postal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.gc-contact-cf7-input,
.gc-contact-cf7-textarea {
  width: 100%;
  border: 1px solid rgba(91, 128, 145, 0.28);
  border-radius: 18px;
  background: #ffffff;
  color: #2b4c5a;
  font: inherit;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease;
}

.gc-contact-cf7-input {
  min-height: 60px;
  padding: 0 18px;
}

.gc-contact-postal-lookup {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  padding: 0 20px;
  border: 1px solid rgba(75, 149, 182, 0.24);
  border-radius: 18px;
  background: rgba(117, 191, 223, 0.12);
  color: #2d6178;
  font: inherit;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease,
    opacity 0.2s ease;
}

.gc-contact-postal-lookup:hover {
  border-color: rgba(75, 149, 182, 0.42);
  background: rgba(117, 191, 223, 0.2);
}

.gc-contact-postal-lookup:disabled {
  cursor: wait;
  opacity: 0.72;
}

.gc-contact-cf7-textarea {
  min-height: 220px;
  padding: 16px 18px;
  resize: vertical;
}

.gc-contact-cf7-input::placeholder,
.gc-contact-cf7-textarea::placeholder {
  color: rgba(69, 99, 113, 0.52);
}

.gc-contact-cf7-input:focus,
.gc-contact-cf7-textarea:focus {
  outline: none;
  border-color: #6dbcdf;
  box-shadow: 0 0 0 4px rgba(109, 188, 223, 0.16);
}

.gc-contact-cf7-form .wpcf7-not-valid {
  border-color: #d26464;
  box-shadow: 0 0 0 4px rgba(210, 100, 100, 0.12);
}

.gc-contact-cf7-form .wpcf7-not-valid-tip {
  margin-top: 0;
  display: block;
  color: #c73f3f;
  font-size: 13px;
  line-height: 1.6;
  font-weight: 500;
}

.gc-contact-cf7-submit-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  margin-top: 4px;
  padding-bottom: 28px;
}

.gc-contact-cf7-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  min-height: 64px;
  padding: 0 36px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #75bfdf 0%, #4b95b6 100%);
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease;
  box-shadow: 0 18px 40px rgba(75, 149, 182, 0.24);
}

.gc-contact-cf7-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 46px rgba(75, 149, 182, 0.28);
}

.gc-contact-cf7-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.gc-contact-cf7-form .wpcf7-spinner {
  position: absolute;
  left: 50%;
  bottom: 0;
  margin: 0;
  display: block;
  transform: translateX(-50%);
}

.gc-contact-form-fallback {
  margin: 0;
  padding: 18px 20px;
  border-radius: 18px;
  background: #fff1f1;
  color: #9f1d1d;
  font-size: 15px;
  line-height: 1.8;
}

@media (max-width: 1180px) and (min-width: 768px) {
  .gc-contact-intro,
  .gc-contact-form-section {
    width: calc(100% - (2 * var(--gc-lower-tablet-gutter)));
  }

  .gc-contact-intro {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 48px;
  }

  .gc-contact-heading h2 {
    font-size: 58px;
  }

  .gc-contact-form-card {
    padding: 44px 40px 52px;
  }
}

@media (max-width: 767px) {
  .gc-contact-page {
    background:
      linear-gradient(180deg, rgba(248, 252, 253, 0.98) 0%, #ffffff 22%),
      #ffffff;
  }

  .gc-contact-intro,
  .gc-contact-form-section {
    width: var(--gc-contact-shell-width-sp);
  }

  .gc-contact-intro {
    padding-top: 96px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .gc-contact-heading h2 {
    font-size: 48px;
  }

  .gc-contact-heading p {
    margin-top: 10px;
    font-size: 18px;
  }

  .gc-contact-intro-copy {
    padding-top: 0;
  }

  .gc-contact-intro-copy p {
    font-size: 14px;
    line-height: 1.9;
  }

  .gc-contact-intro-lead {
    font-size: 18px;
    line-height: 1.8;
  }

  .gc-contact-form-section {
    padding-top: 36px;
    padding-bottom: 96px;
  }

  .gc-contact-form-card {
    padding: 28px 20px 36px;
    border-radius: 24px;
  }

  .gc-contact-cf7 {
    gap: 22px;
  }

  .gc-contact-cf7-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gc-contact-cf7-field,
  .gc-contact-cf7-field--full {
    grid-column: auto;
  }

  .gc-contact-cf7-label {
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
  }

  .gc-contact-cf7-input {
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
  }

  .gc-contact-cf7-postal-row {
    grid-template-columns: 1fr;
  }

  .gc-contact-postal-lookup {
    width: 100%;
    min-height: 54px;
    border-radius: 16px;
  }

  .gc-contact-cf7-textarea {
    min-height: 180px;
    padding: 14px 16px;
    border-radius: 16px;
  }

  .gc-contact-cf7-submit {
    width: 100%;
    min-width: 0;
    min-height: 58px;
  }
}
