/* === Contact Page === */

.contact-section {
  background: #f0f4f9;
  padding-bottom: 3rem;
}

.contact-head {
  max-width: 640px;
  margin: 0 0 2rem;
}

.contact-title {
  font-size: 2.25rem;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  text-align: left;
  color: #1a2238;
}

.contact-intro {
  margin: 0;
  font-size: 1.075rem;
  line-height: 1.6;
  color: #4a5163;
}

.contact-flex {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.contact-form-wrapper {
  flex: 1 1 58%;
  min-width: 0;
}

.contact-info-wrapper {
  flex: 1 1 42%;
  min-width: 0;
}

/* Shared card shell */
.contact-card {
  background: #fff;
  border: 1px solid #e4e8ef;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 18px rgba(26, 34, 56, 0.07);
  margin-bottom: 1.25rem;
}

.contact-card:last-child {
  margin-bottom: 0;
}

.contact-form-card {
  padding: 2rem;
}

.contact-card-title {
  font-size: 1.15rem;
  margin: 0 0 1.25rem;
  color: #1a2238;
}

.form-heading {
  font-size: 1.5rem;
  margin: 0 0 0.35rem;
  color: #1a2238;
}

.form-subheading {
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
  color: #6b7280;
}

/* Form */
.custom-contact-form {
  max-width: 100%;
  box-sizing: border-box;
}

.custom-contact-form .form-group {
  margin-bottom: 1.15rem;
}

.custom-contact-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a2238;
  margin-bottom: 0.4rem;
}

.custom-contact-form label .req {
  color: #c0392b;
  margin-left: 0.15rem;
}

.custom-contact-form input,
.custom-contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  font-size: 1rem;
  font-family: inherit;
  color: #1a2238;
  background: #fbfcfd;
  border: 1px solid #d5dae3;
  border-radius: 8px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.custom-contact-form input::placeholder,
.custom-contact-form textarea::placeholder {
  color: #9aa1b1;
}

.custom-contact-form input:focus,
.custom-contact-form textarea:focus {
  outline: none;
  background: #fff;
  border-color: #1a2238;
  box-shadow: 0 0 0 3px rgba(26, 34, 56, 0.12);
}

.custom-contact-form textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.5;
}

.custom-contact-form .form-row {
  display: flex;
  column-gap: 1rem;
}

.custom-contact-form .form-row .form-group {
  flex: 1 1 50%;
  min-width: 0;
}

.custom-contact-form .btn {
  display: inline-block;
  width: 100%;
  background: #1a2238;
  color: #fff;
  padding: 0.85rem 1.5rem;
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.1s ease;
}

.custom-contact-form .btn:hover {
  background: #2a3352;
}

.custom-contact-form .btn:active {
  transform: translateY(1px);
}

.custom-contact-form .btn:focus-visible {
  outline: 3px solid #4da3e1;
  outline-offset: 2px;
}

.form-privacy {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: #6b7280;
}

.form-privacy i {
  font-size: 0.8rem;
  color: #9aa1b1;
}

/* Contact details list */
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid #eef1f5;
}

.contact-card .contact-info-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.contact-card .contact-card-title + .contact-info-item {
  padding-top: 0;
}

.contact-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #eef2f8;
  color: #1a2238;
  font-size: 1rem;
}

.contact-info-body {
  display: block;
  min-width: 0;
}

.contact-info-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a90a0;
  margin-bottom: 0.15rem;
}

.contact-info-value {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  color: #1a2238;
}

a.contact-info-link {
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease;
  border-radius: 8px;
}

a.contact-info-link:hover .contact-info-value {
  color: #4da3e1;
}

a.contact-info-link:hover .contact-icon {
  background: #1a2238;
  color: #fff;
}

a.contact-info-link:focus-visible {
  outline: 3px solid #4da3e1;
  outline-offset: 2px;
}

/* What to expect */
.contact-points {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #3c4353;
}

.contact-points li:last-child {
  margin-bottom: 0;
}

.contact-points i {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: #1a2238;
  font-size: 1rem;
}

/* Map */
.map-container {
  margin-top: 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e4e8ef;
  box-shadow: 0 4px 18px rgba(26, 34, 56, 0.07);
  line-height: 0;
}

/* Notices sit inside the form card */
.contact-form-card .leads-form-success,
.contact-form-card .leads-form-errors {
  margin-bottom: 1.25rem;
}

/* Responsive */
@media (max-width: 900px) {
  .contact-flex {
    flex-direction: column;
    gap: 1.25rem;
  }

  .contact-form-wrapper,
  .contact-info-wrapper {
    width: 100%;
    flex: 1 1 auto;
  }
}

@media (max-width: 600px) {
  .contact-title {
    font-size: 1.75rem;
  }

  .contact-intro {
    font-size: 1rem;
  }

  .contact-card,
  .contact-form-card {
    padding: 1.25rem;
  }

  .custom-contact-form .form-row {
    flex-direction: column;
    column-gap: 0;
  }

  .contact-icon {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
    font-size: 0.9rem;
  }
}

