/* Contact page styles only. All selectors are scoped to #contact-page or the existing footer/header are untouched. */
#contact-page {
  --contact-forest: #304432;
  --contact-forest-deep: #253a2b;
  --contact-sage: #e2e9df;
  --contact-cream: #f7f4ec;
  --contact-gold: #c7a45b;
  --contact-ink: #26372b;
  --contact-muted: #667064;
  color: var(--contact-ink);
  font-family: "DM Sans", sans-serif;
  overflow: hidden;
}
#contact-page *,
#contact-page *::before,
#contact-page *::after {
  box-sizing: border-box;
}
#contact-page a {
  text-decoration: none;
}
#contact-page .contact-hero {
  min-height: 250px;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  background: #29496d
    url("https://drsagari.com/wp-content/uploads/2023/06/contact-banner.jpg")
    center 43% / cover no-repeat;
  background-image: linear-gradient(
      90deg,
      rgba(35, 65, 99, 0.97),
      rgba(35, 65, 99, 0.83)
    ),
    url("https://drsagari.com/wp-content/uploads/2023/06/contact-banner.jpg");
  color: #fff;
}
#contact-page .contact-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* background: linear-gradient(
    100deg,
    rgba(36, 66, 100, 0.94),
    rgba(36, 66, 100, 0.76)
  ); */
  background: #3e4f3d;
}
#contact-page .contact-hero__inner {
  padding-top: 55px;
  padding-bottom: 55px;
}
#contact-page .contact-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--contact-gold);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
#contact-page .contact-hero h1 {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: clamp(2.35rem, 5vw, 3.5rem);
  line-height: 1.08;
  margin: 0 0 14px;
  font-weight: 600;
}
#contact-page .contact-hero p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.7;
  margin: 0;
}
#contact-page .contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.78);
}
#contact-page .contact-breadcrumb a {
  color: #fff;
}
#contact-page .contact-main-section {
  padding: 78px 0 84px;
  background: #fffefa;
}
#contact-page .contact-intro {
  max-width: 680px;
  margin: 0 auto 36px;
  text-align: center;
}
#contact-page .contact-intro h2,
#contact-page .contact-location-copy h2 {
  margin: 0 0 12px;
  color: var(--contact-forest);
  font-family: "Playfair Display", serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.45rem);
  line-height: 1.2;
}
#contact-page .contact-intro p,
#contact-page .contact-location-copy p {
  margin: 0;
  color: var(--contact-muted);
  line-height: 1.8;
  font-size: 0.98rem;
}
#contact-page .contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: stretch;
}
#contact-page .contact-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
#contact-page .contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 17px;
  min-width: 0;
  padding: 27px 24px;
  border: 1px solid #e7e8df;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(37, 58, 43, 0.045);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
#contact-page .contact-info-card:hover {
  transform: translateY(-3px);
  border-color: #d5dfd0;
  box-shadow: 0 14px 30px rgba(37, 58, 43, 0.08);
}
#contact-page .contact-info-card--address {
  grid-column: 1/-1;
  background: var(--contact-cream);
  border-color: #eee7d7;
}
#contact-page .contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  background: var(--contact-sage);
  color: var(--contact-forest);
  font-size: 1.15rem;
}
#contact-page .contact-card-kicker {
  display: block;
  color: #9b7a37;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  margin: 1px 0 7px;
}
#contact-page .contact-info-card h3 {
  margin: 0 0 9px;
  color: var(--contact-forest);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}
#contact-page .contact-info-card p,
#contact-page .contact-info-card address {
  margin: 0 0 8px;
  color: #5e685e;
  font-size: 0.9rem;
  line-height: 1.75;
  font-style: normal;
  overflow-wrap: anywhere;
}
#contact-page .contact-info-card .contact-hours-note {
  margin-top: -5px;
  font-size: 0.82rem;
}
#contact-page .contact-value-link {
  display: inline-block;
  color: var(--contact-forest);
  font-weight: 700;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}
#contact-page .contact-value-link:hover,
#contact-page .contact-text-link:hover {
  color: #9b7a37;
}
#contact-page .contact-text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 5px;
  color: var(--contact-forest);
  font-size: 0.86rem;
  font-weight: 700;
}
#contact-page .contact-closed {
  margin-top: 7px !important;
  color: #8b5b4b !important;
  font-size: 0.83rem !important;
}
#contact-page .contact-closed i {
  margin-right: 5px;
}
#contact-page .contact-appointment-card {
  position: relative;
  overflow: hidden;
  padding: 35px 30px;
  border-radius: 18px;
  color: #fff;
  background: var(--contact-forest);
  box-shadow: 0 16px 38px rgba(37, 58, 43, 0.14);
}
#contact-page .contact-appointment-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -65px;
  width: 190px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 25px rgba(255, 255, 255, 0.035),
    0 0 0 52px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}
#contact-page .contact-appointment-card__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 24px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #e7ce91;
  font-size: 1.35rem;
}
#contact-page .contact-appointment-card .contact-card-kicker {
  color: #e7ce91;
}
#contact-page .contact-appointment-card h2 {
  position: relative;
  z-index: 1;
  margin: 0 0 13px;
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  line-height: 1.25;
  font-weight: 600;
}
#contact-page .contact-appointment-card p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.92rem;
  line-height: 1.8;
  margin: 0 0 23px;
}
#contact-page .contact-primary-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 17px;
  border-radius: 8px;
  color: #26372b;
  background: #e2c78b;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}
#contact-page .contact-primary-btn:hover {
  color: #26372b;
  background: #efdcae;
  transform: translateY(-1px);
}
#contact-page .contact-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
#contact-page .contact-secondary-link:hover {
  color: #e2c78b;
}
#contact-page .contact-appointment-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 27px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.17);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.79rem;
  line-height: 1.6;
}
#contact-page .contact-appointment-note i {
  color: #e2c78b;
  margin-top: 3px;
}
#contact-page .contact-location-section {
  padding: 70px 0;
  background: var(--contact-cream);
}
#contact-page .contact-location-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 50px;
}
#contact-page .contact-location-copy {
  max-width: 500px;
}
#contact-page .contact-location-copy p {
  margin-bottom: 24px;
}
#contact-page .contact-location-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 7px;
  background: var(--contact-forest);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.2s ease;
}
#contact-page .contact-location-btn:hover {
  background: var(--contact-forest-deep);
  color: #fff;
}
#contact-page .contact-location-visual {
  position: relative;
  min-height: 285px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 20px;
  background: var(--contact-sage);
}
#contact-page .contact-location-circle {
  position: absolute;
  border: 1px solid rgba(48, 68, 50, 0.12);
  border-radius: 50%;
}
#contact-page .contact-location-circle--one {
  width: 300px;
  height: 300px;
}
#contact-page .contact-location-circle--two {
  width: 220px;
  height: 220px;
}
#contact-page .contact-map-card {
  position: relative;
  z-index: 1;
  width: min(340px, calc(100% - 40px));
  padding: 25px;
  border: 1px solid rgba(48, 68, 50, 0.08);
  border-radius: 14px;
  background: #fffefa;
  box-shadow: 0 15px 38px rgba(48, 68, 50, 0.12);
}
#contact-page .contact-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 15px;
  border-radius: 13px;
  background: #e7eee3;
  color: var(--contact-forest);
  font-size: 1.1rem;
}
#contact-page .contact-map-card span {
  display: block;
  color: #9b7a37;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
#contact-page .contact-map-card strong {
  display: block;
  color: var(--contact-forest);
  font-size: 1.12rem;
}
#contact-page .contact-map-card small {
  display: block;
  margin-top: 5px;
  color: var(--contact-muted);
  font-size: 0.85rem;
}
#contact-page .contact-map-card a {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 15px;
  color: var(--contact-forest);
  font-size: 0.82rem;
  font-weight: 700;
}
#contact-page .contact-map-decoration {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #fffefa;
  color: #71856d;
  box-shadow: 0 8px 20px rgba(48, 68, 50, 0.08);
}
#contact-page .contact-map-decoration--a {
  top: 26px;
  right: 36px;
}
#contact-page .contact-map-decoration--b {
  bottom: 25px;
  left: 36px;
}
@media (max-width: 991.98px) {
  #contact-page .contact-layout {
    grid-template-columns: 1fr;
  }
  #contact-page .contact-appointment-card {
    display: grid;
    grid-template-columns: 1fr;
  }
  #contact-page .contact-location-inner {
    gap: 30px;
  }
}
@media (max-width: 767.98px) {
  #contact-page .contact-hero {
    min-height: 220px;
  }
  #contact-page .contact-hero__inner {
    padding-top: 42px;
    padding-bottom: 42px;
  }
  #contact-page .contact-hero p {
    font-size: 0.92rem;
  }
  #contact-page .contact-main-section {
    padding: 52px 0 56px;
  }
  #contact-page .contact-intro {
    margin-bottom: 27px;
    text-align: left;
  }
  #contact-page .contact-details-grid {
    grid-template-columns: 1fr;
  }
  #contact-page .contact-info-card--address {
    grid-column: auto;
  }
  #contact-page .contact-info-card {
    padding: 22px 19px;
  }
  #contact-page .contact-appointment-card {
    padding: 29px 23px;
  }
  #contact-page .contact-location-section {
    padding: 52px 0;
  }
  #contact-page .contact-location-inner {
    grid-template-columns: 1fr;
  }
  #contact-page .contact-location-visual {
    min-height: 260px;
  }
}
@media (max-width: 420px) {
  #contact-page .contact-info-card {
    gap: 13px;
  }
  #contact-page .contact-icon {
    flex-basis: 42px;
    width: 42px;
    height: 42px;
  }
  #contact-page .contact-email {
    font-size: 0.86rem;
  }
}
