/* ============================================================
   Schedule a Consultation page
   Uses global primitives (.container/.section/.eyebrow/.btn/.lead);
   everything below is page-specific and namespaced under .sched.
   ============================================================ */

/* Hero */
.sched-hero { position: relative; overflow: hidden;
  background: linear-gradient(100deg, var(--deep-navy) 0%, var(--navy) 60%, #003a6b 100%); }
.sched-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.sched-hero__content { position: relative; padding: 4.5rem 0 4rem; max-width: 720px; }
.sched-crumb { font-size: 0.8rem; color: rgba(255,255,255,0.6); margin-bottom: 1rem; }
.sched-crumb a { color: rgba(255,255,255,0.78); }
.sched-crumb a:hover { color: #fff; }
.sched-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.08; }
.sched-hero__sub { font-size: 1rem; line-height: 1.6; color: rgba(255,255,255,0.85);
  margin-top: 1rem; max-width: 600px; }

/* Two-column layout */
.sched-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 3.5rem; align-items: start; }

/* Form card */
.sched-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff;
  padding: 2.1rem; box-shadow: var(--shadow-md); }
.sched-card__title { font-size: 1.25rem; margin-bottom: 0.35rem; }
.sched-card__req { font-size: 0.82rem; color: var(--muted); margin-bottom: 1.5rem; }
.req { color: var(--magenta); }
.opt { color: var(--muted); font-weight: 400; }

/* Honeypot */
.sched-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Fields */
.sched-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.sched-field { margin-bottom: 1.1rem; display: flex; flex-direction: column; }
.sched-field label { font-size: 0.78rem; font-weight: 600; color: var(--navy); margin-bottom: 0.38rem; }
.sched-field input, .sched-field select, .sched-field textarea {
  width: 100%; font-family: var(--font-sans); font-size: 0.87rem; color: var(--navy);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.8rem; background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s; -webkit-appearance: none; appearance: none; }
.sched-field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%2352606d' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.8rem center; padding-right: 2.1rem; }
.sched-field select:invalid { color: var(--muted); }
.sched-field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
.sched-field input:focus, .sched-field select:focus, .sched-field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,127,214,0.14); }
.sched-hint { font-size: 0.72rem; color: var(--muted); margin-top: 0.35rem; }
.sched-err { display: none; font-size: 0.72rem; color: var(--magenta); margin-top: 0.35rem; }
.sched-field.error input, .sched-field.error select, .sched-field.error textarea { border-color: var(--magenta); }
.sched-field.error .sched-err { display: block; }

/* Services checkbox grid */
.sched-svc-set { border: 0; margin: 0 0 1.1rem; padding: 0; }
.sched-svc-set legend { font-size: 0.78rem; font-weight: 600; color: var(--navy); margin-bottom: 0.6rem; }
.sched-svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.sched-svc { display: flex; align-items: flex-start; gap: 0.55rem; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0.6rem 0.75rem; cursor: pointer; transition: 0.15s;
  font-size: 0.78rem; color: var(--navy); line-height: 1.4; }
.sched-svc:hover { border-color: var(--blue); }
.sched-svc input { accent-color: var(--magenta); margin-top: 0.15rem; flex: none; }
.sched-svc.checked { border-color: var(--magenta); background: rgba(230,0,126,0.04); }
.sched-svc-set .sched-err { margin-top: 0.5rem; }
.sched-svc-set.error .sched-err { display: block; }

/* Submit row */
.sched-foot { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.sched-foot .btn { display: inline-flex; align-items: center; gap: 0.4rem; }
.sched-foot .icon { width: 1.05em; height: 1.05em; }
.sched-privacy { font-size: 0.7rem; color: var(--muted); line-height: 1.5; max-width: 340px; }

/* Error banner */
.sched-alert { display: none; align-items: center; gap: 0.5rem; border: 1px solid var(--magenta);
  background: rgba(230,0,126,0.05); color: var(--navy); font-size: 0.8rem; border-radius: var(--radius);
  padding: 0.7rem 0.9rem; margin-bottom: 1.1rem; }
.sched-alert .icon { width: 1.1rem; height: 1.1rem; color: var(--magenta); flex: none; }
.sched-alert.show { display: flex; }

/* Success panel */
.sched-success { border: 1px solid var(--line); background: var(--surface-2); border-radius: var(--radius-lg);
  padding: 2.1rem; text-align: center; }
.sched-success__ic { width: 52px; height: 52px; border-radius: 50%; background: rgba(230,0,126,0.09);
  color: var(--magenta); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.9rem; }
.sched-success__ic .icon { width: 26px; height: 26px; }
.sched-success .lead { max-width: 420px; margin: 0 auto; }
.sched-success a { color: var(--magenta); font-weight: 600; }

/* Sidebar */
.sched-side { display: flex; flex-direction: column; gap: 1rem; }
.sched-scard { border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; padding: 1.5rem; }
.sched-scard__ic { color: var(--magenta); display: inline-block; width: 20px; height: 20px; margin-bottom: 0.6rem; }
.sched-scard__h { font-family: var(--font-sans); font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
.sched-scard p { font-size: 0.78rem; line-height: 1.6; color: var(--text); }
.sched-line { display: flex; align-items: center; gap: 0.6rem; font-size: 0.82rem; color: var(--navy); margin-top: 0.6rem; }
.sched-line .icon { width: 1rem; height: 1rem; color: var(--magenta); flex: none; }
.sched-line a { color: var(--navy); }
.sched-line a:hover { color: var(--magenta); }
.sched-expect { list-style: none; margin: 0.75rem 0 0; padding: 0; }
.sched-expect li { display: flex; gap: 0.7rem; font-size: 0.78rem; line-height: 1.55; margin-bottom: 0.75rem; color: var(--text); }
.sched-expect__n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff;
  font-size: 0.66rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 1px; }

@media (max-width: 900px) {
  .sched-grid, .sched-row, .sched-svc-grid { grid-template-columns: 1fr; }
}
