/* Contact requests: scoped to the public form and the existing medical identity. */
.registro-section .appointment-layout {
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(2.5rem, 5vw, 5rem);
}

.registro-section .appointment-intro,
.registro-card,
.registro-form,
.registro-fields,
.registro-field,
.registro-modality {
  min-width: 0;
}

.registro-location {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  padding-top: 1.7rem;
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: .88rem;
  line-height: 1.8;
}

.registro-location .icon { margin-top: .2rem; color: var(--petrol); }
.registro-location strong { color: var(--ink); font-weight: 500; }
.registro-card { padding: clamp(1.5rem, 3vw, 2.5rem); }
.registro-card .appointment-card-top { align-items: flex-start; margin-bottom: .7rem; }
.registro-card .appointment-card-top .eyebrow { max-width: 16rem; margin-top: .35rem; }
.registro-card .appointment-card-top img { flex: none; }
.registro-intro { font: 500 1.65rem/1.3 var(--serif); color: var(--ink); }
.registro-required-note { color: var(--muted); font-size: .82rem; margin-bottom: 1.5rem; }
.registro-form { margin-top: 1.1rem; }
.registro-fields { display: grid; gap: 1.5rem; padding: 0; margin: 0; border: 0; }
.registro-field > label, .registro-modality > legend { display: block; padding: 0; font-weight: 500; font-size: .95rem; line-height: 1.55; color: var(--ink); }

.registro-field > input {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 54px;
  padding: .8rem .9rem;
  margin-top: .6rem;
  border: 1px solid #7c8f8d;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 400 max(16px, 1rem)/1.5 var(--sans);
  -webkit-appearance: none;
  appearance: none;
}

.registro-field > input::placeholder { color: #677b7e; opacity: 1; }
.registro-field > input:focus-visible { outline: 3px solid var(--petrol); outline-offset: 3px; }
.registro-field > input[aria-invalid="true"] { border-color: #8a372d; border-width: 2px; }
.registro-help { margin-top: .55rem; color: var(--muted); font-size: .84rem; line-height: 1.7; }
.registro-field-error { color: #8a372d; font-size: .88rem; font-weight: 500; line-height: 1.6; margin-top: .5rem; }
.registro-modality { border: 0; padding: 0; margin: 0; }
.registro-modality > .registro-help { margin-top: .4rem; }
.registro-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; margin-top: .7rem; }

.registro-option {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .9rem .65rem;
  min-width: 0;
  min-height: 80px;
  border: 1px solid #9eadaa;
  background: #fff;
  cursor: pointer;
  color: var(--ink);
  font-size: .85rem;
  line-height: 1.45;
}

.registro-option input, .registro-consent input {
  width: 1.12rem;
  height: 1.12rem;
  min-width: 20px;
  min-height: 20px;
  flex: none;
  margin: .12rem 0 0;
  accent-color: var(--petrol);
}

.registro-option span { min-width: 0; font-weight: 500; }
.registro-option small { display: block; margin-top: .25rem; font-size: .75rem; color: var(--muted); font-weight: 400; line-height: 1.6; }
.registro-option:hover { border-color: var(--petrol); }
.registro-option:has(input:checked) { border-color: var(--petrol); box-shadow: inset 0 0 0 1px var(--petrol); background: #edf3ee; }
.registro-option:has(input[aria-invalid="true"]) { border-color: #8a372d; }
.registro-zone { padding: 1.1rem; border-left: 2px solid var(--champagne); background: var(--ivory); }
.registro-consent { padding-top: 1.4rem; border-top: 1px solid var(--line); }
.registro-consent > label { display: flex; align-items: flex-start; gap: .8rem; min-height: 44px; cursor: pointer; color: var(--ink); font-size: .88rem; line-height: 1.75; }
.registro-consent .registro-help, .registro-consent .registro-field-error { margin-left: 1.92rem; }
.registro-consent input { margin-top: .3rem; }
.registro-honeypot { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
.registro-card .registro-submit { min-height: 60px; padding: 1rem 1.15rem; font-size: .95rem; gap: .75rem; }
.registro-submit > span { min-width: 0; }
.registro-card button:disabled { cursor: wait; opacity: .65; }
.registro-card button:disabled:hover { transform: none; }
.registro-fields:disabled .registro-option, .registro-fields:disabled .registro-consent > label { cursor: wait; }

.registro-error-summary {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid #8a372d;
  border-left-width: 3px;
  background: #fcf1ed;
  color: #752e25;
  font-size: .91rem;
  line-height: 1.65;
}

.registro-error-summary > p { font-weight: 500; }
.registro-error-summary ul { margin: .7rem 0 0; padding-left: 1.15rem; }
.registro-error-summary ul:empty { display: none; }
.registro-error-summary li + li { margin-top: .35rem; }
.registro-error-summary a, .registro-privacy a, .registro-channel-note a, .registro-fallback a { text-decoration: underline; text-underline-offset: .2em; }
.registro-status { min-height: 0; color: var(--petrol); font-size: .9rem; line-height: 1.7; }
.registro-status:not(:empty) { margin-top: 1rem; }
.registro-status.is-error { color: #8a372d; }
.registro-error-summary, .registro-success h3, .registro-status, .registro-field input, .registro-option input, .registro-consent input { scroll-margin-block: 8rem; }
.registro-success { padding: 1.9rem 0 .3rem; }
.registro-success-icon { display: flex; align-items: center; justify-content: center; width: 3rem; height: 3rem; border: 1px solid var(--petrol); background: #edf3ee; color: var(--petrol); margin-bottom: 1.2rem; }
.registro-success-icon .icon { width: 1.65rem; height: 1.65rem; }
.registro-card .registro-success h3 { max-width: none; font: 500 2.3rem/1.15 var(--serif); }
.registro-success > p { margin-top: 1rem; font-size: .92rem; }
.registro-success > .registro-help { font-size: .83rem; }
.registro-success-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.registro-secondary-button { background: transparent; border: 1px solid var(--petrol); padding: .75rem 1rem; min-height: 48px; font: 500 .9rem/1.5 var(--sans); color: var(--petrol); }
.registro-secondary-button:hover { background: #edf3ee; }
.registro-success-whatsapp { margin-top: 1.2rem; font-size: .86rem; }
.registro-success-whatsapp .icon { flex: none; }
.registro-privacy { margin-top: 1.7rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.registro-privacy summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 54px; padding: .9rem 0; color: var(--petrol); font-size: .89rem; font-weight: 500; cursor: pointer; list-style: none; }
.registro-privacy summary::-webkit-details-marker { display: none; }
.registro-privacy summary .icon { width: 1rem; height: 1rem; flex: none; }
.registro-privacy[open] summary .icon { transform: rotate(45deg); }
.registro-privacy > div { font-size: .85rem; line-height: 1.85; padding: .15rem 0 1.2rem; }
.registro-channel-note, .registro-fallback { margin-top: 1.2rem; color: var(--muted); font-size: .86rem; line-height: 1.8; }
.registro-channel-note a, .registro-fallback a, .registro-privacy a { color: var(--petrol); }
.registro-channel-note a { display: inline-block; min-height: 35px; padding-top: .25rem; }
.registro-card p, .registro-card label, .registro-card legend, .registro-card button, .registro-card summary { overflow-wrap: anywhere; }

@media (max-width: 1000px) {
  .registro-section .appointment-layout { grid-template-columns: minmax(0, 1fr); gap: 2.8rem; }
  .registro-section .appointment-intro { max-width: 42rem; }
  .registro-section .appointment-intro h2 { font-size: clamp(2.65rem, 6vw, 3.8rem); }
  .registro-section .appointment-card { width: 100%; max-width: 740px; justify-self: center; padding: 2rem; }
  .registro-section .appointment-steps { margin-top: 1.8rem; }
  .registro-location { margin-top: 1.2rem; padding-top: 1.2rem; }
}

@media (max-width: 620px) {
  .registro-section .appointment-card { padding: 1.4rem; }
  .registro-card .appointment-card-top { gap: .75rem; }
  .registro-card .appointment-card-top .eyebrow { font-size: .67rem; }
  .registro-intro { font-size: 1.6rem; }
  .registro-options { grid-template-columns: minmax(0, 1fr); }
  .registro-option { padding: .85rem; min-height: 68px; align-items: center; font-size: .94rem; gap: .75rem; }
  .registro-option small { font-size: .82rem; margin-top: .1rem; }
  .registro-option input { margin-top: 0; }
  .registro-fields { gap: 1.35rem; }
  .registro-zone { padding: .9rem; }
  .registro-consent .registro-help, .registro-consent .registro-field-error { margin-left: 0; }
  .registro-card .registro-submit { text-align: left; padding: .95rem; font-size: .91rem; }
  .registro-success-actions { flex-direction: column; }
  .registro-secondary-button { width: 100%; }
  .registro-card .registro-success h3 { font-size: 2rem; }
  .registro-error-summary { padding: .85rem; }
}

@media (max-width: 370px) {
  .registro-section .appointment-card { padding: 1.1rem; }
  .registro-card .appointment-card-top img { width: 2.5rem; height: 2.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .registro-card *, .registro-card *::before, .registro-card *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .registro-card .button:hover { transform: none; }
}

@media print {
  .registro-form, .registro-success-actions, .registro-channel-note, .registro-status { display: none !important; }
  .registro-section .appointment-card { border-color: #7c8f8d; box-shadow: none; }
  .registro-section .appointment-card::before { display: none; }
  .registro-fallback[hidden] { display: block !important; }
}
