/* Cambielli Nigeria - /your-space/ candidate 2026-11-06.
   The appointment form as a solid, elevated application panel placed above the
   page: opaque, real depth, large controls, persistent labels, explicit
   selection / press / focus / loading / error feedback. No ghost lines. */

.q-panel{
  --q-accent:#762740;
  --q-accent-deep:#5d2033;
  --q-ink:#201e1b;
  --q-muted:#625d55;
  --q-field:#cdc7bb;
  --q-danger:#9a2e2e;
  max-width:560px;margin:0 auto;
  background:#fff;
  border:1px solid #ded8cd;
  border-radius:18px;
  padding:18px 14px 20px;
  /* Each step is scrolled to this deterministic position, clear of the sticky
     brand banner, so "the primary action is visible" is a property of the
     layout and not of where the user happened to leave the page. */
  scroll-margin-top:calc(var(--bar-h) + 8px);
  box-shadow:0 1px 0 rgba(255,255,255,.9) inset,
             0 2px 4px rgba(32,28,22,.05),
             0 14px 34px rgba(32,28,22,.1),
             0 34px 70px rgba(32,28,22,.07);
  color:var(--q-ink);
  font-family:CNInstrument,-apple-system,Segoe UI,Arial,sans-serif;
}
.q-panel *{box-sizing:border-box}
.q-panel [hidden]{display:none!important}
.q-panel :focus-visible{outline:2px solid var(--q-accent);outline-offset:2px}

/* ---------- Progress ---------- */
.q-progress{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}
#step-label{font-size:12px;font-weight:600;letter-spacing:.01em;color:var(--q-muted)}
.q-progress__bars{display:flex;gap:4px;flex:0 0 auto}
.q-progress i{display:block;width:17px;height:4px;border-radius:4px;background:#e6e1d8}
.q-progress i.active{background:var(--q-accent)}

/* ---------- Structure ---------- */
#project-form fieldset{min-width:0;min-inline-size:0;margin:0;padding:0;border:0}
#project-form legend{
  display:block;max-width:100%;padding:0;margin:0 0 12px;
  font-family:CNBricolage,Arial,sans-serif;font-weight:600;
  font-size:20px;line-height:1.2;letter-spacing:-.03em;color:var(--q-ink);
}
/* The legend is focused on each step change so assistive technology announces
   the new step. It is a heading, not a control, so it shows no focus ring. */
#project-form legend:focus{outline:none}
/* The appointment step puts the month arrows on the legend row: the 6-week
   grid, the alternative and the primary action then share one viewport.
   The selector carries the #project-form prefix on purpose, or the block
   display of the rule above wins on specificity and the arrows drop onto their
   own line, costing 30px exactly where there is none to spare. */
#project-form legend.q-legend--row{
  display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;
}
.q-legend__text{display:block;min-width:0}
#calendar-month,#calendar-note{
  display:inline;margin-top:1px;
  font-family:CNInstrument,-apple-system,Segoe UI,Arial,sans-serif;
  font-size:13px;font-weight:600;line-height:1.3;letter-spacing:0;color:var(--q-muted);
}
.q-legend__text>span:first-child{display:block}
#calendar-month{display:inline-block;margin-top:2px}
.q-group{margin-bottom:14px}
.q-body>:last-child{margin-bottom:0}
.q-label{
  display:block;margin-bottom:6px;
  font-size:13.5px;font-weight:600;line-height:1.35;color:var(--q-ink);
}
#visit-help{margin:0 0 6px;font-size:12.5px;font-weight:500;line-height:1.35;color:var(--q-muted)}

/* ---------- Locked while a request is in flight ----------
   form.mjs also marks [data-step-body] inert, which is what actually blocks
   pointer, keyboard and freshly rendered controls. This is the visible half of
   the same fact. */
#project-form[data-phase=sending] .q-body,
#project-form[data-phase=uncertain] .q-body{opacity:.58}
#project-form[data-phase=sending] .q-body,
#project-form[data-phase=uncertain] .q-body,
.q-back:disabled,.q-alt:disabled{cursor:not-allowed}
.q-back:disabled,.q-alt:disabled{opacity:.42;background:#fff}
.q-status{margin:12px 0 0;font-size:12.5px;font-weight:600;line-height:1.5;color:var(--q-muted)}
.q-status:empty{display:none}

/* ---------- Fields ---------- */
#project-form input:not([type=checkbox]):not([type=radio]),
#project-form textarea{
  display:block;width:100%;min-width:0;min-height:52px;
  padding:14px 14px;border:1.5px solid var(--q-field);border-radius:11px;
  background:#fff;color:var(--q-ink);
  font-family:inherit;font-size:16px;font-weight:500;line-height:1.4;
  appearance:none;
}
#project-form textarea{min-height:88px;resize:vertical}
#project-form input::placeholder,#project-form textarea::placeholder{color:#9b958b;font-weight:400}
#project-form input:not([type=checkbox]):not([type=radio]):hover,
#project-form textarea:hover{border-color:#b5aea1}
#project-form input:focus,#project-form textarea:focus{border-color:var(--q-accent);outline:2px solid rgba(118,39,64,.3);outline-offset:0}
#project-form [aria-invalid=true]{border-color:var(--q-danger)!important;background:#fdf7f6}

/* ---------- Choice cards ---------- */
.q-cards{display:grid;gap:8px}
.q-card{
  position:relative;display:flex;align-items:center;gap:12px;
  min-height:52px;padding:13px 15px;
  border:1.5px solid var(--q-field);border-radius:11px;background:#fff;
  font-size:15px;font-weight:600;line-height:1.3;color:var(--q-ink);
  cursor:pointer;transition:background .12s ease,border-color .12s ease;
}
.q-card:hover{border-color:#b5aea1;background:#fcfbf8}
.q-card:active{background:#f6f3ec}
.q-card input{
  flex:0 0 22px;width:22px;height:22px;margin:0;
  appearance:none;border:1.5px solid var(--q-field);border-radius:50%;background:#fff;cursor:pointer;
}
.q-card input:checked{border:6.5px solid var(--q-accent)}
.q-card:has(input:checked){border-color:var(--q-accent);border-width:2px;background:#fdf6f8;padding:12.5px 14.5px}
.q-card:has(input:focus-visible){outline:2px solid var(--q-accent);outline-offset:2px}
.q-cards--compact .q-card{min-height:48px;padding:11px 15px;font-size:14.5px}
.q-cards--compact .q-card:has(input:checked){padding:10.5px 14.5px}
.q-group[aria-invalid=true] .q-card{border-color:var(--q-danger)}

/* ---------- Phone ---------- */
.q-phone{display:grid;grid-template-columns:108px minmax(0,1fr);gap:8px;min-width:0}
.q-country{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:4px;
  min-height:52px;padding:0 11px;
  border:1.5px solid var(--q-field);border-radius:11px;background:#fff;
  font-size:14px;font-weight:600;
}
.q-country:hover{border-color:#b5aea1}
.q-country__arrow{width:0;height:0;flex:0 0 auto;border:4.5px solid transparent;border-top-color:#6d665c;margin-top:4px}
.q-country select{
  position:absolute;inset:0;width:100%;height:100%;
  margin:0;padding:0;opacity:0;cursor:pointer;font-size:16px;
}
.q-country:focus-within{border-color:var(--q-accent);outline:2px solid rgba(118,39,64,.3)}

/* ---------- Optional extras ---------- */
.q-extras{margin:0 0 14px;border:1px solid #ebe6dd;border-radius:11px;background:#fbfaf7;padding:0 13px}
.q-extras summary{
  display:flex;align-items:center;justify-content:space-between;gap:10px;
  min-height:46px;padding:11px 0;cursor:pointer;
  font-size:14px;font-weight:600;color:var(--q-ink);list-style:none;
}
.q-extras summary::-webkit-details-marker{display:none}
.q-extras summary span{font-size:11.5px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--q-muted)}
.q-extras[open] summary{border-bottom:1px solid #ebe6dd}
.q-extras .q-label{margin-top:13px}
.q-extras>:last-child{margin-bottom:14px}

/* ---------- Consent ---------- */
.q-consent{
  display:flex;gap:11px;align-items:flex-start;
  margin:0;padding:12px;border:1px solid #ebe6dd;border-radius:11px;background:#fbfaf7;
  font-size:12.5px;line-height:1.5;color:var(--q-muted);cursor:pointer;
}
.q-consent input{
  flex:0 0 24px;width:24px;height:24px;margin:0;
  accent-color:var(--q-accent);cursor:pointer;
}
.q-consent a{color:var(--q-accent);text-underline-offset:2px}

/* ---------- Actions ---------- */
/* One row per step: Back, then the step's primary action. On the date view the
   primary slot holds the exact approved alternative, because nothing is
   selected yet and submitting is not yet a real action. */
.q-actions{display:flex;align-items:center;gap:10px;margin-top:14px;padding-top:11px;border-top:1px solid #ece7de}
.q-next,.q-submit{
  flex:1;display:flex;align-items:center;justify-content:center;gap:10px;
  min-height:52px;padding:14px 18px;
  background:var(--q-accent);border:1px solid var(--q-accent);border-radius:11px;color:#fff;
  font-family:inherit;font-size:15.5px;font-weight:600;letter-spacing:.005em;cursor:pointer;
  box-shadow:0 6px 16px rgba(118,39,64,.22);
  transition:background .12s ease,transform .08s ease,box-shadow .12s ease;
}
.q-next:hover,.q-submit:hover{background:var(--q-accent-deep);border-color:var(--q-accent-deep)}
.q-next:active,.q-submit:active{transform:translateY(1px);box-shadow:0 3px 9px rgba(118,39,64,.22)}
.q-submit:disabled{
  background:#e8e3da;border-color:#e8e3da;color:#8a837a;
  box-shadow:none;cursor:not-allowed;transform:none;
}
.q-back{
  flex:0 0 auto;min-height:52px;min-width:76px;padding:14px 14px;
  background:#fff;border:1.5px solid var(--q-field);border-radius:11px;
  font-family:inherit;font-size:14.5px;font-weight:600;color:var(--q-muted);cursor:pointer;
}
.q-back:hover{border-color:#b5aea1;color:var(--q-ink)}
.q-back:active{background:#f6f3ec}
.q-submit.is-sending{background:var(--q-accent-deep);border-color:var(--q-accent-deep);cursor:progress}
.q-spinner{
  width:17px;height:17px;flex:0 0 17px;border-radius:50%;
  border:2px solid rgba(255,255,255,.4);border-top-color:#fff;
}
@media(prefers-reduced-motion:no-preference){.q-spinner{animation:q-spin .7s linear infinite}}
@keyframes q-spin{to{transform:rotate(360deg)}}
.q-confirm-note{margin:12px 0 0;font-size:12px;line-height:1.55;color:var(--q-muted);text-align:center}

/* ---------- Calendar ----------
   7 columns of at least 44px inside a 360px phone is the binding constraint on
   the panel's horizontal padding. The gap is 3px rather than the usual 8px
   spacing: a date grid is a single compound control, and keeping the 44px
   target matters more here than inter-cell spacing. */
.q-cal__nav{display:flex;gap:6px;flex:0 0 auto}
.q-cal__nav button{
  width:44px;height:44px;padding:0;
  border:1.5px solid var(--q-field);border-radius:10px;background:#fff;
  font-family:inherit;font-size:22px;line-height:1;color:var(--q-ink);cursor:pointer;
}
.q-cal__nav button:hover:not(:disabled){border-color:#b5aea1;background:#fcfbf8}
.q-cal__nav button:disabled{opacity:.34;cursor:not-allowed}
.q-cal__weekdays,#visit-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
.q-cal__weekdays span{text-align:center;padding:0 0 2px;font-size:11.5px;line-height:1.3;font-weight:600;color:#8d8679}
#visit-days button{
  min-width:0;height:44px;padding:0;
  border:1.5px solid #ece7de;border-radius:10px;background:#faf8f4;
  font-family:inherit;font-size:15px;font-weight:600;color:var(--q-ink);cursor:pointer;
  transition:background .12s ease,border-color .12s ease;
}
#visit-days button:hover:not(:disabled){border-color:var(--q-accent);background:#fdf6f8}
#visit-days button:active:not(:disabled){transform:translateY(1px)}
#visit-days button:disabled{background:transparent;border-color:transparent;color:#bdb6ac;cursor:not-allowed}
#visit-days button[aria-pressed=true]{background:var(--q-accent);border-color:var(--q-accent);color:#fff}
#visit-days button[aria-current=date]:not([aria-pressed=true]){box-shadow:inset 0 -3px 0 var(--q-accent)}

/* ---------- Chosen day and times ---------- */
.q-chosen{
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  width:100%;min-height:52px;padding:13px 15px;margin-bottom:12px;
  border:1.5px solid var(--q-field);border-radius:11px;background:#faf8f4;
  font-family:inherit;font-size:15px;font-weight:600;text-align:left;color:var(--q-ink);cursor:pointer;
}
.q-chosen:hover{border-color:#b5aea1}
.q-chosen__action{font-size:12.5px;font-weight:600;color:var(--q-accent);text-decoration:underline;text-underline-offset:3px}
/* A weekday offers 19 slots. Five columns keeps that to four rows, so the
   arrival-time view fits one viewport like every other step. */
#visit-times{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}
#visit-times button{
  min-width:0;min-height:46px;padding:10px 2px;
  border:1.5px solid var(--q-field);border-radius:10px;background:#fff;
  font-family:inherit;font-size:14.5px;font-weight:600;color:var(--q-ink);cursor:pointer;
}
#visit-times button:hover{border-color:var(--q-accent);background:#fdf6f8}
#visit-times button:active{transform:translateY(1px)}
#visit-times button[aria-pressed=true]{background:var(--q-accent);border-color:var(--q-accent);color:#fff}
.q-selection{margin:10px 0 0;min-height:19px;font-size:13px;font-weight:600;color:var(--q-accent)}
.q-arranged{
  margin:0 0 4px;padding:14px;border-radius:11px;background:#f6f3ec;border:1px solid #ebe6dd;
  font-size:14.5px;line-height:1.55;font-weight:500;
}
.q-link{
  display:block;min-height:46px;padding:12px 0;border:0;background:none;
  font-family:inherit;font-size:13.5px;font-weight:600;color:var(--q-accent);
  text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer;
}
/* The exact approved alternative to picking a date. It shares the primary
   action slot on the date view, so it is always visible without scrolling. */
.q-alt{
  flex:1;display:flex;align-items:center;justify-content:center;
  min-width:0;min-height:52px;padding:13px 12px;
  border:1.5px solid var(--q-accent);border-radius:11px;background:#fff;
  font-family:inherit;font-size:14.5px;font-weight:600;color:var(--q-accent);
  line-height:1.2;text-align:center;cursor:pointer;
}
.q-alt:hover{background:#fdf6f8}
.q-alt:active{transform:translateY(1px);background:#f9eef2}

/* ---------- Errors ----------
   Deliberately outside [data-step-body]: an error and the progress line must
   stay readable and focusable exactly when the rest of the form is locked. */
#form-errors{
  margin-top:14px;padding:14px 15px;
  border:1.5px solid #d9a3a3;border-left:4px solid var(--q-danger);border-radius:10px;
  background:#fdf6f5;color:var(--q-danger);
  font-size:13.5px;font-weight:600;line-height:1.5;
}
#form-errors p{margin:5px 0}
#form-errors p:first-child{margin-top:0}
#form-errors p:last-child{margin-bottom:0}
.q-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* ---------- Success ---------- */
#form-success{text-align:center}
/* Focused on success so the outcome is announced; it is a status region. */
#form-success:focus{outline:none}
.q-success__icon{
  display:flex;align-items:center;justify-content:center;
  width:56px;height:56px;margin:0 auto 16px;border-radius:50%;
  background:#f4e7eb;color:var(--q-accent);
}
.q-success__icon svg{width:34px;height:34px}
#success-title{
  margin:0 0 10px;font-family:CNBricolage,Arial,sans-serif;font-weight:600;
  font-size:26px;line-height:1.18;letter-spacing:-.03em;overflow-wrap:anywhere;
}
#success-message{margin:0 auto 20px;max-width:40ch;font-size:14.5px;line-height:1.65;color:var(--q-muted)}
.q-card-visit{
  text-align:left;padding:16px;border:1px solid #e6ded4;border-radius:12px;background:#faf8f4;
}
.q-card-visit__top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.q-card-visit__top>span:first-child{font-size:10px;font-weight:600;letter-spacing:.13em;text-transform:uppercase;color:#8d8679}
.q-pending{
  font-size:10.5px;font-weight:600;padding:5px 9px;border-radius:12px;
  background:#f0e6d4;color:#6d5532;white-space:nowrap;
}
#success-visit{display:block;font-size:17px;font-weight:600;line-height:1.45;letter-spacing:-.02em;margin-bottom:10px}
.q-card-visit__place{display:block;font-size:12.5px;font-weight:600;line-height:1.5}
.q-card-visit>p{margin:4px 0 0;font-size:12.5px;line-height:1.55;color:var(--q-muted)}
.q-directions{
  display:flex;align-items:center;justify-content:center;
  min-height:50px;margin-top:16px;padding:13px;
  border:1.5px solid #ddc9cf;border-radius:11px;
  font-size:14px;font-weight:600;color:var(--q-accent);text-decoration:none;
}
.q-directions:hover{background:#fdf6f8;border-color:var(--q-accent)}
.q-panel noscript{display:block;font-size:14px;line-height:1.6}

/* ---------- Wider ---------- */
@media(min-width:600px){
  .q-panel{padding:28px 26px 30px;border-radius:20px}
  #project-form legend{font-size:24px;margin-bottom:18px}
  .q-legend--row{min-height:48px}
  .q-group{margin-bottom:18px}
  .q-cards{gap:10px}
  .q-cards--compact{grid-template-columns:1fr 1fr}
  .q-consent{padding:14px;line-height:1.6}
  #visit-days button{height:48px}
  .q-cal__weekdays,#visit-days{gap:5px}
  #calendar-month{font-size:13.5px}
  #visit-help{font-size:13px;margin-bottom:12px}
  #success-title{font-size:29px}
}
@media(min-width:900px){
  .q-panel{max-width:600px;padding:36px 34px 38px;margin-top:-6px}
}
