/* Ray Health — Contact Us page + Contact Form 7 */

body.pharmacymentor-child.page-template-contact,
body.pharmacymentor-child.page-template-page-templatescontact-php {
  font-family: var(--font-primary);
  color: var(--color-text);
  background: var(--color-surface-muted);
}

/* ---------- Hero / page title ---------- */
body.pharmacymentor-child.page-template-contact .page-title,
body.pharmacymentor-child.page-template-page-templatescontact-php .page-title {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover !important;
  background-position: center !important;
  padding: clamp(80px, 12vw, 120px) 0 clamp(48px, 8vw, 72px);
  text-align: center;
}

body.pharmacymentor-child.page-template-contact .page-title:before,
body.pharmacymentor-child.page-template-page-templatescontact-php .page-title:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 34, 41, 0.55) 0%,
    rgba(51, 51, 51, 0.72) 100%
  );
  z-index: 0;
}

body.pharmacymentor-child.page-template-contact .page-title .container,
body.pharmacymentor-child.page-template-page-templatescontact-php .page-title .container {
  position: relative;
  z-index: 1;
}

body.pharmacymentor-child.page-template-contact .page-title h2,
body.pharmacymentor-child.page-template-page-templatescontact-php .page-title h2 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  color: var(--color-white) !important;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  text-transform: none;
}

body.pharmacymentor-child.page-template-contact .page-title .breadcrumb,
body.pharmacymentor-child.page-template-page-templatescontact-php .page-title .breadcrumb {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 14px;
}

body.pharmacymentor-child.page-template-contact .page-title .breadcrumb li,
body.pharmacymentor-child.page-template-page-templatescontact-php .page-title .breadcrumb li,
body.pharmacymentor-child.page-template-contact .page-title .breadcrumb a,
body.pharmacymentor-child.page-template-page-templatescontact-php .page-title .breadcrumb a {
  color: rgba(255, 255, 255, 0.9) !important;
}

body.pharmacymentor-child.page-template-contact .page-title .breadcrumb a:hover,
body.pharmacymentor-child.page-template-page-templatescontact-php .page-title .breadcrumb a:hover {
  color: var(--color-gold) !important;
}

body.pharmacymentor-child.page-template-contact .page-title .breadcrumb > li + li:before,
body.pharmacymentor-child.page-template-page-templatescontact-php .page-title .breadcrumb > li + li:before {
  color: var(--color-gold) !important;
  padding: 0 6px;
}

/* ---------- Main contact layout ---------- */
body.pharmacymentor-child.page-template-contact .contact-main-section,
body.pharmacymentor-child.page-template-page-templatescontact-php .contact-main-section {
  background: var(--color-surface-muted) !important;
  padding: clamp(40px, 6vw, 72px) 0;
}

body.pharmacymentor-child.page-template-contact .contact-container,
body.pharmacymentor-child.page-template-page-templatescontact-php .contact-container {
  max-width: 1200px;
}

body.pharmacymentor-child.page-template-contact .contact-form,
body.pharmacymentor-child.page-template-page-templatescontact-php .contact-form {
  width: 100%;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
}

body.pharmacymentor-child.page-template-contact .contact-form h1,
body.pharmacymentor-child.page-template-contact .contact-form h2,
body.pharmacymentor-child.page-template-contact .contact-form h3,
body.pharmacymentor-child.page-template-page-templatescontact-php .contact-form h1,
body.pharmacymentor-child.page-template-page-templatescontact-php .contact-form h2,
body.pharmacymentor-child.page-template-page-templatescontact-php .contact-form h3 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--color-dark);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}

body.pharmacymentor-child.page-template-contact .contact-form > p,
body.pharmacymentor-child.page-template-page-templatescontact-php .contact-form > p {
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text-muted);
  margin: 0 0 1.5rem;
}

/* Quick contact sidebar */
body.pharmacymentor-child.page-template-contact .quick-contact,
body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact {
  position: relative;
  width: 100%;
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

body.pharmacymentor-child.page-template-contact .quick-contact .border-left,
body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact .border-left {
  display: none;
}

body.pharmacymentor-child.page-template-contact .quick-contact::before,
body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-gold);
}

body.pharmacymentor-child.page-template-contact .quick-contact h1,
body.pharmacymentor-child.page-template-contact .quick-contact h2,
body.pharmacymentor-child.page-template-contact .quick-contact h3,
body.pharmacymentor-child.page-template-contact .quick-contact h4,
body.pharmacymentor-child.page-template-contact .quick-contact h5,
body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact h1,
body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact h2,
body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact h3,
body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact h4,
body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact h5 {
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--color-gold) !important;
  margin: 0 0 0.75rem;
}

body.pharmacymentor-child.page-template-contact .quick-contact p,
body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact p {
  font-family: var(--font-primary);
  font-size: 15px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.88);
  margin: 0 0 1rem;
}

body.pharmacymentor-child.page-template-contact .quick-contact a,
body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact a {
  color: var(--color-white);
  text-decoration: none;
  transition: color var(--transition-ui);
}

body.pharmacymentor-child.page-template-contact .quick-contact a:hover,
body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact a:hover {
  color: var(--color-gold);
}

body.pharmacymentor-child.page-template-contact .quick-contact i,
body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact i {
  color: var(--color-gold);
  margin-right: 10px;
  width: 1.1em;
  text-align: center;
}

body.pharmacymentor-child.page-template-contact .quick-contact .contact-image img,
body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact .contact-image img {
  max-height: 48px;
  width: auto;
  filter: brightness(0) invert(1);
}

/* ---------- Contact Form 7 ---------- */
body.pharmacymentor-child.page-template-contact .wpcf7,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7,
body.pharmacymentor-child.page-template-contact .contact-pg-section .wpcf7,
body.pharmacymentor-child.page-template-page-templatescontact-php .contact-pg-section .wpcf7 {
  border: none;
  background: transparent;
  padding: 0;
  border-radius: 0;
}

body.pharmacymentor-child.page-template-contact .wpcf7 form,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 form {
  margin: 0;
}

body.pharmacymentor-child.page-template-contact .wpcf7 label,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 label {
  display: block;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-dark) !important;
  margin-bottom: 8px;
}

body.pharmacymentor-child.page-template-contact .wpcf7 p,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 p {
  margin-bottom: 1.1rem !important;
}

body.pharmacymentor-child.page-template-contact .wpcf7 input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.pharmacymentor-child.page-template-contact .wpcf7 select,
body.pharmacymentor-child.page-template-contact .wpcf7 textarea,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 select,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 textarea {
  width: 100%;
  height: 52px;
  border: 1.5px solid var(--color-border-strong) !important;
  border-radius: 12px !important;
  padding: 0 16px !important;
  background: var(--color-white) !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary) !important;
  font-size: 15px !important;
  box-shadow: none !important;
  transition: border-color var(--transition-ui), box-shadow var(--transition-ui);
}

body.pharmacymentor-child.page-template-contact .wpcf7 textarea,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 textarea {
  height: auto !important;
  min-height: 140px;
  padding: 14px 16px !important;
  resize: vertical;
}

body.pharmacymentor-child.page-template-contact .wpcf7 input:focus:not([type="submit"]),
body.pharmacymentor-child.page-template-contact .wpcf7 select:focus,
body.pharmacymentor-child.page-template-contact .wpcf7 textarea:focus,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 input:focus:not([type="submit"]),
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 select:focus,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 textarea:focus {
  border-color: var(--color-gold) !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(221, 181, 84, 0.28) !important;
}

body.pharmacymentor-child.page-template-contact .wpcf7 input::placeholder,
body.pharmacymentor-child.page-template-contact .wpcf7 textarea::placeholder,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 input::placeholder,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 textarea::placeholder {
  color: #9a9a9a;
  opacity: 1;
}

/* Submit — gold pill */
body.pharmacymentor-child.page-template-contact .wpcf7 input[type="submit"],
body.pharmacymentor-child.page-template-contact .wpcf7 button[type="submit"],
body.pharmacymentor-child.page-template-contact .wpcf7 .wpcf7-submit,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 input[type="submit"],
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 button[type="submit"],
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 .wpcf7-submit {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  width: auto;
  min-width: 180px;
  margin-top: 0.5rem;
  padding: 16px 36px !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  background: var(--color-gold) !important;
  background-image: none !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary) !important;
  font-weight: 600 !important;
  font-size: 17px !important;
  line-height: 1 !important;
  text-transform: none !important;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform var(--transition-fast), filter var(--transition-ui),
    box-shadow var(--transition-ui);
}

body.pharmacymentor-child.page-template-contact .wpcf7 input[type="submit"]:hover,
body.pharmacymentor-child.page-template-contact .wpcf7 .wpcf7-submit:hover,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 input[type="submit"]:hover,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 .wpcf7-submit:hover {
  filter: brightness(1.03);
  box-shadow: var(--shadow-raised);
  transform: translateY(-1px);
  color: var(--color-dark) !important;
  background: var(--color-gold) !important;
}

body.pharmacymentor-child.page-template-contact .wpcf7-not-valid,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7-not-valid {
  border-color: #c44 !important;
}

body.pharmacymentor-child.page-template-contact .wpcf7-not-valid-tip,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7-not-valid-tip {
  color: #c44;
  font-family: var(--font-primary);
  font-size: 13px;
  margin-top: 6px;
}

body.pharmacymentor-child.page-template-contact .wpcf7-response-output,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7-response-output {
  margin: 1.25rem 0 0 !important;
  padding: 14px 18px !important;
  border: none !important;
  border-radius: var(--radius-sm) !important;
  background: var(--color-cream) !important;
  color: var(--color-dark) !important;
  font-family: var(--font-primary);
  font-size: 14px;
  line-height: 1.45;
}

body.pharmacymentor-child.page-template-contact .wpcf7 form.invalid .wpcf7-response-output,
body.pharmacymentor-child.page-template-contact .wpcf7-response-output.wpcf7-validation-errors,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 form.invalid .wpcf7-response-output,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7-response-output.wpcf7-validation-errors {
  background: #fdf2f2 !important;
  color: #8a1f1f !important;
}

body.pharmacymentor-child.page-template-contact .wpcf7 form.sent .wpcf7-response-output,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 form.sent .wpcf7-response-output {
  background: #f1faf4 !important;
  color: #1a5c32 !important;
}

/* CF7 columns if using .half-col / flex rows */
body.pharmacymentor-child.page-template-contact .contact-form form .half-col,
body.pharmacymentor-child.page-template-page-templatescontact-php .contact-form form .half-col {
  margin-bottom: 0;
}

body.pharmacymentor-child.page-template-contact .wpcf7 .row,
body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 .row {
  row-gap: 0;
}

/* ---------- Map ---------- */
body.pharmacymentor-child.page-template-contact .contact-pg-section.map-area,
body.pharmacymentor-child.page-template-page-templatescontact-php .contact-pg-section.map-area {
  padding: 0;
  margin: 0;
  background: var(--color-white);
}

body.pharmacymentor-child.page-template-contact .map-area iframe,
body.pharmacymentor-child.page-template-page-templatescontact-php .map-area iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
  border-radius: 0;
  filter: grayscale(0.15);
}

@media (max-width: 767px) {
  body.pharmacymentor-child.page-template-contact .page-title,
  body.pharmacymentor-child.page-template-page-templatescontact-php .page-title {
    min-height: 220px;
    padding: 100px 0 48px;
  }

  body.pharmacymentor-child.page-template-contact .quick-contact,
  body.pharmacymentor-child.page-template-page-templatescontact-php .quick-contact {
    margin-top: 1rem;
  }

  body.pharmacymentor-child.page-template-contact .wpcf7 input[type="submit"],
  body.pharmacymentor-child.page-template-page-templatescontact-php .wpcf7 input[type="submit"] {
    width: 100%;
  }

  body.pharmacymentor-child.page-template-contact .map-area iframe,
  body.pharmacymentor-child.page-template-page-templatescontact-php .map-area iframe {
    min-height: 280px;
  }
}
