/* ============================================
   CONTACT PAGE — Clean & professional
   Pairs with subpage-hero pattern from About/Services.
   ============================================ */

.contact-section {
  padding: 5rem 0 6rem;
  background: #fff;
  position: relative;
}

/* Wrap — sidebar + form */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
  margin: 0 auto;
}

/* ============================================
   LEFT: Aside details
   ============================================ */
.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: sticky;
  top: 7rem;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #E5EDF5;
}
.contact-block:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-block-label {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1BAFC4;
}

.contact-block-value {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0B1E33;
  text-decoration: none;
  letter-spacing: -0.015em;
  line-height: 1.4;
  transition: color 0.15s ease;
}
.contact-block-value:hover { color: #0A5BB0; }

.contact-block-static {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #0B1E33;
  letter-spacing: -0.015em;
  line-height: 1.5;
}

.contact-block-meta {
  font-size: 0.8125rem;
  color: #5C6F85;
  line-height: 1.5;
}

/* Aside footer — patient portal link */
.contact-aside-foot {
  margin-top: 0.5rem;
  padding: 1.25rem 1.25rem;
  background: linear-gradient(135deg, rgba(10, 91, 176, 0.04) 0%, rgba(27, 175, 196, 0.06) 100%);
  border: 1px solid rgba(10, 91, 176, 0.12);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.contact-aside-foot-label {
  font-size: 0.75rem;
  color: #5C6F85;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-aside-foot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #0A5BB0;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
  letter-spacing: -0.01em;
}
.contact-aside-foot-link:hover {
  color: #1BAFC4;
  gap: 10px;
}

/* ============================================
   RIGHT: Form card
   ============================================ */
.contact-form-card {
  background: #fff;
  border: 1px solid #E5EDF5;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow:
    0 1px 2px rgba(10, 91, 176, 0.04),
    0 12px 32px -12px rgba(10, 91, 176, 0.08);
}

.contact-form-head {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #E5EDF5;
}
.contact-form-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #0B1E33;
  margin: 0 0 0.375rem;
  line-height: 1.2;
}
.contact-form-head p {
  font-size: 0.875rem;
  color: #5C6F85;
  margin: 0;
  line-height: 1.5;
}

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.cf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.cf-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.cf-field label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2D3F54;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cf-optional {
  font-size: 0.6875rem;
  font-weight: 500;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

.cf-field input,
.cf-field select,
.cf-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1.5px solid #E5EDF5;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #0B1E33;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.cf-field input::placeholder,
.cf-field textarea::placeholder {
  color: #94a3b8;
}

.cf-field input:hover,
.cf-field select:hover,
.cf-field textarea:hover {
  border-color: #cbd5e1;
}

.cf-field input:focus,
.cf-field select:focus,
.cf-field textarea:focus {
  outline: none;
  border-color: #1BAFC4;
  box-shadow: 0 0 0 4px rgba(27, 175, 196, 0.12);
}

.cf-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235C6F85' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 0.95rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.cf-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.55;
  font-family: inherit;
}

/* Consent */
.cf-consent {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  background: #F7FAFE;
  border: 1px solid #E5EDF5;
  border-radius: 10px;
  margin-top: 0.25rem;
}
.cf-consent input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 1px;
  accent-color: #0A5BB0;
  cursor: pointer;
  flex-shrink: 0;
}
.cf-consent label {
  font-size: 0.8125rem;
  color: #5C6F85;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
  cursor: pointer;
}
.cf-consent label a {
  color: #0A5BB0;
  text-decoration: none;
  font-weight: 600;
}
.cf-consent label a:hover { text-decoration: underline; }

/* Submit */
.cf-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  align-self: flex-start;
  background: linear-gradient(135deg, #0A5BB0 0%, #1BAFC4 100%);
  color: #fff;
  border: none;
  padding: 0.95rem 1.75rem;
  border-radius: 12px;
  font-size: 0.9375rem;
  font-weight: 700;
  font-family: inherit;
  letter-spacing: 0.005em;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  box-shadow: 0 4px 14px rgba(10, 91, 176, 0.25);
  margin-top: 0.5rem;
}
.cf-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(10, 91, 176, 0.32);
}
.cf-submit:active {
  transform: translateY(0);
}

/* Trust line */
.cf-trust {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #5C6F85;
  margin-top: 0.25rem;
}
.cf-trust svg {
  color: #10b981;
  flex-shrink: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 3rem;
    max-width: 640px;
  }
  .contact-aside {
    position: static;
  }
  .contact-section {
    padding: 4rem 0 5rem;
  }
}

@media (max-width: 640px) {
  .contact-section {
    padding: 3rem 0 4rem;
  }
  .contact-form-card {
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
  }
  .cf-row {
    grid-template-columns: 1fr;
  }
  .cf-submit {
    width: 100%;
  }
  .contact-aside {
    gap: 1.75rem;
  }
}