/* ============================================================
   CONSULT MODAL + WHATSAPP BUTTON + MOBILE ACCORDION + COOKIE BANNER
   Loads after styles.css in layout.
   ============================================================ */

/* ── Consult Modal ─────────────────────────────────────────── */
.cm-root {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  pointer-events: none;
}
.cm-root.open { pointer-events: auto; }

.cm-overlay {
  position: fixed; inset: 0;
  background: rgba(0,20,60,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.cm-root.open .cm-overlay { opacity: 1; }

.cm-panel {
  position: relative; z-index: 1;
  width: 100%; max-width: 640px; max-height: 92dvh;
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: 0 40px 80px -20px rgba(0,39,106,0.4);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(28px) scale(0.97);
  opacity: 0;
  transition: transform 0.38s var(--ease), opacity 0.32s var(--ease);
}
.cm-root.open .cm-panel {
  transform: none;
  opacity: 1;
}

.cm-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 28px 32px 26px;
  background: var(--amber);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  flex: none;
}
.cm-head-copy { flex: 1; }
.cm-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); opacity: 0.7;
}
.cm-kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--navy);
}
.cm-head h3 {
  font-size: clamp(22px,3vw,28px); color: var(--navy); margin-top: 10px;
}
.cm-close {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.32); border: 1px solid rgba(255,255,255,0.25);
  display: grid; place-items: center; cursor: pointer; flex: none;
  transition: background 0.2s, transform 0.2s;
  color: var(--navy);
}
.cm-close:hover { background: rgba(255,255,255,0.55); transform: rotate(90deg); }
.cm-close svg { width: 17px; height: 17px; }

.cm-body {
  padding: 24px 32px 32px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.cm-body .site-form { margin-top: 0; }
.cm-body::-webkit-scrollbar { width: 5px; }
.cm-body::-webkit-scrollbar-track { background: transparent; }
.cm-body::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.cm-body::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }

/* ── Custom service picker ─────────────────────────────────── */
.cm-svc-picker { position: relative; }

.cm-svc-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 14px;
  background: var(--paper, #f9f9f9);
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: var(--ff-text); font-size: 14.5px; font-weight: 400;
  color: var(--ink-soft);
  cursor: pointer; text-align: left;
  transition: border-color 0.18s, background 0.18s;
}
.cm-svc-trigger.has-value { color: var(--navy); }
.cm-svc-trigger:hover,
.cm-svc-picker.open .cm-svc-trigger { border-color: var(--navy); background: #fff; }
.cm-svc-chev { flex-shrink: 0; width: 16px; height: 16px; color: var(--ink-soft); transition: transform 0.2s; }
.cm-svc-picker.open .cm-svc-chev { transform: rotate(180deg); }
.cm-svc-chev svg { width: 16px; height: 16px; }

.cm-svc-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 30;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.cm-svc-search {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper, #f9f9f9);
}
.cm-svc-search-ic { flex-shrink: 0; width: 15px; height: 15px; color: var(--ink-soft); }
.cm-svc-search-ic svg { width: 15px; height: 15px; }
.cm-svc-search input {
  flex: 1; border: none; background: transparent; outline: none;
  font-family: var(--ff-text); font-size: 13.5px; color: var(--navy);
}
.cm-svc-search input::placeholder { color: var(--ink-soft); }
.cm-svc-clear {
  flex-shrink: 0; width: 18px; height: 18px; padding: 0;
  background: none; border: none; cursor: pointer; color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
}
.cm-svc-clear svg { width: 14px; height: 14px; }

.cm-svc-list {
  max-height: 210px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.cm-svc-list::-webkit-scrollbar { width: 4px; }
.cm-svc-list::-webkit-scrollbar-track { background: transparent; }
.cm-svc-list::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.cm-svc-list::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }

.cm-svc-cat {
  padding: 7px 12px 4px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft);
  background: var(--paper, #f9f9f9);
  border-bottom: 1px solid var(--line);
}

.cm-svc-row {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px;
  background: none; border: none; border-bottom: 1px solid var(--line);
  font-family: var(--ff-text); font-size: 13.5px; font-weight: 400; text-align: left;
  color: var(--navy); cursor: pointer;
  transition: background 0.12s, color 0.12s;
}
.cm-svc-row:last-child { border-bottom: none; }
.cm-svc-row:hover { background: var(--blue-tint, #e8f0ff); color: var(--blue, #1a5fc8); }
.cm-svc-row.active { background: var(--blue-tint, #e8f0ff); color: var(--blue, #1a5fc8); font-weight: 600; }
.cm-svc-check { flex-shrink: 0; width: 15px; height: 15px; color: var(--blue, #1a5fc8); }
.cm-svc-check svg { width: 15px; height: 15px; }

.cm-svc-empty {
  padding: 20px 12px; text-align: center;
  font-size: 13px; color: var(--ink-soft);
}

/* ── Time-slot picker ──────────────────────────────────────── */
.cm-timeslots { display: flex; flex-direction: column; gap: 10px; }
.cm-ts-label {
  font-size: 13px; font-weight: 700; color: var(--navy); letter-spacing: 0.01em;
}
.cm-ts-label span { color: var(--ink-soft); font-weight: 500; margin-left: 4px; }
.cm-ts-options {
  display: flex; gap: 8px; flex-wrap: wrap;
}
.cm-ts-btn {
  flex: 1; min-width: 130px;
  padding: 10px 14px;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  font-size: 13.5px; font-weight: 600; color: var(--navy);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.15s;
}
.cm-ts-btn:hover {
  border-color: var(--amber); background: var(--amber-tint);
}
.cm-ts-btn.selected {
  border-color: var(--amber); background: var(--amber);
  color: var(--navy);
  box-shadow: 0 2px 10px -3px rgba(255,166,0,0.45);
}
@media (max-width: 480px) {
  .cm-ts-options { flex-direction: column; }
  .cm-ts-btn { flex: none; width: 100%; text-align: center; }
}

/* success overlay inside panel */
.cm-success {
  display: none; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 32px 48px; gap: 16px;
  flex: 1 1 auto; min-height: 0; overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.cm-success.show { display: flex; }
.cm-success::-webkit-scrollbar { width: 5px; }
.cm-success::-webkit-scrollbar-track { background: transparent; }
.cm-success::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.cm-success .cs-ic {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--blue-tint); color: var(--blue);
  display: grid; place-items: center; flex: none;
}
.cm-success .cs-ic svg { width: 30px; height: 30px; }
.cm-success h3 { font-size: 24px; color: var(--navy); }
.cm-success p { color: var(--ink-soft); font-size: 15.5px; max-width: 36ch; }

/* ── WhatsApp Floating Button ──────────────────────────────── */
.wa-float {
  position: fixed; right: 22px; bottom: 28px; z-index: 8000;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  box-shadow: 0 8px 24px -6px rgba(37,211,102,0.55), 0 2px 8px rgba(0,0,0,0.12);
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.wa-float:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 14px 32px -8px rgba(37,211,102,0.65);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float .wa-tooltip {
  position: absolute; right: calc(100% + 12px);
  background: var(--navy); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: 0.01em;
  padding: 7px 14px; border-radius: 100px; white-space: nowrap;
  pointer-events: none; opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s, transform 0.25s var(--ease);
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: none; }
@media (max-width: 600px) {
  .wa-float { width: 50px; height: 50px; right: 16px; bottom: 20px; }
  .wa-float svg { width: 26px; height: 26px; }
  .wa-float .wa-tooltip { display: none; }
}

/* ── Mobile Nav Accordion ─────────────────────────────────── */
.mob-acc { border-bottom: 1px solid var(--line-dk); }
.mob-acc-trigger {
  width: 100%; background: none; border: none; padding: 14px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--ff-display); font-size: 26px; font-weight: 600;
  color: #fff; cursor: pointer; text-align: left;
  transition: color 0.2s;
}
.mob-acc-trigger:hover { color: var(--amber); }
.mob-acc-trigger .chev {
  width: 20px; height: 20px; flex: none;
  transition: transform 0.3s var(--ease);
  color: rgba(255,255,255,0.5);
}
.mob-acc-trigger.is-open .chev { transform: rotate(180deg); }

.mob-acc-sub {
  display: flex; flex-direction: column; gap: 2px;
  padding: 4px 0 16px 12px;
  overflow: hidden;
}
.mob-acc-sub a {
  font-family: var(--ff-text); font-size: 16px; font-weight: 600;
  color: rgba(255,255,255,0.78);
  padding: 9px 0; border-bottom: none !important;
  transition: color 0.2s, padding-left 0.2s;
}
.mob-acc-sub a:hover { color: var(--amber); padding-left: 6px; }
.mob-acc-sub .mob-acc-all {
  color: var(--amber); font-weight: 700; margin-top: 6px; font-size: 14px;
}

/* ── Cookie Banner ─────────────────────────────────────────── */
.cc-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 7500;
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px -8px rgba(0,39,106,0.12);
  transform: translateY(100%);
  transition: transform 0.45s var(--ease);
}
.cc-bar.visible { transform: translateY(0); }

.cc-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.cc-icon {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--blue-tint); color: var(--blue);
  display: grid; place-items: center; flex: none;
}
.cc-icon svg { width: 22px; height: 22px; }

.cc-copy { flex: 1; min-width: 240px; }
.cc-copy p {
  font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin: 0;
}
.cc-copy a { color: var(--blue); font-weight: 600; text-decoration: underline; }

.cc-actions {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0; flex-wrap: wrap;
}
.cc-actions .btn {
  font-size: 14px; padding: 10px 20px;
}

@media (max-width: 640px) {
  .cc-inner { padding: 16px 20px; gap: 14px; }
  .cc-icon { display: none; }
  .cc-actions { width: 100%; justify-content: flex-end; }
}
