/* CORNISH HOLIDAY COTTAGES – CONTACT PAGE */

.chc-contact-page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 24px 72px;
}


.chc-contact-title,
.chc-contact-right h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.1;
  margin: 0 0 18px;
  color: #0b2239;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.chc-contact-intro,
.chc-contact-right > p:first-of-type {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #6c757d!important;
  margin: 0 0 28px;
  max-width: 720px;
}

.chc-contact-details,
.chc-contact-note,
.chc-contact-right p {
  color: #334155;
  font-size: 1rem;
  line-height: 1.9;
}

.chc-contact-divider,
.chc-contact-right hr {
  border: 0;
  border-top: 1px solid rgba(15, 23, 42, 0.34);
  margin: 26px 0 24px;
  width: 100%;
}

/* FORM CARD */

.chc-contact-left .wpcf7,
.chc-contact-left .chc-contact-form {
  width: 100%;
}

.chc-contact-left .wpcf7 form {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid rgba(15, 76, 107, 0.10);
  border-radius: 22px;
  padding: 28px;
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    0 2px 10px rgba(15, 23, 42, 0.04);
}

.chc-contact-left .wpcf7 label,
.chc-contact-left .chc-form-field label {
  display: block;
  margin: 0 0 8px;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1.4;
}

.chc-contact-left .wpcf7 label span,
.chc-contact-left .chc-form-field label span {
  color: #64748b;
  font-weight: 500;
}

.chc-contact-left .wpcf7 p,
.chc-contact-left .chc-form-field {
  margin: 0 0 18px;
}

.chc-contact-left .wpcf7 input[type="text"],
.chc-contact-left .wpcf7 input[type="email"],
.chc-contact-left .wpcf7 input[type="tel"],
.chc-contact-left .wpcf7 textarea,
.chc-contact-left .chc-input,
.chc-contact-left .chc-textarea {
  width: 100%;
  display: block;
  border: 1px solid #cfd8e3;
  background: #f8fbfd;
  color: #0f172a;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 1rem;
  line-height: 1.5;
  box-sizing: border-box;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

.chc-contact-left .wpcf7 input[type="text"]:hover,
.chc-contact-left .wpcf7 input[type="email"]:hover,
.chc-contact-left .wpcf7 input[type="tel"]:hover,
.chc-contact-left .wpcf7 textarea:hover,
.chc-contact-left .chc-input:hover,
.chc-contact-left .chc-textarea:hover {
  border-color: #aebfd0;
  background: #ffffff;
}

.chc-contact-left .wpcf7 input[type="text"]:focus,
.chc-contact-left .wpcf7 input[type="email"]:focus,
.chc-contact-left .wpcf7 input[type="tel"]:focus,
.chc-contact-left .wpcf7 textarea:focus,
.chc-contact-left .chc-input:focus,
.chc-contact-left .chc-textarea:focus {
  outline: none;
  border-color: #0f5b7f;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(15, 91, 127, 0.12);
}

.chc-contact-left .wpcf7 input::placeholder,
.chc-contact-left .wpcf7 textarea::placeholder,
.chc-contact-left .chc-input::placeholder,
.chc-contact-left .chc-textarea::placeholder {
  color: #94a3b8;
}

.chc-contact-left .wpcf7 textarea,
.chc-contact-left .chc-textarea {
  min-height: 180px;
  resize: vertical;
}

.chc-contact-left .chc-form-submit,
.chc-contact-left .wpcf7 .chc-form-submit,
.chc-contact-left .wpcf7 p:has(.chc-submit) {
  margin-top: 12px;
  margin-bottom: 0;
}

.chc-contact-left .wpcf7 input[type="submit"],
.chc-contact-left .chc-submit {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 56px;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #0c4f73 0%, #083a58 100%);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(8, 58, 88, 0.22);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    filter 0.2s ease;
}

.chc-contact-left .wpcf7 input[type="submit"]:hover,
.chc-contact-left .chc-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.03);
  box-shadow: 0 14px 30px rgba(8, 58, 88, 0.28);
}

.chc-contact-left .wpcf7 input[type="submit"]:active,
.chc-contact-left .chc-submit:active {
  transform: translateY(0);
}

.chc-contact-left .wpcf7-spinner {
  margin: 12px 0 0 0;
}

.chc-contact-left .wpcf7-not-valid-tip {
  margin-top: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #b91c1c;
}

.chc-contact-left .wpcf7-not-valid {
  border-color: #dc2626 !important;
  background: #fff7f7 !important;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08) !important;
}

.chc-contact-left .wpcf7-response-output {
  margin: 18px 0 0 !important;
  padding: 14px 16px !important;
  border-radius: 14px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.chc-contact-left .wpcf7 form.sent .wpcf7-response-output {
  border: 1px solid #86efac;
  background: #f0fdf4;
  color: #166534;
}

.chc-contact-left .wpcf7 form.invalid .wpcf7-response-output,
.chc-contact-left .wpcf7 form.failed .wpcf7-response-output,
.chc-contact-left .wpcf7 form.aborted .wpcf7-response-output,
.chc-contact-left .wpcf7 form.unaccepted .wpcf7-response-output {
  border: 1px solid #fecaca;
  background: #fef2f2;
  color: #991b1b;
}

/*MAP*/

.chc-contact-map,
.cornwall-map-wrapper {
  border: none !important;
  box-shadow: none;
  background: transparent;
  border-radius: 16px;
  overflow: hidden;
}

.chc-contact-map iframe,
.chc-contact-map .leaflet-container,
.cornwall-map-wrapper iframe,
.cornwall-map-wrapper .leaflet-container {
  width: 100% !important;
  min-height: 340px;
  display: block;
  border: 0;
}

.chc-contact-map,
.chc-contact-map *,
.cornwall-map-wrapper,
.cornwall-map-wrapper *,
iframe {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

/*RESPONSIVE */

@media (max-width: 1024px) {
  .chc-contact-page {
    padding: 40px 20px 56px;
  }

  .chc-contact-page .wp-block-columns,
  .chc-contact-page .is-layout-flex {
    gap: 32px;
  }

  .chc-contact-left .wpcf7 form {
    padding: 24px;
  }
}

@media (max-width: 781px) {
  .chc-contact-page {
    padding: 32px 16px 44px;
  }

  .chc-contact-left .wpcf7 form {
    border-radius: 18px;
    padding: 20px;
  }

  .chc-contact-title,
  .chc-contact-right h2 {
    margin-top: 0;
  }

  .chc-contact-map iframe,
  .chc-contact-map .leaflet-container,
  .cornwall-map-wrapper iframe,
  .cornwall-map-wrapper .leaflet-container {
    min-height: 280px;
  }
}

.