/* =====================================================
   contact.css — scoped to the contact page only
   ===================================================== */

.banner {
  display: none;
}

/* ── Fade-in ── */
.fadeIn {
  opacity: 0;
  animation: fadeInAnim 0.8s ease forwards;
}

@keyframes fadeInAnim { to { opacity: 1; } }

/* ── Page typography ── */
.fadeIn h1 {
  font-size: var(--section-header-font);
  font-weight: 700;
  margin: 0 0 20px;
  color: var(--dark-gray);
  line-height: 1.3;
}

.fadeIn h2 {
  font-size: var(--section-header-font);
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--dark-gray, #1c1e21);
}

.fadeIn h3 {
  font-size: var(--p-font);
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--dark-gray, #1c1e21);
}

.fadeIn p {
  font-size: var(--tag-font);
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--black, #65676b);
}

.fadeIn a {
  color: var(--primary-color, #0066CC);
  text-decoration: none;
  transition: var(--transition);
  font-size: var(--tag-font);
}

.fadeIn a:hover { color: var(--primary-dark, #0055b3); }

/* ── Visibility toggles ── */
.cardHeader.mobile-only  { display: none; }
.contactCardsColumn.mobile-only { display: none; }
.contactCardsColumn.pc-only    { display: flex;  MIN-WIDTH: 380px; justify-content: center; justify-items: center; flex-direction: row;}
.formSectionHeader.pc-only     { display: block; }
.formSectionHeader.mobile-only { display: none;  }

/* ── Section wrapper (matches qualifications bg) ── */
.contact-page-section {
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 48px calc(50vw - 50%);
}

/* ── Two-column layout ── */
.contactLayout {
  display: grid;
  grid-template-columns: 1fr 2.2fr;
  gap: 20px;
  align-items: start;
  max-width: 900px;
}

/* ── Left column ── */
.contactCardsColumn {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Clinic cards (match qs-item style) ── */
.contactCard {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 16px 18px;
  transition: box-shadow 0.15s ease;
}

.contactCard:hover {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.cardHeader {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.cardIcon {
  width: 32px;
  height: 32px;
  background: var(--primary-light, #e6f0ff);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color, #0066CC);
  font-size: var(--p-font);
  flex-shrink: 0;
}


.contactCard p {
  font-size: var(--p-font);
  margin-bottom: 6px;
  color: var(--black, #65676b);
  line-height: 1.5;
  display: flex;
  gap: 5px;
  font-weight: 500;
}

.contactCard a,
.address {
  color: var(--primary-color, #0066CC);
  font-size: var(--p-font);
  
}

.address{
  color: var(--black);
}

/* ── Map ── */
.mapContainer {
  border-radius: 8px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.mapContainer iframe {
  width: 100%;
  height: 180px;
  border: none;
  display: block;
}

/* ── Message form section (right column) ── */
.messageFormSection {
  background: #ffffff;
  border-radius: 0 12px 12px 0 ;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 24px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 800px;
  min-height: 100%;
}

/* Left accent stripe */
.messageFormSection::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--primary-color, #0066CC);
  border-radius: 3px 0 0 3px;
}

/* ── Form header ── */

.cardHeader h3 {
  font-size: var(--section-header-font);
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--dark-gray, #1c1e21);
}


.formSectionHeader.mobile-only h2 {
    padding-left: 8px;
}

.formSectionHeader p {
  font-size: var(--p-font);
  color: var(--black, #65676b);
  margin: 0;
}

/* ── Form layout ── */
.messageForm {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.formRow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.formBlock {
  display: flex;
  flex-direction: column;
}

/* ── Field group ── */
.formGroup {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.formGroup label {
  font-size: var(--p-font);
  font-weight: 500;
  color: var(--black, #65676b);
}

.formGroup input,
.formGroup textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid rgba(0, 0, 0, 0.11);
  border-radius: 8px;
  font-family: inherit;
  font-size: inherit;
  color: var(--dark-gray, #1c1e21);
  background: rgb(240 242 245 / 36%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
  resize: none;
  line-height: 1.5;
  margin: 0 0 10px;
}

.formGroup textarea {
  min-height: 110px;
}

.formGroup input::placeholder,
.formGroup textarea::placeholder { color: #b0b3b8; font-size: var(--tag-font); }

.formGroup input:focus,
.formGroup textarea:focus {
  outline: none;
  border-color: var(--primary-color, #0066CC);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.08);
}

.formGroup input.invalid,
.formGroup textarea.invalid {
  border-color: #d93025;
  background: #fff8f8;
  box-shadow: 0 0 0 3px rgba(217, 48, 37, 0.06);
}

.fieldError {
  font-size: var(--error-font);
  color: #d93025;
  min-height: 14px;
  display: block;
  margin-top: 4px;
  font-weight: 500;
  margin-left: 3px;
  margin-top: -8px;
}

/* ── Submit row ── */
.formSubmitRow {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.btn-send {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--primary-color, #0066CC);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: var(--p-font);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-send:hover:not(:disabled) {
  background: var(--primary-dark, #0055b3);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 102, 204, 0.25);
}

.btn-send:disabled {
  background: #a8c8ef;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Spinner */
.btn-send .spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: btnSpin 0.65s linear infinite;
  flex-shrink: 0;
}

.btn-send.loading .spinner  { display: inline-block; }
.btn-send.loading .btn-icon { display: none; }
.btn-send.loading .btn-label { opacity: 0.8; }

@keyframes btnSpin { to { transform: rotate(360deg); } }

/* ── Toast ── */
.formToast {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-radius: 8px;
  font-size: var(--tag-font);
  font-weight: 500;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.4s ease, opacity 0.35s ease, padding 0.35s ease, margin 0.35s ease;
  margin-bottom: 0;
}

.formToast.show {
  max-height: 50px;
  opacity: 1;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.formToast.success { background: #edf9f2; color: #1e7e46; border: 1px solid #b2e0c6; }
.formToast.error   { background: #fdf2f2; color: #c0392b; border: 1px solid #f0bebe; }
.formToast i { font-size: var(--p-font); flex-shrink: 0; }

/* ── hCaptcha ── */
#captchaError {
  margin-top: 6px;
  display: block;
  font-size: var(--error-font);
  color: #d93025;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .contactCardsColumn.mobile-only { display: flex; margin-top: 20px; flex-direction: column; gap: 40px;}
/*   .contactCardsColumn.mobile-only .contactCard { border-radius: 12px;}
 */

  .contactCardsColumn.pc-only    { display: none; min-width: 0;}

  .formSectionHeader.pc-only     { display: none; }
  .formSectionHeader.mobile-only { display: block; margin-bottom: 16px; }
.cardHeader.mobile-only  { display: flex; align-items: baseline; }

  .contactLayout {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .mapContainer iframe { height: 200px; }
}

@media (max-width: 768px) {

  .messageFormSection::before{
    display: none;
  }
  .contact-page-section {
    padding: 32px 12px;
  }


  .messageFormSection { padding: 20px 16px; }

  .formRow {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .formSubmitRow {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-send {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .contactCard    { padding: 14px; }
  .mapContainer iframe { height: 170px; }
  .messageFormSection { padding: 16px 12px;   min-width: 0; min-height: 0; }
}