/* Cookie banner + settings (cookie-consent.js) and lead form (lead-form.js) */

.ck-banner {
  position: fixed;
  left: 24px;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  max-width: 1100px;
  margin: 0 auto;
  background: #0f2a22;
  color: #eef2f6;
  border: 1px solid #24493b;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  padding: 28px 32px;
  font-family: 'Onest', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  display: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ck-banner.ck-open { display: block; }
.ck-banner * { box-sizing: border-box; }
.ck-row { display: flex; gap: 24px 40px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.ck-text { flex: 1 1 420px; min-width: 0; color: #c2d3ca; }
.ck-text b { display: block; color: #fff; font-size: 20px; margin-bottom: 6px; }
.ck-text a, .ck-option a { color: oklch(0.8 0.13 150); text-decoration: underline; text-underline-offset: 3px; }
.ck-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ck-btn {
  font: inherit;
  font-weight: 600;
  padding: 14px 22px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: transparent;
  color: #eef2f6;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ck-btn:hover { background: #fff; color: #0f2a22; border-color: #fff; }
.ck-btn-primary { background: oklch(0.58 0.15 155); border-color: oklch(0.58 0.15 155); color: #fff; }
.ck-btn-primary:hover { background: oklch(0.52 0.15 155); border-color: oklch(0.52 0.15 155); color: #fff; }
.ck-btn-link { border-color: transparent; padding-left: 8px; padding-right: 8px; text-decoration: underline; text-underline-offset: 4px; font-weight: 500; }
.ck-btn-link:hover { background: transparent; color: oklch(0.8 0.13 150); border-color: transparent; }
.ck-btn:focus-visible, .ck-switch input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }

.ck-settings { display: none; margin-top: 24px; border-top: 1px solid #24493b; }
.ck-banner.ck-settings-open .ck-settings { display: block; }
.ck-banner.ck-settings-open [data-ck="settings"] { display: none; }
.ck-option { display: flex; gap: 24px; align-items: flex-start; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid #24493b; }
.ck-option b { display: block; color: #fff; font-size: 18px; margin-bottom: 4px; }
.ck-option span { color: #c2d3ca; font-size: 16px; }
.ck-switch { position: relative; flex-shrink: 0; width: 52px; height: 30px; margin-top: 2px; }
.ck-switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ck-switch input:disabled { cursor: not-allowed; }
.ck-switch span { position: absolute; inset: 0; background: #35544a; transition: background 0.2s ease; pointer-events: none; }
.ck-switch span::after { content: ''; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; background: #fff; transition: transform 0.2s ease; }
.ck-switch input:checked + span { background: oklch(0.58 0.15 155); }
.ck-switch input:checked + span::after { transform: translateX(22px); }
.ck-switch input:disabled + span { opacity: 0.6; }
.ck-save { display: flex; justify-content: flex-end; padding-top: 20px; }

/* blocked third-party embed (e.g. the map) until the visitor allows it */
.ck-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 32px;
  text-align: center;
  background: #e6ece8;
  color: #3d4753;
  font-size: 17px;
  line-height: 1.55;
}
.ck-placeholder[hidden] { display: none; }
.ck-placeholder b { font-size: 22px; color: #111820; }
.ck-placeholder button { font: inherit; font-weight: 600; padding: 14px 24px; border: 0; background: #0f2a22; color: #fff; cursor: pointer; }
.ck-placeholder button:hover { background: oklch(0.52 0.15 155); }

/* ---------- lead form ---------- */
.lf-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.lf-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lf-wide { grid-column: 1 / -1; }
.lf-field label { font-size: 16px; font-weight: 500; color: #3d4753; }
.lf-field label i { font-style: normal; color: #c0392b; }
.lf-field input, .lf-field textarea {
  font: inherit;
  font-size: 18px;
  padding: 14px 16px;
  border: 1px solid #b9c4bd;
  background: #fff;
  color: #111820;
  width: 100%;
  border-radius: 0;
}
.lf-field textarea { min-height: 140px; resize: vertical; }
.lf-field input:focus, .lf-field textarea:focus { outline: 2px solid oklch(0.58 0.15 155); outline-offset: 0; border-color: oklch(0.58 0.15 155); }
.lf-invalid input, .lf-invalid textarea { border-color: #c0392b; }
.lf-error { display: none; font-size: 15px; color: #c0392b; }
.lf-invalid .lf-error { display: block; }
.lf-check { grid-column: 1 / -1; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 16px; line-height: 1.5; color: #3d4753; }
.lf-check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: oklch(0.52 0.15 155); cursor: pointer; }
.lf-check a { color: oklch(0.45 0.15 155); text-decoration: underline; text-underline-offset: 3px; }
.lf-check .lf-error { grid-column: 2; }
.lf-submit { grid-column: 1 / -1; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.lf-submit button { font: inherit; font-weight: 600; padding: 16px 32px; border: 0; background: oklch(0.58 0.15 155); color: #fff; cursor: pointer; }
.lf-submit button:hover { background: oklch(0.52 0.15 155); }
.lf-note { font-size: 15px; color: #5b6572; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-under { display: flex; justify-content: space-between; gap: 12px; }
.lf-counter { margin-left: auto; font-size: 14px; color: #5b6572; font-variant-numeric: tabular-nums; }
.lf-counter-full { color: #c0392b; font-weight: 600; }
.lf-sending button[type="submit"] { opacity: 0.6; cursor: progress; }
.lf-fail { display: none; grid-column: 1 / -1; background: #fdecea; border: 1px solid #c0392b; padding: 18px 22px; font-size: 17px; line-height: 1.5; }
.lf-fail a { color: #8f2a1f; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lf-failed .lf-fail { display: block; }
.lf-done { display: none; grid-column: 1 / -1; background: #e3f2e8; border: 1px solid oklch(0.58 0.15 155); padding: 18px 22px; font-size: 17px; line-height: 1.5; }
.lf-sent .lf-done { display: block; }

@media (max-width: 700px) {
  .ck-banner { left: 12px; right: 12px; bottom: 12px; padding: 22px 20px; }
  .ck-actions { width: 100%; }
  .ck-btn { flex: 1 1 auto; }
  .lf-form { grid-template-columns: minmax(0, 1fr); }
}
