.contact-page {
  background: #f5f5f5;
  padding: 2rem 1rem 4rem;
}

.contact-page__wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2rem;
  align-items: start;
}

.contact-page__form,
.contact-page__locations {
  background: #fff;
  padding: 2rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.contact-page__locations h2 {
  margin: 0 0 0.5rem;
  font-weight: 500;
}

.contact-page__locations p {
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .contact-page__wrap {
    grid-template-columns: 1fr;
  }
}
/* --- Webform reset for Contact Us page --- */
.contact-page__form form {
  width: 100%;
}

.contact-page__form .webform-submission-form {
  display: block;
}

/* Prevent collapsed / clipped form layouts */
.contact-page__form,
.contact-page__form * {
  box-sizing: border-box;
}

.contact-page__form {
  overflow: visible;
  min-height: 200px;
}

/* Ensure each field stacks nicely */
.contact-page__form .form-item,
.contact-page__form .form-actions {
  display: block;
  width: 100%;
  float: none;
  clear: both;
  margin: 0 0 1rem;
}

/* Make inputs/textarea full width */
.contact-page__form input[type="text"],
.contact-page__form input[type="email"],
.contact-page__form textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0,0,0,0.15);
  background: #fff;
  font-size: 16px;
}

/* Match the “paper” look */
.contact-page__form textarea {
  min-height: 220px;
  resize: vertical;
}

/* Submit button */
.contact-page__form input[type="submit"],
.contact-page__form button[type="submit"] {
  padding: 0.85rem 1.25rem;
  background: #1f5f86;
  color: #fff;
  border: 0;
  border-radius: 2px;
  font-weight: 700;
  cursor: pointer;
}
/* --- Right column (locations) typography to match legacy --- */
.contact-page__locations {
  color: #333;
}

/* City headings */
.contact-page__locations h2 {
  margin: 0 0 0.5rem;
  font-size: 40px;          /* big like WP */
  font-weight: 600;         /* not ultra-bold */
  line-height: 1.05;
  color: #2d2d2d;
  letter-spacing: -0.01em;
}

/* Address blocks */
.contact-page__locations p {
  margin: 0 0 2.25rem;
  font-size: 15px;
  line-height: 1.7;
  color: #4a4a4a;            /* softer than black */
  font-weight: 400;
}

/* Make each line feel like the WP spacing */
.contact-page__locations p br {
  content: "";
}

/* Phone number (last line in each address block) */
.contact-page__locations p strong {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 16px;
  font-weight: 700;
  color: #2d2d2d;
}
/* ===== Match legacy Contact Us (map bg + compact right grid) ===== */

/* Section background (world map) */
.contact-page {
  background: #ffffff;
  padding: 3rem 1rem 4rem;
  background-image: url("/themes/custom/optimo_drupal/images/world-map-dots.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 900px auto;
}

/* Overall two-column layout centered, no big cards */
.contact-page__wrap {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Remove "paper card" styling if present */
.contact-page__form,
.contact-page__locations {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* Form look (flat, centered like legacy) */
.contact-page__form .webform-submission-form {
  max-width: 360px;
}

.contact-page__form label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #666;
  font-weight: 600;
}

.contact-page__form input[type="email"],
.contact-page__form textarea {
  border: 1px solid rgba(0,0,0,0.12);
  box-shadow: 0 4px 14px rgba(0,0,0,0.10);
  border-radius: 2px;
}

/* Make submit button wide like legacy */
.contact-page__form .form-actions input[type="submit"],
.contact-page__form .form-actions button[type="submit"] {
  width: 100%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  padding: 0.95rem 1rem;
}

/* Right-side: 2x2 grid of small blocks */
.contact-locations-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 3rem;
  margin-top: 2.2rem;
}

/* Small headings like legacy */
.contact-loc__title {
  margin: 0 0 0.4rem;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #444;
  text-transform: none;
}

/* Address lines */
.contact-loc__lines {
  font-size: 11px;
  line-height: 1.7;
  color: #666;
  font-weight: 400;
}

.contact-loc__phone {
  display: inline-block;
  margin-top: 0.25rem;
  font-weight: 700;
  color: #444;
}

/* Page title spacing if you have one */
.contact-page__title {
  text-align: center;
  font-weight: 300;
  margin: 0 0 1.5rem;
}

/* Mobile */
@media (max-width: 900px) {
  .contact-page__wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-locations-grid {
    grid-template-columns: 1fr;
    margin-top: 1rem;
  }

  .contact-page__form .webform-submission-form {
    max-width: 100%;
  }
}
