/* ============================================================
   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);
  overflow-y: auto;
  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: 30px 32px 0;
}
.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(--blue);
}
.cm-kicker::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber);
}
.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: var(--paper); border: 1px solid var(--line);
  display: grid; place-items: center; cursor: pointer; flex: none;
  transition: background 0.2s, transform 0.2s;
  color: var(--navy);
}
.cm-close:hover { background: var(--paper-2); transform: rotate(90deg); }
.cm-close svg { width: 17px; height: 17px; }

.cm-body { padding: 24px 32px 32px; }
.cm-body .site-form { margin-top: 0; }

/* 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;
}
.cm-success.show { display: flex; }
.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; }
}
