/* Production adapter: consent UI and server form feedback; artifact styles remain unchanged. */
.cookie-modal {
  --font-body: "Neu Prompter", ui-sans-serif, system-ui, sans-serif;
  --navy-deep: #111737;
  --radius-card: 20px;
  --radius-field: 12px;
  --radius-pill: 999px;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(13, 21, 56, 0.62);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  overflow: auto;
  transition: opacity 240ms ease;
  pointer-events: none;
}

.cookie-modal.cb-show {
  opacity: 1;
  pointer-events: auto;
}

.cookie-card {
  position: relative;
  width: min(520px, 100%);
  background: var(--navy);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  box-shadow: 0 28px 70px -20px rgba(13, 21, 56, 0.7);
  transform: translateY(14px) scale(0.98);
  transition: transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-modal.cb-show .cookie-card {
  transform: translateY(0) scale(1);
}

.cb-panel {
  position: relative;
  padding: 48px 30px 28px;
}

.cb-kicker {
  margin: 0 0 10px;
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cb-title {
  margin: 0 0 12px;
  max-width: 420px;
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.2;
  color: var(--white);
}

.cb-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.88rem;
  line-height: 1.55;
}

.cb-legal {
  margin: 10px 0 0;
  font-size: 0.78rem;
}

.cb-legal a {
  color: var(--sky);
  text-decoration: underline;
}

.cb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cb-btn {
  min-height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0 22px;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
  transition: transform 150ms ease, background 150ms ease;
}

.cb-btn:hover {
  transform: translateY(-1px);
}

.cb-accept,
.cb-save {
  background: var(--orange);
  color: var(--navy);
}

.cb-settings,
.cb-back {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.cb-settings:hover,
.cb-back:hover {
  background: rgba(255, 255, 255, 0.16);
}

.cb-link {
  display: inline-flex;
  margin-top: 16px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: underline;
}

.cb-link:hover {
  color: var(--white);
}

.cb-skip-top {
  position: absolute;
  top: 16px;
  right: 24px;
  margin-top: 0;
}

.cb-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-field);
  background: var(--navy-deep);
}

.cb-choice strong {
  display: block;
  color: var(--white);
  font-size: 0.88rem;
  line-height: 1.35;
}

.cb-choice span {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.78rem;
  line-height: 1.45;
}

.cb-switch {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 28px;
}

.cb-switch input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.cb-switch span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.24);
  transition: background 180ms ease;
}

.cb-switch span::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease;
}

.cb-switch input:checked + span {
  background: var(--orange);
}

.cb-switch input:checked + span::after {
  transform: translateX(20px);
}

@media (max-width: 560px) {
  .cookie-modal {
    padding: 16px;
  }

  .cookie-card {
    width: calc(100vw - 32px);
    max-height: calc(100svh - 32px);
    overflow: auto;
  }

  .cb-panel {
    padding: 44px 20px 20px;
  }

  .cb-actions {
    flex-direction: column;
  }

  .cb-btn {
    width: 100%;
  }

  .cb-choice {
    flex-direction: column;
    align-items: flex-start;
  }
}

.cursor { z-index: 10001; }
[data-project-group][aria-invalid="true"] { outline: 2px solid #ffb8ab; outline-offset: 6px; }
.form-status:empty { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.cb-switch input:focus-visible + span { outline:2px solid var(--white); outline-offset:2px; }
.form-status.err { color:#ffb8ab; }
.form-status.ok { color:#c4e6e4; }
.form [aria-busy="true"] { opacity:.7; }
.cf-turnstile { max-width:100%; overflow:hidden; }
@media(max-width:374px) { .cf-turnstile { transform:scale(.85); transform-origin:left top; margin-bottom:-10px; } }
