/* Aldora's Notary & Apostille Service - Book Appointment page styles.
   Every class starts with ab- so nothing clashes with the Joomla template or Quix. */
/* Layout: brand hero, then one centered booking card that walks through four steps.
   Single light look on purpose: it mirrors aldorasnotary.ab-com, where this will live. */
.ab-root {
  --teal: #274647;
  --teal-mid: #2f5657;
  --gold: #c9a84c;
  --gold-light: #e8cb7a;
  --gold-pale: #f7eed8;
  --slate: #4a5568;
  --white: #ffffff;
  --off-white: #fafaf7;
  --border: #e2d9c5;
  --error: #b3412f;
  --error-pale: #f8e8e5;
  --success: #2e7d5b;
  --muted: #8a8f99;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Montserrat', 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}
.ab-root, .ab-root * { box-sizing: border-box; }
.ab-root { background: var(--off-white); color: var(--slate); }
.ab-root { font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
.ab-root h1, .ab-root h2, .ab-root h3, .ab-root h4 { font-family: var(--font-heading); color: var(--teal); line-height: 1.25; margin: 0; text-wrap: balance; }
.ab-root p { margin: 0; }
.ab-root button, .ab-root input, .ab-root select, .ab-root textarea { font: inherit; letter-spacing: normal; text-transform: none; }
.ab-root :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }


/* Hero */
.ab-hero {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-mid) 65%, #3a6a6b 100%);
  border-bottom: 4px solid var(--gold);
  padding: 44px 16px 92px;
}
.ab-hero-inner { max-width: 760px; margin: 0 auto; }
.ab-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold-light); background: rgba(201,168,76,0.18); border: 1px solid rgba(201,168,76,0.35);
  border-radius: 4px; padding: 4px 12px; margin-bottom: 14px;
}
.ab-hero h1 { color: var(--white); font-size: clamp(28px, 5vw, 38px); margin-bottom: 10px; }
.ab-hero p { color: rgba(255,255,255,0.86); font-size: 17px; max-width: 600px; }

/* Card */
.ab-wrap { padding-inline: 16px; padding-block: 0 56px; }
.ab-card {
  max-width: 760px; margin: -64px auto 0; background: var(--white);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 10px 30px rgba(39,70,71,0.10);
}

/* Stepper */
.ab-steps { display: flex; list-style: none; margin: 0; padding: 18px 24px; gap: 8px; border-bottom: 1px solid var(--border); }
.ab-steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); min-width: 0; }
.ab-steps .ab-num {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--border); background: var(--white); font-size: 13px; font-weight: 700; color: var(--muted);
}
.ab-steps li.ab-is-current { color: var(--teal); }
.ab-steps li.ab-is-current .ab-num { border-color: var(--gold); background: var(--gold); color: var(--teal); }
.ab-steps li.ab-is-done { color: var(--teal-mid); }
.ab-steps li.ab-is-done .ab-num { border-color: var(--teal); background: var(--teal); color: var(--white); }
.ab-steps .ab-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 560px) {
  .ab-steps { padding: 14px 16px; }
  .ab-steps li { flex: 0 0 auto; }
  .ab-steps li.ab-is-current { flex: 1 1 auto; }
  .ab-steps .ab-label { display: none; }
  .ab-steps li.ab-is-current .ab-label { display: inline; }
}

.ab-panel { padding: 28px 28px 30px; }
@media (max-width: 560px) { .ab-panel { padding: 22px 18px 24px; } }
.ab-panel h2 { font-size: 24px; margin-bottom: 6px; }
.ab-panel .ab-lead { margin-bottom: 22px; }

/* Service options */
.ab-services { display: grid; gap: 12px; }
.ab-service {
  display: flex; gap: 16px; align-items: flex-start; text-align: left; width: 100%;
  background: var(--white); border: 2px solid var(--border); border-radius: 12px; padding: 18px 20px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ab-service:hover { border-color: var(--gold); background: var(--off-white); }
.ab-service[disabled] { cursor: default; background: var(--off-white); }
.ab-service[disabled]:hover { border-color: var(--border); }
.ab-service-icon {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px; background: var(--gold-pale);
  border: 1px solid var(--border); display: grid; place-items: center; color: var(--teal);
}
.ab-service-body { min-width: 0; flex: 1; }
.ab-service h3 { font-size: 19px; margin-bottom: 4px; }
.ab-service p { font-size: 15px; }
.ab-service .ab-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ab-chip {
  font-size: 13px; font-weight: 600; color: var(--teal); background: var(--gold-pale);
  border: 1px solid var(--border); border-radius: 20px; padding: 3px 12px;
}
.ab-chip--muted { color: var(--slate); background: var(--white); }
.ab-service .ab-arrow { align-self: center; color: var(--gold); flex-shrink: 0; }

/* Calendar */
.ab-picker { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 640px) { .ab-picker { grid-template-columns: 1fr; } }
.ab-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ab-cal-head h3 { font-size: 19px; }
.ab-icon-btn {
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--border); background: var(--white);
  color: var(--teal); cursor: pointer; display: grid; place-items: center;
}
.ab-icon-btn:hover { border-color: var(--gold); }
.ab-icon-btn[disabled] { opacity: .35; cursor: default; }
.ab-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ab-dow { font-size: 12px; font-weight: 700; text-align: center; color: var(--muted); padding: 4px 0; letter-spacing: .04em; }
.ab-day {
  aspect-ratio: 1; max-width: 100%; border-radius: 8px; border: 1px solid transparent; background: transparent;
  font-size: 15px; font-weight: 600; color: var(--teal); cursor: pointer; font-variant-numeric: tabular-nums;
}
.ab-day.ab-is-open { background: var(--gold-pale); border-color: var(--border); }
.ab-day.ab-is-open:hover { border-color: var(--gold); }
.ab-day.ab-is-selected { background: var(--teal); color: var(--white); border-color: var(--teal); }
.ab-day[disabled] { color: #c4c7cc; cursor: default; background: transparent; }
.ab-day.ab-is-today { box-shadow: inset 0 -3px 0 var(--gold); }
.ab-cal-legend { font-size: 13px; color: var(--muted); margin-top: 10px; }

.ab-slots-title { font-size: 19px; margin-bottom: 4px; }
.ab-tz { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.ab-slot-group { margin-bottom: 14px; }
.ab-slot-group h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.ab-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(98px, 1fr)); gap: 8px; }
.ab-slot {
  border: 2px solid var(--border); background: var(--white); color: var(--teal); border-radius: 8px;
  padding: 10px 6px; font-weight: 700; font-size: 15px; cursor: pointer; font-variant-numeric: tabular-nums;
}
.ab-slot:hover { border-color: var(--gold); }
.ab-slot.ab-is-selected { background: var(--teal); border-color: var(--teal); color: var(--white); }
.ab-empty {
  border: 1px dashed var(--border); border-radius: 10px; padding: 18px; font-size: 15px; color: var(--slate); background: var(--off-white);
}

/* Form */
.ab-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.ab-form-grid .ab-full { grid-column: 1 / -1; }
@media (max-width: 560px) { .ab-form-grid { grid-template-columns: 1fr; } }
.ab-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ab-field label { font-weight: 600; color: var(--teal); font-size: 15px; }
.ab-field .ab-hint { font-size: 13px; color: var(--muted); }
.ab-field input, .ab-field select, .ab-field textarea {
  width: 100%; border: 1.5px solid var(--border); border-radius: 8px; padding: 12px 14px; background: var(--white);
  color: var(--teal); font-size: 16px;
}
.ab-field textarea { min-height: 88px; resize: vertical; }
.ab-field input:focus, .ab-field select:focus, .ab-field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201,168,76,0.25); }
.ab-field.ab-has-error input, .ab-field.ab-has-error select, .ab-field.ab-has-error textarea { border-color: var(--error); }
.ab-err { font-size: 14px; color: var(--error); font-weight: 600; }
.ab-check {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid var(--border);
  border-radius: 10px; background: var(--off-white); cursor: pointer;
}
.ab-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal); flex-shrink: 0; }
.ab-check span { font-size: 15px; }
.ab-check a { color: var(--teal); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.ab-field.ab-has-error .ab-check { border-color: var(--error); }

/* Review */
.ab-summary { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.ab-summary-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--border); align-items: baseline; }
.ab-summary-row:first-child { border-top: 0; }
.ab-summary-row dt { font-weight: 700; color: var(--teal); font-size: 15px; }
.ab-summary-row dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.ab-summary-row .ab-edit { background: none; border: 0; color: var(--teal-mid); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; cursor: pointer; padding: 0; font-size: 14px; }
@media (max-width: 560px) {
  .ab-summary-row { grid-template-columns: minmax(0, 1fr) auto; }
  .ab-summary-row dt { grid-column: 1; }
  .ab-summary-row .ab-edit { grid-column: 2; grid-row: 1; }
  .ab-summary-row dd { grid-column: 1 / -1; }
}
.ab-note {
  background: var(--gold-pale); border: 1px solid var(--border); border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0; padding: 14px 18px; color: var(--teal); margin-top: 18px; font-size: 15px;
}
.ab-note strong { font-weight: 700; }

/* Actions */
.ab-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.ab-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 8px; padding: 13px 26px;
  font-weight: 700; font-size: 16px; cursor: pointer; border: 2px solid transparent; text-decoration: none;
}
.ab-btn-primary { background: var(--gold); color: var(--teal); }
.ab-actions .ab-btn-primary { margin-left: auto; }
@media (max-width: 560px) { .ab-btn { padding: 12px 18px; font-size: 15px; } }
.ab-btn-primary:hover { background: var(--gold-light); }
.ab-btn-primary[disabled] { background: #e9e3d3; color: #9aa0a6; cursor: default; }
.ab-btn-ghost { background: var(--white); color: var(--teal); border-color: var(--border); }
.ab-btn-ghost:hover { border-color: var(--gold); }
.ab-spinner { width: 18px; height: 18px; border: 3px solid rgba(39,70,71,.25); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ab-spinner { animation-duration: 2.4s; } }

/* Confirmation */
.ab-done-head { display: flex; gap: 16px; align-items: center; margin-bottom: 20px; }
.ab-done-check { flex-shrink: 0; width: 56px; height: 56px; border-radius: 50%; background: var(--success); color: var(--white); display: grid; place-items: center; }
.ab-done-head h2 { font-size: 28px; }
.ab-ticket { border: 2px solid var(--teal); border-radius: 12px; overflow: hidden; }
.ab-ticket-top { background: var(--teal); color: var(--white); padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: baseline; }
.ab-ticket-top .ab-when { font-family: var(--font-heading); font-size: 22px; font-weight: 700; }
.ab-ticket-top .ab-id { font-size: 14px; color: var(--gold-light); font-weight: 600; font-variant-numeric: tabular-nums; }
.ab-ticket dl { margin: 0; padding: 6px 20px 10px; }
.ab-ticket .ab-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); }
.ab-ticket .ab-row:first-child { border-top: 0; }
.ab-ticket dt { font-weight: 700; color: var(--teal); font-size: 15px; }
.ab-ticket dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .ab-ticket .ab-row { grid-template-columns: 1fr; gap: 0; } }
.ab-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
@media (max-width: 640px) { .ab-two-col { grid-template-columns: 1fr; } }
.ab-box { border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; background: var(--off-white); }
.ab-box h3 { font-size: 18px; margin-bottom: 10px; }
.ab-box ol, .ab-box ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 15px; }
.ab-contact-line { margin-top: 20px; font-size: 15px; }
.ab-contact-line strong { color: var(--teal); white-space: nowrap; }
/* Documents we notarize (below the booking card) */
.ab-docs { max-width: 760px; margin: 48px auto 0; }
.ab-docs-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); background: var(--gold-pale); border: 1px solid var(--border); border-radius: 4px; padding: 4px 12px; margin-bottom: 12px;
}
.ab-docs h2 { font-size: 28px; margin-bottom: 8px; }
.ab-docs-lead { margin-bottom: 22px; max-width: 62ch; }
.ab-docs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; }
@media (max-width: 760px) { .ab-docs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ab-docs-grid { grid-template-columns: 1fr; gap: 10px; } }
.ab-doc-cat { background: var(--white); border: 1px solid var(--border); border-top: 3px solid var(--gold); border-radius: 10px; }
.ab-doc-cat summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 14px 16px; font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: var(--teal);
}
.ab-doc-cat summary::-webkit-details-marker { display: none; }
.ab-doc-cat .ab-toggle { flex-shrink: 0; width: 22px; height: 22px; position: relative; }
.ab-doc-cat .ab-toggle::before, .ab-doc-cat .ab-toggle::after { content: ''; position: absolute; left: 4px; right: 4px; top: 10px; height: 2px; background: var(--gold); border-radius: 2px; }
.ab-doc-cat .ab-toggle::after { transform: rotate(90deg); transition: transform .15s; }
.ab-doc-cat[open] .ab-toggle::after { transform: rotate(0deg); }
.ab-doc-cat ul { margin: 0; padding: 0 16px 16px 34px; display: grid; gap: 6px; font-size: 15px; line-height: 1.5; }
.ab-docs-note {
  margin-top: 18px; background: var(--gold-pale); border: 1px solid var(--border); border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0; padding: 14px 18px; color: var(--teal); font-size: 15px;
}
.ab-docs-note a { color: var(--teal); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .ab-doc-cat .ab-toggle::after { transition: none; } }
.ab-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- production additions ---------- */
.ab-root h4 { font-family: var(--font-body); }
.ab-root ul, .ab-root ol { list-style-position: outside; }
.ab-day.ab-is-full { text-decoration: line-through; color: #c4c7cc; background: transparent; border-color: transparent; }
.ab-loading { display: flex; align-items: center; gap: 10px; padding: 18px; color: var(--slate); }
.ab-alert {
  background: var(--error-pale); border: 1px solid var(--error); border-left: 4px solid var(--error);
  border-radius: 0 10px 10px 0; padding: 14px 18px; color: var(--error); font-weight: 600; margin-top: 18px;
}
.ab-alert[hidden] { display: none; }
.ab-alert a { color: var(--error); }
.ab-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ab-manage { display: inline-block; margin-top: 14px; color: var(--teal); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
.ab-root [hidden] { display: none !important; }
.ab-root .ab-btn:focus-visible, .ab-root .ab-day:focus-visible, .ab-root .ab-slot:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
