/* contact-page — Component styles; responsive variants follow the desktop rules. */
.contact-page-content {
  padding: 88px max(24px, calc((100% - 1040px) / 2)) 67px;
  background: #fff;
  color: #1e2e6e;
}
.contact-page-inner {
  max-width: 1040px;
  margin: 0 auto;
}
.contact-page-inner > h2 {
  margin: 0 0 40px;
  text-align: center;
  font-size: 24px;
  line-height: 1.5;
  font-weight: 700;
}
.contact-form-card {
  padding: 24px;
  border: 1px solid #d3dcec;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.05);
}
.contact-form-header {
  margin-bottom: 20px;
}
.contact-form-header h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 28px;
}
.contact-form-header p {
  margin: 0;
  color: #5a6079;
  font-size: 13px;
  line-height: 20px;
}
.contact-page .wpcf7-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
}
.contact-page .contact-field {
  display: flex;
  flex-direction: column;
}
.contact-page .contact-field-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #5a6079;
  font-size: 12px;
  line-height: 18px;
  font-weight: 700;
}
.contact-page .contact-required {
  color: #c0392b;
}
.contact-page .wpcf7-form-control-wrap {
  display: block;
}
.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page input[type="tel"],
.contact-page select,
.contact-page textarea {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d3dcec;
  border-radius: 6px;
  background: #f7f9fd;
  color: #1e2e6e;
  font: 400 13px/18px inherit;
  box-sizing: border-box;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background-color 0.2s;
}
.contact-page input[type="text"],
.contact-page input[type="email"],
.contact-page input[type="tel"],
.contact-page select {
  height: 48px;
}
.contact-page select {
  appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, #2a54d6 50%),
    linear-gradient(135deg, #2a54d6 50%, transparent 50%);
  background-position:
    calc(100% - 19px) 20px,
    calc(100% - 14px) 20px;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.contact-page textarea {
  height: 140px;
  padding-top: 14px;
  padding-bottom: 14px;
  resize: vertical;
}
.contact-page input::placeholder,
.contact-page textarea::placeholder {
  color: #767676;
  opacity: 1;
}
.contact-page input:focus,
.contact-page select:focus,
.contact-page textarea:focus {
  outline: none;
  border-color: #2a54d6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(42, 84, 214, 0.12);
}
.contact-page .contact-category .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.contact-page .wpcf7-checkbox,
.contact-page .wpcf7-radio {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.contact-page .wpcf7-checkbox .wpcf7-list-item,
.contact-page .wpcf7-radio .wpcf7-list-item {
  margin: 0;
}
.contact-page .wpcf7-checkbox label,
.contact-page .wpcf7-radio label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #5a6079;
  font-size: 13px;
  line-height: 20px;
}
.contact-page .wpcf7-checkbox input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2a54d6;
}
.contact-page .contact-category .wpcf7-list-item {
  margin: 0;
}
.contact-page .contact-category label {
  display: block;
  position: relative;
  cursor: pointer;
}
.contact-page .contact-category input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.contact-page .contact-category .wpcf7-list-item-label {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 14px;
  border: 1px solid #d3dcec;
  border-radius: 6px;
  background: #f7f9fd;
  color: #5a6079;
  font-size: 13px;
  line-height: 18px;
  transition: 0.2s;
}
.contact-page .contact-category input:checked + .wpcf7-list-item-label {
  border-color: #2a54d6;
  background: #2a54d6;
  color: #fff;
}
.contact-page .contact-category input:focus-visible + .wpcf7-list-item-label {
  outline: 2px solid #2a54d6;
  outline-offset: 2px;
}
.contact-page .contact-consent {
  font-size: 12px;
  line-height: 20px;
  color: #5a6079;
}
.contact-page .contact-consent .wpcf7-list-item {
  margin: 0;
}
.contact-page .contact-consent label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.contact-page .contact-consent input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #2a54d6;
}
.contact-page .contact-consent a {
  color: #2a54d6;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-page .contact-submit {
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.contact-page input[type="submit"] {
  width: min(100%, 450px);
  height: 52px;
  border: 0;
  border-radius: 6px;
  background: #2a54d6;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s,
    transform 0.2s;
}
.contact-page input[type="submit"]:hover {
  background: #183fae;
}
.contact-page input[type="submit"]:active {
  transform: translateY(1px);
}
.contact-page .wpcf7-spinner {
  position: absolute;
}
.contact-page .wpcf7-not-valid-tip {
  margin-top: 5px;
  font-size: 12px;
}
.contact-page .wpcf7-response-output {
  margin: 4px 0 0 !important;
  padding: 12px 14px !important;
  border-width: 1px !important;
  border-radius: 6px;
  font-size: 13px;
}
.contact-form-notice {
  margin: 0;
  color: #5a6079;
  text-align: center;
}
@media (max-width: 767px) {
  .contact-page-content {
    padding: 64px var(--subpage-inline, 24px) 72px;
  }
  .contact-page-inner > h2 {
    margin-bottom: 28px;
    font-size: 20px;
  }
  .contact-form-card {
    padding: 20px 16px;
    border-radius: 10px;
  }
  .contact-page .contact-category .wpcf7-radio {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .contact-page .contact-category .wpcf7-list-item-label {
    justify-content: center;
  }
  .contact-page textarea {
    height: 160px;
  }
}

/* CF7 wraps labels and controls in the same paragraph. */
.contact-page .contact-field-label + .wpcf7-form-control-wrap {
  margin-top: 12px;
}
.contact-page .contact-field {
  gap: 12px;
}
