/* Shared booking option and the telemedicine request form. */
.telemedicine-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 16px;
  border: 1px solid #cbdcf2;
  border-radius: 16px;
  background: #f1f6fc;
  font-family: "Inter Tight", var(--sans);
}
.telemedicine-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex: none;
  border: 1px solid #d8e5f5;
  border-radius: 14px;
  color: #254f87;
  background: #ffffff;
}
.telemedicine-option > .telemedicine-icon { width: 34px; height: 34px; border-radius: 10px; }
.telemedicine-option > .telemedicine-icon svg { width: 20px; height: 20px; }
.telemedicine-option-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.telemedicine-option-heading :is(h2, h3) {
  margin: 0;
  font-size: 18px;
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.telemedicine-tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  color: #35577e;
  background: #e0ebf8;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.5;
}
.telemedicine-option .telemedicine-tag { padding: 2px 7px; font-size: 9px; }
.telemedicine-option-copy p { max-width: 58ch; margin-top: 4px; color: #475569; font-size: 12px; line-height: 1.4; }
.telemedicine-prices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 340px;
  margin-top: 16px;
}
.telemedicine-prices > div { padding: 10px 12px; border: 1px solid #d8e5f5; border-radius: 10px; background: #ffffff; }
.telemedicine-prices dt { color: #475569; font-size: 11px; line-height: 1.4; }
.telemedicine-prices dd { margin-top: 4px; color: #254f87; font-size: 20px; font-weight: 600; letter-spacing: -.025em; line-height: 1.2; }
.telemedicine-intro .telemedicine-prices { max-width: none; margin-top: 24px; }
.telemedicine-option .telemedicine-prices { max-width: 300px; margin-top: 9px; gap: 14px; }
.telemedicine-option .telemedicine-prices > div { display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 0; background: none; }
.telemedicine-option .telemedicine-prices dd { margin-top: auto; padding-top: 2px; font-size: 16px; }
.telemedicine-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #254f87;
  color: #ffffff;
  font: 500 13px/1.4 "Inter Tight", var(--sans);
  text-align: center;
  cursor: pointer;
  transition: background .2s;
}
.telemedicine-button svg { flex: none; }
.telemedicine-option > .telemedicine-button { min-height: 44px; padding: 8px 14px; gap: 8px; font-size: 12px; }
.telemedicine-button:hover { background: #193a68; }
.telemedicine-button:disabled { background: #e2e8f0; color: #475569; cursor: not-allowed; }
.telemedicine-button--secondary { background: #ffffff; color: #334155; border-color: #cbd5e1; }
.telemedicine-button--secondary:hover { background: #f1f5f9; }
.telemedicine-option a:focus-visible,
.telemedicine-page :is(a, button, input, select, [tabindex="-1"]):focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
}
/* The two alternative booking paths share one balanced desktop row. */
.booking-extras {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}
@media (min-width: 641px) {
  .booking-extras > :is(.clinic.sobrecupo, .telemedicine-option) {
    width: 100%;
    min-width: 0;
    min-height: 162px;
    height: 100%;
    margin: 0;
    padding: 18px;
    border-radius: 18px;
    box-shadow: none;
  }
  .booking-modern .booking-extras .clinic.sobrecupo {
    grid-column: auto !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto auto;
    align-items: center;
    gap: 5px 18px;
    border: 1px solid #dedee3;
    background: #f6f6f7;
  }
  .booking-modern .booking-extras .clinic.sobrecupo .sobrecupo-logo {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    margin: 0 0 5px;
  }
  .booking-modern .booking-extras .clinic.sobrecupo .sobrecupo-logo img {
    width: min(136px, 100%);
    height: auto;
  }
  .booking-modern .booking-extras .clinic.sobrecupo .clinic-name {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    font-size: 17px;
    line-height: 1.18;
  }
  .booking-modern .booking-extras .clinic.sobrecupo .clinic-name br {
    display: block;
  }
  .booking-modern .booking-extras .clinic.sobrecupo .clinic-name span {
    display: inline-block;
    margin: 2px 0 0;
    font-size: .94em;
  }
  .booking-modern .booking-extras .clinic.sobrecupo .clinic-addr {
    grid-column: 1;
    grid-row: 3;
    display: block;
    margin: 2px 0 0;
    color: #52525b;
    font-size: 12px;
  }
  .booking-modern .booking-extras .clinic.sobrecupo .clinic-metro {
    display: none;
  }
  .booking-modern .booking-extras .clinic.sobrecupo .clinic-actions {
    grid-column: 2;
    grid-row: 1 / 4;
    align-self: center;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .booking-modern .booking-extras .clinic.sobrecupo .sobrecupo-btn {
    width: 142px;
    min-width: 142px;
    min-height: 44px;
    justify-content: center;
  }
  .booking-extras > .telemedicine-option {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 15px;
    border-color: #cbdcf2;
    background: #f1f6fc;
  }
  .booking-extras > .telemedicine-option > .telemedicine-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .booking-extras > .telemedicine-option .telemedicine-prices {
    max-width: 320px;
  }
  .booking-extras > .telemedicine-option > .telemedicine-button {
    width: 118px;
    min-width: 118px;
    min-height: 44px;
  }
}
.telemedicine-main { max-width: 1100px; margin-inline: auto; padding: 52px var(--pad) 72px; }
.telemedicine-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #475569; font-size: 13px; }
.telemedicine-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; margin-top: 28px; }
.telemedicine-intro .telemedicine-icon { width: 56px; height: 56px; margin-bottom: 24px; background: #f1f6fc; }
.telemedicine-eyebrow { display: block; color: #475569; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .16em; }
.telemedicine-intro h1 { margin: 14px 0 18px; font-size: clamp(36px, 4vw, 50px); font-weight: 500; letter-spacing: -.045em; line-height: 1.04; }
.telemedicine-intro h1 span { color: #254f87; }
.telemedicine-intro > p { color: #475569; font-size: 15px; line-height: 1.65; }
.telemedicine-info { margin-top: 28px; padding-top: 22px; border-top: 1px solid #e2e8f0; }
.telemedicine-info h2 { margin: 0 0 8px; font-size: 16px; font-weight: 550; }
.telemedicine-info p { color: #475569; font-size: 13px; line-height: 1.65; }
.telemedicine-info p + p { margin-top: 12px; }
.telemedicine-form-card { min-width: 0; padding: 28px; border: 1px solid #e2e8f0; border-radius: 24px; background: #ffffff; }
.telemedicine-preview-note { margin-bottom: 24px; padding: 14px 16px; border-radius: 12px; background: #f1f6fc; color: #334155; font-size: 12px; line-height: 1.55; }
.telemedicine-preview-note strong { display: block; margin-bottom: 3px; font-weight: 600; }
.telemedicine-form-card h2 { margin-bottom: 6px; font-size: 23px; font-weight: 550; letter-spacing: -.025em; line-height: 1.25; }
.telemedicine-form-help { margin-bottom: 24px; color: #64748b; font-size: 12px; }
.telemedicine-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.telemedicine-honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.telemedicine-field { display: flex; flex-direction: column; min-width: 0; gap: 7px; }
.telemedicine-field--full { grid-column: 1 / -1; }
.telemedicine-field label { font-size: 13px; font-weight: 550; }
.telemedicine-field label span { color: #64748b; font-size: 11px; font-weight: 400; }
.telemedicine-field :is(input, select) {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #0f172a;
  background: #ffffff;
  font: 400 16px/1.4 "Inter Tight", var(--sans);
}
.telemedicine-field input::placeholder { color: #64748b; }
.telemedicine-field small { color: #64748b; font-size: 11px; line-height: 1.5; }
.telemedicine-consent { display: flex; align-items: flex-start; gap: 10px; margin: 22px 0; padding-block: 4px; font-size: 12px; line-height: 1.55; cursor: pointer; }
.telemedicine-consent input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: #254f87; }
.telemedicine-form-card .telemedicine-button { width: 100%; }
.telemedicine-review-list { margin: 22px 0; }
.telemedicine-review-list > div { padding-block: 12px; border-bottom: 1px solid #e2e8f0; }
.telemedicine-review-list dt { color: #64748b; font-size: 11px; }
.telemedicine-review-list dd { margin-top: 3px; font-size: 15px; overflow-wrap: anywhere; }
.telemedicine-review-notice { margin: 20px 0; color: #475569; font-size: 13px; line-height: 1.6; }
.telemedicine-review-actions { display: flex; flex-direction: column; gap: 10px; }
#send-status:empty { display: none; }
#send-status[data-error="true"] { color: #9f1239; }
#success-reference { overflow-wrap: anywhere; }
.telemedicine-form-card [hidden] { display: none !important; }

@media (max-width: 800px) {
  .telemedicine-option { gap: 12px; padding: 14px; }
  .telemedicine-layout { gap: 32px; }
  .telemedicine-form-card { padding: 22px; }
}
@media (max-width: 640px) {
  .booking-extras {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 8px;
  }
  .booking-extras > :is(.clinic.sobrecupo, .telemedicine-option) {
    min-height: 0;
    height: auto;
  }
  .telemedicine-option { grid-template-columns: minmax(0, 1fr) auto; }
  .telemedicine-icon { width: 42px; height: 42px; border-radius: 12px; }
  .telemedicine-option > .telemedicine-icon { display: none; }
  .telemedicine-option-heading { gap: 6px 8px; }
  .telemedicine-option > .telemedicine-button { grid-column: 2; grid-row: 1; width: auto; justify-self: end; }
  .telemedicine-main { padding-top: 20px; padding-bottom: 40px; }
  .telemedicine-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 18px; }
  .telemedicine-intro .telemedicine-icon { display: none; }
  .telemedicine-intro h1 { max-width: 15ch; margin-top: 12px; font-size: 36px; }
  .telemedicine-intro > p { font-size: 14px; }
  .telemedicine-info { margin-top: 20px; padding-top: 16px; }
  .telemedicine-form-card { padding: 20px; border-radius: 18px; }
  .telemedicine-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .telemedicine-button { transition: none; }
}
