/* ==========================================================================
   request-call.css — the "Request a Call" popup (Sarah dials the visitor)
   plus light-surface styling for the v2 consent checkboxes (the aurora-cta
   sheet styles them white-on-dark; inside the white form card and this modal
   they need ink-on-light — this file loads last, so these rules win).
   ========================================================================== */

/* ------------------------------------------------------------------ Modal */
.rc-modal { position: fixed; inset: 0; z-index: 400; }
.rc-modal[hidden] { display: none; }
.rc-modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(6,5,16,.6);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: rcFade .25s var(--ease-out) both;
}
.rc-modal__panel {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: min(560px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  background: #fff; border: 1px solid rgba(0,0,0,.05);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  padding: clamp(1.5rem, 3.5vw, 2.2rem);
  animation: rcPop .3s var(--ease-out) both;
}
@keyframes rcFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rcPop { from { opacity: 0; transform: translate(-50%,-48.5%) scale(.97); } to { opacity: 1; transform: translate(-50%,-50%) scale(1); } }
@media (prefers-reduced-motion: reduce){ .rc-modal__backdrop, .rc-modal__panel { animation: none; } }

.rc-modal__close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink-3);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.rc-modal__close:hover { color: var(--ink); background: var(--bg-3); }

.rc-modal__head { margin-bottom: 1.2rem; padding-right: 2rem; }
.rc-modal__head h3 { font-size: 1.45rem; letter-spacing: -.025em; margin-top: .55rem; }
.rc-modal__head p { margin-top: .5rem; font-size: .92rem; color: var(--ink-2); line-height: 1.6; }

.rc-modal__actions { margin-top: 1.3rem; }
.rc-modal__alt { margin-top: .9rem; text-align: center; font-size: .8rem; color: var(--ink-4); }
.rc-modal__error {
  margin-top: 1rem; padding: .8rem 1.1rem; border-radius: 12px;
  background: rgba(192,56,56,.05); border: 1px solid rgba(192,56,56,.2);
  color: #A03030; font-size: .88rem; line-height: 1.5;
}

/* Success state */
.rc-modal__success { text-align: center; padding: 1.6rem .4rem .8rem; }
.rc-modal__success .check {
  width: 58px; height: 58px; margin: 0 auto 1.1rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 8px 24px rgba(158,82,97,.3);
  display: grid; place-items: center; color: #fff;
  animation: pop .4s var(--ease-out);
}
.rc-modal__success .check .ic { width: 26px; height: 26px; }
.rc-modal__success h3 { font-size: 1.4rem; letter-spacing: -.02em; }
.rc-modal__success p { margin-top: .7rem; font-size: .95rem; color: var(--ink-2); max-width: 400px; margin-inline: auto; line-height: 1.65; }

/* Scroll lock while open */
html.rc-lock, html.rc-lock body { overflow: hidden; }

/* ------------------------------------ Consent checkboxes on light surfaces */
.form-card .v2-form-consent, .rc-modal .v2-form-consent { margin-top: 1rem; }
.form-card .v2-form-consent + .v2-form-consent,
.rc-modal .v2-form-consent + .v2-form-consent { margin-top: .5rem; }
.form-card .v2-consent-label, .rc-modal .v2-consent-label {
  display: flex; align-items: flex-start; gap: .625rem;
  cursor: pointer; user-select: none;
  font-family: var(--font-body); font-size: .74rem; line-height: 1.55;
  color: var(--ink-3); letter-spacing: .005em;
  text-align: left; justify-content: flex-start;
}
.form-card .v2-consent-box, .rc-modal .v2-consent-box {
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
  flex-shrink: 0; width: 16px; height: 16px; margin: 2px 0 0 0;
  border-radius: 4px; border: 1.5px solid var(--bg-4); background: #fff;
  cursor: pointer; position: relative;
  transition: all .18s cubic-bezier(.4,0,.2,1);
}
.form-card .v2-consent-box:hover, .rc-modal .v2-consent-box:hover { border-color: var(--accent); background: var(--accent-soft); }
.form-card .v2-consent-box:focus-visible, .rc-modal .v2-consent-box:focus-visible {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(158,82,97,.18);
}
.form-card .v2-consent-box:checked, .rc-modal .v2-consent-box:checked { background: var(--accent); border-color: var(--accent); }
.form-card .v2-consent-box:checked::after, .rc-modal .v2-consent-box:checked::after {
  content: ''; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 1.8px 1.8px 0; transform: rotate(45deg);
}
.form-card .v2-consent-text, .rc-modal .v2-consent-text { flex: 0 1 auto; min-width: 0; }
.form-card .v2-consent-link, .rc-modal .v2-consent-link {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 2px; text-decoration-color: rgba(158,82,97,.4);
  transition: color .18s ease, text-decoration-color .18s ease;
}
.form-card .v2-consent-link:hover, .rc-modal .v2-consent-link:hover { color: var(--accent-600); text-decoration-color: var(--accent-600); }
