:root {
  --blue: #0089D1;
  --blue-dark: #006BA3;
  --blue-deeper: #004F7A;
  --blue-light: rgba(0, 137, 209, 0.08);
  --blue-mid: rgba(0, 137, 209, 0.12);
  --blue-glow: rgba(0, 137, 209, 0.15);
  --navy: #091B2A;
  --navy-light: #0F2940;
  --navy-mid: #153754;
  --slate: #1C3549;
  --silver: #E8ECF0;
  --silver-dark: #C8CED6;
  --warm-white: #F8F9FB;
  --white: #F8F9FB;
  --gray-50: #F4F5F7;
  --gray-100: #ECEEF1;
  --gray-200: #DDE1E6;
  --gray-300: #C1C7CF;
  --gray-400: #858D98;
  --gray-600: #4A5264;
  --gray-800: #1D2433;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 8px;
  --radius-lg: 12px;
  --danger: #E24B4A;
  --danger-light: #FDE8E8;
  --teal: var(--blue);
  --teal-dark: var(--blue-dark);
  --teal-light: var(--blue-light);
  --teal-mid: var(--blue-mid);
  --gold: #E8963A;
  --gold-light: rgba(232, 150, 58, 0.08);
  --brand-accent: var(--blue);
  --btn-cta-color: #fff;
  --btn-cta-shadow: 0 4px 24px rgba(0, 137, 209, .35);
}

/* ─── CONTACT INFO BAR ─── */

.contact-bar {
  padding: 3rem 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.contact-bar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-bar-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: border-color .3s, transform .2s;
}

.contact-bar-item:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.contact-bar-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-bar-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.5;
  fill: none;
}

.contact-bar-item h3 {
  font-size: .88rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .2rem;
}

.contact-bar-item p {
  font-size: .82rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.contact-bar-item a {
  color: var(--teal-dark);
  text-decoration: none;
  font-weight: 500;
  transition: color .3s;
}

/* ─── FORMS SECTION ─── */

.forms-section {
  padding: 5rem 0;
  background: var(--gray-50);
}

.forms-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

/* ─── TAB SYSTEM ─── */

.form-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 2rem;
  background: var(--gray-200);
  border-radius: 6px;
  padding: 3px;
}

.form-tab {
  flex: 1;
  padding: .65rem 1rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s;
  background: transparent;
  color: var(--gray-400);
  text-align: center;
}

.form-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

/* ─── FORM STYLES ─── */

.form-panel {
  display: none;
}

.form-panel.active {
  display: block;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.form-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: .35rem;
}

.form-card-desc {
  font-size: .84rem;
  color: var(--gray-400);
  margin-bottom: 1.75rem;
  line-height: 1.5;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-row.full {
  grid-template-columns: 1fr;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.form-group label {
  font-size: .78rem;
  font-weight: 500;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: .25rem;
}

.form-group label .req {
  color: var(--danger);
  font-size: .7rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: .85rem;
  padding: .65rem .9rem;
  border: 1px solid var(--gray-200);
  border-radius: 6px;
  background: var(--white);
  color: var(--gray-800);
  transition: border-color .3s, box-shadow .3s;
  outline: none;
  width: 100%;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 137, 209, .1);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%238B95A1' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
  padding-right: 2.5rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin: 1.25rem 0;
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 1px;
  accent-color: var(--blue);
  cursor: pointer;
}

.form-checkbox label {
  font-size: .78rem;
  color: var(--gray-400);
  line-height: 1.5;
  cursor: pointer;
}

.form-checkbox a {
  color: var(--blue-dark);
  text-decoration: none;
}

.btn-submit {
  width: 100%;
  padding: .75rem 1.5rem;
  font-family: var(--font-body);
  font-size: .88rem;
  font-weight: 500;
  color: #fff;
  background: var(--blue);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  letter-spacing: .3px;
  margin-top: .5rem;
}

.btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 24px rgba(0, 137, 209, .35);
}

.btn-submit:active {
  transform: translateY(0);
}

.form-note {
  font-size: .72rem;
  color: var(--gray-400);
  margin-top: 1rem;
  text-align: center;
  line-height: 1.5;
}

/* ─── WPForms : espacement vertical entre champs ─── */

.form-card div.wpforms-container .wpforms-field {
  margin: 0 0 1rem 0 !important;
  padding: 0 !important;
}

.form-card div.wpforms-container .wpforms-field-container > .wpforms-field:last-of-type {
  margin-bottom: 0 !important;
}

.form-card div.wpforms-container .wpforms-submit-container {
  margin-top: 1.5rem !important;
  padding: 0 !important;
}

.form-card div.wpforms-container {
  --wpforms-field-size-input-spacing: 16px;
}

/* ─── SIDEBAR ─── */

.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.sidebar-card h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.sidebar-card h3 svg {
  width: 18px;
  height: 18px;
  stroke: var(--blue);
  fill: none;
  stroke-width: 1.5;
}

.sidebar-card p {
  font-size: .82rem;
  color: var(--gray-400);
  line-height: 1.6;
}

.sidebar-card-highlight {
  background: var(--blue-light);
  border-color: rgba(0, 137, 209, .15);
}

.sidebar-card-highlight h3 {
  color: var(--blue-dark);
}

.response-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .75rem;
  background: rgba(0, 137, 209, .08);
  color: var(--blue-dark);
  font-size: .72rem;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: .75rem;
}

.response-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: .3; }
}

.sidebar-info-list {
  list-style: none;
  margin-top: .75rem;
}

.sidebar-info-list li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .5rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-size: .82rem;
  color: var(--gray-600);
}

.sidebar-info-list li:last-child {
  border-bottom: none;
}

.sidebar-info-list li svg {
  width: 16px;
  height: 16px;
  min-width: 16px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
  margin-top: 2px;
}

/* ─── MAP ─── */

.map-section {
  padding: 0;
  background: var(--white);
  position: relative;
}

.map-container {
  width: 100%;
  height: 450px;
  background: var(--gray-100);
}

.leaflet-tiles {
  filter: brightness(1.1);
}

.map-overlay {
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem 1.25rem;
  width: 380px;
  max-width: calc(100% - 4rem);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
  z-index: 1001;
  pointer-events: auto;
}

.map-overlay h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: .35rem;
}

.map-overlay p {
  font-size: .82rem;
  color: var(--gray-400);
  line-height: 1.5;
}

.map-overlay > .map-tab-panel.active > a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  margin-top: .75rem;
  font-size: .78rem;
  font-weight: 500;
  color: var(--teal-dark);
  text-decoration: none;
  transition: gap .3s;
}

.map-overlay > .map-tab-panel.active > a:hover {
  gap: .6rem;
}

.map-overlay > .map-tab-panel.active > a svg {
  width: 12px;
  height: 12px;
  stroke: var(--teal-dark);
  fill: none;
  stroke-width: 2;
}

/* ─── MAP TABS ─── */

.map-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 1rem;
  background: var(--gray-100);
  border-radius: 6px;
  padding: 3px;
}

.map-tab {
  flex: 1;
  padding: .55rem .75rem;
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all .3s;
  background: transparent;
  color: var(--gray-400);
}

.map-tab:hover {
  color: var(--navy);
}

.map-tab.active {
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .06);
}

.map-tab-panel {
  display: none;
}

.map-tab-panel.active {
  display: block;
}

[data-map-panel="nearby"].active {
  max-height: 340px;
  overflow-y: auto;
  padding-right: .25rem;
}

.nearby-group + .nearby-group {
  margin-top: 1rem;
}

.nearby-group h4 {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--blue-dark);
  margin-bottom: .5rem;
  display: flex;
  align-items: baseline;
  gap: .4rem;
}

.nearby-group h4 span {
  font-size: .68rem;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: var(--gray-400);
}

.nearby-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nearby-item + .nearby-item {
  margin-top: .35rem;
}

.nearby-item a {
  display: block;
  padding: .55rem .65rem;
  border-radius: 6px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

.nearby-item a:hover {
  background: var(--blue-light);
  border-color: var(--blue-mid);
}

.nearby-item strong {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.nearby-item .nearby-addr {
  display: block;
  font-size: .74rem;
  color: var(--gray-600);
  margin-top: .15rem;
  line-height: 1.35;
}

.nearby-item .nearby-meta {
  display: block;
  font-size: .7rem;
  color: var(--gray-400);
  margin-top: .15rem;
  line-height: 1.3;
}

/* ─── FAQ ─── */

.faq-section {
  padding: 5rem 0;
  background: var(--gray-50);
}

.faq-grid {
  max-width: 760px;
  margin: 2.5rem auto 0;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: .75rem;
  overflow: hidden;
  background: var(--white);
  transition: border-color .3s;
}

.faq-item:hover {
  border-color: var(--teal);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  gap: 1rem;
}

.faq-question h3 {
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.3;
}

.faq-chevron {
  width: 20px;
  height: 20px;
  min-width: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .3s;
}

.faq-chevron svg {
  width: 16px;
  height: 16px;
  stroke: var(--gray-400);
  fill: none;
  stroke-width: 2;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

.faq-answer p {
  font-size: .84rem;
  color: var(--gray-400);
  line-height: 1.7;
}

/* ─── Responsive ─── */

@media (max-width: 900px) {
  .contact-bar-grid {
    grid-template-columns: 1fr;
  }

  .forms-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .map-section {
    display: flex;
    flex-direction: column;
  }

  .map-overlay {
    position: static;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
  }

  [data-map-panel="nearby"].active {
    max-height: none;
  }
}
