@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap");


/* ═══════════════════════════════════════════
   BOOK APPOINTMENT  —  Redesigned UI
   Reference: Create Your Account form style
═══════════════════════════════════════════ */
.ap-page {
  --ap-primary: #1a3a5c;
  --ap-primary-hover: #14304e;
  --ap-primary-soft: #eef4fb;
  --ap-primary-border: #c8d9ec;
  --ap-ink: #111827;
  --ap-muted: #6b7280;
  --ap-border: #d1d5db;
  --ap-bg-input: #f9fafb;
  --ap-radius-sm: 6px;
  --ap-radius-md: 8px;
  --ap-radius-lg: 12px;
  --ap-radius-xl: 16px;
  --ap-error-bg: #fef2f2;
  --ap-error-border: #fecaca;
  --ap-error-text: #b91c1c;
  --ap-font: "Inter", system-ui, -apple-system, sans-serif;

  min-height: 100vh;
  background: #f3f6fb;
  padding: 100px 20px 80px;
  font-family: var(--font-secondary);
  -webkit-font-smoothing: antialiased;
}
/* ── Card ─────────────────────────────── */
.ap-card {
  max-width: 1100px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-xl);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}
/* ── Page Title (above card) ─────────── */
.ap-page-title {
  max-width: 560px;
  margin: 70px auto 24px;
}
.ap-page-title h1 {
  font-size: 26px;
  font-weight: 700;
  color: var(--ap-ink);
  margin: 0 0 4px;
  letter-spacing: -0.3px;
}
.ap-page-title p {
  font-size: 14px;
  color: var(--ap-muted);
  margin: 0;
}
/* ── Hero ─────────────────────────────── */
.ap-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 28px;
  background: #fff;
  border-bottom: 1px solid var(--ap-border);
}
.ap-hero-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--ap-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  background: var(--ap-primary);
}
.ap-hero-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ap-primary);
  margin-bottom: 3px;
}
.ap-hero-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--ap-ink);
  margin: 0 0 3px;
}
.ap-hero-spec {
  font-size: 13px;
  color: var(--ap-muted);
  font-weight: 400;
}
/* ── Progress bar ─────────────────────── */
.ap-progress {
  display: flex;
  align-items: center;
  padding: 14px 28px;
  border-bottom: 1px solid var(--ap-border);
  background: #fafbfc;
}
.ap-progress-step {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ap-muted);
  flex-shrink: 0;
}
.ap-progress-step--active {
  color: var(--ap-ink);
  font-weight: 600;
}
.ap-progress-step--done {
  color: var(--ap-primary);
}
.ap-progress-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--ap-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  color: var(--ap-muted);
  transition: all 0.2s;
}
.ap-progress-step--active .ap-progress-dot {
  border-color: var(--ap-primary);
  background: var(--ap-primary);
  color: #fff;
}
.ap-progress-step--done .ap-progress-dot {
  border-color: var(--ap-primary);
  background: var(--ap-primary);
  color: #fff;
}
.ap-progress-line {
  flex: 1;
  height: 1.5px;
  background: var(--ap-border);
  margin: 0 8px;
  min-width: 16px;
  transition: background 0.3s;
}
.ap-progress-line--done {
  background: var(--ap-primary);
}
/* ── Form wrapper ──────────────────────── */
.ap-form {
  padding: 28px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
/* ── Section label (like "Before You Continue") */
.ap-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ap-muted);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ap-border);
}
/* ── Field group (label + input) ─────── */
.ap-field {
  margin-bottom: 18px;
}
.ap-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
}
.ap-field-label .ap-required {
  color: #e11d48;
  margin-left: 2px;
}
/* ── Input / Textarea / Select ───────── */
.ap-date-input,
.ap-textarea,
.ap-select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-md);
  font-size: 14px;
  font-family: var(--font-secondary);
  color: var(--ap-ink);
  background: var(--ap-bg-input);
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    background 0.15s;
  box-sizing: border-box;
  -webkit-appearance: none;
  appearance: none;
}
.ap-date-input:focus,
.ap-textarea:focus,
.ap-select:focus {
  border-color: var(--ap-primary);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
  background: #fff;
}
.ap-date-input:hover:not(:focus),
.ap-textarea:hover:not(:focus),
.ap-select:hover:not(:focus) {
  border-color: #9ca3af;
}
.ap-date-input--err,
.ap-date-input--err:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.08) !important;
}
.ap-textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 90px;
}
/* ── Step wrappers ───────────────────── */
.ap-step {
  margin-bottom: 24px;
}
.ap-step:last-of-type {
  margin-bottom: 0;
}
.ap-step-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.ap-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ap-primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.ap-step-num--inactive {
  background: #e5e7eb;
  color: #9ca3af;
}
.ap-step--locked {
  opacity: 0.5;
  pointer-events: none;
}
.ap-step-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ap-ink);
  line-height: 1.4;
}
.ap-step-meta {
  font-size: 12px;
  color: var(--ap-muted);
  margin-top: 2px;
}
.ap-char-count {
  font-size: 11px;
  color: var(--ap-muted);
  margin-top: 4px;
}
/* ── Time Slots ───────────────────────── */
.ap-slots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}
.ap-slot {
  padding: 9px 4px;
  border-radius: var(--ap-radius-md);
  border: 1px solid var(--ap-border);
  background: #fff;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  text-align: center;
  transition:
    border-color 0.12s,
    background 0.12s,
    color 0.12s,
    transform 0.1s;
  font-family: var(--font-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  line-height: 1.3;
}
.ap-slot:hover:not(:disabled) {
  border-color: var(--ap-primary);
  background: var(--ap-primary-soft);
  color: var(--ap-primary);
  transform: translateY(-1px);
}
.ap-slot--selected {
  background: var(--ap-primary) !important;
  border-color: var(--ap-primary) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(26, 58, 92, 0.25);
}
.ap-slot--booked,
.ap-slot--past {
  background: var(--ap-bg-input);
  border-color: #e5e7eb;
  color: #d1d5db;
  cursor: not-allowed;
  transform: none !important;
}
.ap-slot-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.03em;
  opacity: 0.8;
}
/* Legend */
.ap-slots-legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.ap-legend-item {
  font-size: 11px;
  font-weight: 500;
  color: var(--ap-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.ap-legend-item::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid;
  display: inline-block;
  flex-shrink: 0;
}
.ap-legend--avail::before {
  border-color: var(--ap-border);
  background: #fff;
}
.ap-legend--sel::before {
  border-color: var(--ap-primary);
  background: var(--ap-primary);
}
.ap-legend--na::before {
  border-color: #e5e7eb;
  background: var(--ap-bg-input);
}
/* ── Upload Zone ──────────────────────── */
.ap-upload-zone {
  border: 1.5px dashed var(--ap-border);
  border-radius: var(--ap-radius-md);
  padding: 20px 16px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  background: var(--ap-bg-input);
}
.ap-upload-zone:hover,
.ap-upload-zone--over {
  border-color: var(--ap-primary);
  background: var(--ap-primary-soft);
}
.ap-upload-zone--busy {
  cursor: default;
  opacity: 0.75;
}
.ap-upload-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
}
.ap-upload-text {
  font-size: 13px;
  color: #374151;
  margin: 0 0 3px;
}
.ap-upload-link {
  color: var(--ap-primary);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.ap-upload-sub {
  font-size: 11px;
  color: #9ca3af;
  margin: 0;
}
.ap-upload-busy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ap-muted);
  font-size: 13px;
}
/* ── Spinner ──────────────────────────── */
.ap-spinner {
  display: inline-block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(26, 58, 92, 0.15);
  border-top-color: var(--ap-primary);
  border-radius: 50%;
  animation: ap-spin 0.65s linear infinite;
  flex-shrink: 0;
}
.ap-spinner--white {
  border-color: rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
}
@keyframes ap-spin {
  to {
    transform: rotate(360deg);
  }
}
/* ── File list ────────────────────────── */
.ap-report-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 9px;
}
.ap-report-item {
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--ap-bg-input);
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-md);
  padding: 9px 12px;
}
.ap-report-icon {
  font-size: 16px;
  flex-shrink: 0;
}
.ap-report-meta {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.ap-report-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ap-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ap-report-size {
  font-size: 11px;
  color: #9ca3af;
}
.ap-report-remove {
  background: none;
  border: none;
  font-size: 17px;
  line-height: 1;
  color: #9ca3af;
  cursor: pointer;
  padding: 0 2px;
  flex-shrink: 0;
  transition: color 0.12s;
}
.ap-report-remove:hover {
  color: #dc2626;
}
/* ── Error ────────────────────────────── */
.ap-error {
  color: var(--ap-error-text);
  font-size: 13px;
  margin: 8px 0 0;
  padding: 9px 12px;
  background: var(--ap-error-bg);
  border: 1px solid var(--ap-error-border);
  border-radius: var(--ap-radius-md);
}
/* ── Divider ──────────────────────────── */
.ap-divider {
  height: 1px;
  background: var(--ap-border);
  margin: 20px 0;
}
/* ── Checkbox row (consent style) ────── */
.ap-consent-box {
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-md);
  background: #fafbfc;
  overflow: hidden;
  margin-bottom: 16px;
}
.ap-consent-header {
  padding: 10px 14px;
  background: #f0f4f9;
  border-bottom: 1px solid var(--ap-border);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ap-muted);
}
.ap-consent-body {
  padding: 12px 14px;
  font-size: 12.5px;
  color: #4b5563;
  line-height: 1.65;
  max-height: 100px;
  overflow-y: auto;
}
.ap-checkbox-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}
.ap-checkbox-row:last-child {
  border-bottom: none;
}
.ap-checkbox-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--ap-primary);
  cursor: pointer;
  flex-shrink: 0;
}
.ap-checkbox-label {
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  line-height: 1.4;
}
/* ── Submit Button ────────────────────── */
.ap-submit {
  width: 100%;
  padding: 13px 20px;
  border: none;
  border-radius: var(--ap-radius-md);
  background: var(--ap-primary);
  color: #fff;
  font-family: var(--font-secondary);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s,
    box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.01em;
  margin-top: 24px;
}
.ap-submit:hover:not(:disabled) {
  background: var(--ap-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(26, 58, 92, 0.2);
}
.ap-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: none;
}
.ap-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.ap-submit-helper {
  text-align: center;
  font-size: 12px;
  color: var(--ap-muted);
  margin-top: 10px;
}
.ap-submit-helper a {
  color: var(--ap-primary);
  font-weight: 600;
  text-decoration: none;
}
.ap-submit-helper a:hover {
  text-decoration: underline;
}
/* ── Hero fee badge ───────────────────── */
.ap-hero-fee {
  margin-left: auto;
  text-align: right;
  flex-shrink: 0;
}
.ap-hero-fee-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ap-muted);
  margin-bottom: 2px;
}
.ap-hero-fee-amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--ap-primary);
}
/* ── Success Screen ───────────────────── */
.ap-success {
  padding: 44px 28px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.ap-success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1.5px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.ap-success-icon svg {
  width: 26px;
  height: 26px;
  stroke: #059669;
}
.ap-success-title {
  font-size: 21px;
  font-weight: 700;
  color: var(--ap-ink);
  margin: 0 0 7px;
}
.ap-success-sub {
  font-size: 13px;
  color: var(--ap-muted);
  margin: 0 0 24px;
  max-width: 340px;
  line-height: 1.6;
}
.ap-success-details {
  width: 100%;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
  text-align: left;
}
.ap-success-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  gap: 12px;
}
.ap-success-row:last-child {
  border-bottom: none;
}
.ap-success-row--col {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.ap-success-key {
  color: var(--ap-muted);
  font-size: 12px;
  font-weight: 500;
}
.ap-success-val {
  font-weight: 600;
  color: var(--ap-ink);
  text-align: right;
}
/* Badge */
.ap-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.ap-badge--pending {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fcd34d;
}
/* Compact report chips in success */
.ap-report-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.ap-report-chip-sm {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  background: var(--ap-primary-soft);
  color: var(--ap-primary);
  border: 1px solid var(--ap-primary-border);
  border-radius: 20px;
  padding: 2px 9px;
}
/* Back / outline button */
.ap-btn-outline {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--ap-radius-md);
  border: 1px solid var(--ap-border);
  background: transparent;
  color: #374151;
  font-family: var(--font-secondary);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
  cursor: pointer;
}
.ap-btn-outline:hover {
  border-color: var(--ap-primary);
  background: var(--ap-primary-soft);
  color: var(--ap-primary);
}
/* ── Confirming ─────────────────────── */
.ap-confirming {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 72px 32px;
  gap: 14px;
  color: var(--ap-muted);
  font-size: 14px;
}
.ap-spinner--lg {
  width: 32px;
  height: 32px;
  border-width: 3px;
}
/* ── Payment Stage ────────────────────── */
.ap-pay-root {
  padding: 24px 28px 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.ap-pay-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 600;
  color: var(--ap-muted);
  cursor: pointer;
  padding: 0;
  transition: color 0.12s;
}
.ap-pay-back:hover {
  color: var(--ap-ink);
}
/* Summary card */
.ap-pay-summary {
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  overflow: hidden;
}
.ap-pay-summary-title {
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ap-muted);
  background: var(--ap-bg-input);
  border-bottom: 1px solid var(--ap-border);
}
.ap-pay-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 13px;
  gap: 12px;
}
.ap-pay-summary-row:last-child {
  border-bottom: none;
}
.ap-pay-summary-row span {
  color: var(--ap-muted);
}
.ap-pay-summary-row strong {
  color: var(--ap-ink);
  text-align: right;
}
.ap-pay-summary-row--fee {
  background: var(--ap-primary-soft);
}
.ap-pay-fee-amount {
  font-size: 17px;
  font-weight: 800;
  color: var(--ap-primary) !important;
}
/* Payment form */
.ap-pay-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ap-pay-element-wrap {
  min-height: 110px;
}
.ap-pay-element-loading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 0;
  color: var(--ap-muted);
  font-size: 13px;
  margin-top: -8px;
}
/* Security badge */
.ap-pay-security {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 12px;
  color: var(--ap-muted);
}
/* Payment method selector */
.ap-pay-method-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ap-muted);
  margin-bottom: 9px;
}
.ap-pay-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ap-pay-method-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 16px 12px;
  border: 1.5px solid var(--ap-border);
  border-radius: var(--ap-radius-lg);
  background: #fff;
  cursor: pointer;
  font-family: var(--font-secondary);
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  transition:
    border-color 0.15s,
    background 0.15s,
    box-shadow 0.15s,
    transform 0.1s;
  min-height: 80px;
  position: relative;
}
.ap-pay-method-btn:hover:not(:disabled) {
  border-color: var(--ap-primary);
  background: var(--ap-primary-soft);
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(26, 58, 92, 0.1);
}
.ap-pay-method-btn--active {
  border-color: var(--ap-primary) !important;
  background: var(--ap-primary-soft) !important;
  color: var(--ap-ink);
  box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}
.ap-pay-method-btn--active::after {
  content: "✓";
  position: absolute;
  top: 7px;
  right: 9px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--ap-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ap-pay-method-btn--loading {
  opacity: 0.6;
  pointer-events: none;
}
.ap-pay-method-btn:disabled:not(.ap-pay-method-btn--loading) {
  opacity: 0.35;
  cursor: not-allowed;
}
.ap-pay-method-icon {
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
}
.ap-pay-method-sub {
  font-size: 11px;
  font-weight: 500;
  color: #9ca3af;
  margin-top: -2px;
}
/* PayPal */
.ap-paypal-wrap {
  min-height: 56px;
}
.ap-paypal-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 28px 0;
  color: var(--ap-muted);
  font-size: 13px;
}
/* Success extra */
.ap-success-val--green {
  color: #059669;
}
/* Slots loading */
.ap-slots-loading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 0;
  color: var(--ap-muted);
  font-size: 13px;
}
/* ── Consent Block ────────────────────── */
.ap-consent-wrap {
  margin-top: 20px;
  border: 1px solid var(--ap-border);
  border-radius: var(--ap-radius-md);
  overflow: hidden;
  background: #fff;
}
.ap-consent-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--ap-ink);
  padding: 10px 14px 8px;
  border-bottom: 1px solid var(--ap-border);
  background: #fafbfc;
  margin: 0;
}
.ap-consent-scroll {
  max-height: 108px;
  overflow-y: auto;
  padding: 10px 14px;
  background: #f9fafb;
  border-bottom: 1px solid var(--ap-border);
  scrollbar-width: thin;
  scrollbar-color: #d1d5db transparent;
}
.ap-consent-scroll::-webkit-scrollbar {
  width: 5px;
}
.ap-consent-scroll::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}
.ap-consent-text {
  font-size: 12.5px;
  color: #374151;
  line-height: 1.65;
  margin: 0;
}
.ap-consent-text strong {
  font-weight: 700;
  color: var(--ap-ink);
}
.ap-consent-checks {
  padding: 4px 14px 8px;
}
.ap-consent-link {
  color: #2563eb;
  text-decoration: None;
}
.ap-consent-link:hover {
  color: #1d4ed8;
}
.ap-consent-link:visited {
  color: #2563eb;
}
.ap-consent-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  transition: background 0.1s;
}
.ap-consent-row:last-child {
  border-bottom: none;
}
.ap-consent-row:hover .ap-consent-label {
  color: var(--ap-ink);
}
.ap-consent-checkbox {
  width: 15px;
  height: 15px;
  accent-color: var(--ap-primary);
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 3px;
}
.ap-consent-label {
  font-size: 13px;
  color: #374151;
  cursor: pointer;
  line-height: 1.4;
  user-select: none;
  transition: color 0.1s;
}
/* ── Responsive ───────────────────────── */
@media (max-width: 540px) {
  .ap-page {
    padding: 85px 14px 60px;
  }
  .ap-hero {
    padding: 16px 18px;
    flex-wrap: wrap;
  }
  .ap-hero-fee {
    margin-left: 0;
    width: 100%;
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 6px;
  }
  .ap-hero-fee-label {
    margin: 0;
  }
  .ap-progress {
    padding: 11px 18px;
  }
  .ap-form {
    padding: 20px 18px 26px;
  }
  .ap-pay-root {
    padding: 18px;
  }
  .ap-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .ap-success {
    padding: 32px 18px 28px;
  }
}
@media (max-width: 380px) {
  .ap-slots-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* ── Consent Modal ──────────────────────── */
.ap-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  backdrop-filter: blur(2px);
  animation: ap-fade-in 0.18s ease;
}
@keyframes ap-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.ap-modal {
  background: #fff;
  border-radius: var(--ap-radius-xl);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.14),
    0 2px 8px rgba(0, 0, 0, 0.08);
  width: 100%;
  max-width: 1100px;
  display: flex;
  flex-direction: column;
  animation: ap-slide-up 0.2s ease;
  overflow: hidden;
}
@keyframes ap-slide-up {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.ap-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ap-border);
  background: #fafbfc;
}
.ap-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ap-ink);
}
.ap-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--ap-muted);
  cursor: pointer;
  padding: 0 4px;
  border-radius: 4px;
  transition:
    color 0.12s,
    background 0.12s;
}
.ap-modal-close:hover {
  color: var(--ap-ink);
  background: #f3f4f6;
}
.ap-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
}
.ap-modal-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 20px;
  border-top: 1px solid var(--ap-border);
  background: #fafbfc;
}
.ap-modal-footer .ap-btn-outline {
  width: auto;
  padding: 11px 18px;
  font-size: 13px;
  flex-shrink: 0;
}
@media (max-width: 540px) {
  .ap-modal {
    max-width: 100%;
    border-radius: var(--ap-radius-lg);
  }
  .ap-modal-footer {
    flex-direction: column-reverse;
  }
  .ap-modal-footer .ap-btn-outline {
    width: 100%;
  }
}
