/* ============================================================
   CICA ELIGIBILITY — checklist gate (unique to this page)
   Not calculator dial / not legal SonarGrid
   ============================================================ */

.ce-page {
  --ce-navy: #0b2147;
  --ce-sky: #3d7ea6;
  --ce-amber: #e8913a;
  --ce-ink: #1a2744;
  --ce-mute: #536274;
  --ce-shell: 1320px;
  --ce-gutter: clamp(20px, 5vw, 64px);
  background: #fff;
  color: var(--ce-ink);
  overflow-x: clip;
}

.ce-shell {
  width: 100%;
  max-width: var(--ce-shell);
  margin-inline: auto;
  padding-inline: var(--ce-gutter);
}

@keyframes ce-check-pop {
  0% { opacity: 0; transform: scale(0.4) rotate(-12deg); }
  70% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}

@keyframes ce-stamp-in {
  from { opacity: 0; transform: translateY(18px) rotate(-2deg); }
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

@keyframes ce-sheet-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes ce-tick-draw {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

@keyframes ce-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ---- Hero: checklist cascade ---- */

.ce-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(72px, 10vw, 120px) clamp(48px, 7vw, 72px);
  background:
    radial-gradient(40% 55% at 12% 20%, rgba(61, 126, 166, 0.14) 0%, transparent 55%),
    radial-gradient(36% 50% at 92% 75%, rgba(232, 145, 58, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, #eef4f9 0%, #ffffff 100%);
}

.ce-hero__marks {
  position: absolute;
  right: clamp(20px, 6vw, 80px);
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  gap: 14px;
  pointer-events: none;
  z-index: 0;
}

.ce-hero__mark {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1.5px solid rgba(11, 33, 71, 0.12);
  box-shadow: 0 10px 24px rgba(11, 33, 71, 0.1);
  animation: ce-check-pop 0.55s ease both, ce-float 5s ease-in-out infinite;
}

.ce-hero__mark:nth-child(1) { animation-delay: 0ms, 0s; margin-left: 28px; }
.ce-hero__mark:nth-child(2) { animation-delay: 120ms, 0.4s; margin-left: 0; }
.ce-hero__mark:nth-child(3) { animation-delay: 240ms, 0.8s; margin-left: 36px; }
.ce-hero__mark:nth-child(4) { animation-delay: 360ms, 1.2s; margin-left: 8px; }

.ce-hero__mark svg {
  width: 22px;
  height: 22px;
}

.ce-hero__mark--amber { border-color: rgba(232, 145, 58, 0.45); }
.ce-hero__mark--sky { border-color: rgba(61, 126, 166, 0.45); }
.ce-hero__mark--navy { border-color: rgba(11, 33, 71, 0.35); }

.ce-hero__mark path {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 24;
  stroke-dashoffset: 0;
  animation: ce-tick-draw 0.6s ease both;
}

.ce-hero__mark--amber path { stroke: #e8913a; animation-delay: 0.15s; }
.ce-hero__mark--sky path { stroke: #3d7ea6; animation-delay: 0.28s; }
.ce-hero__mark--navy path { stroke: #0b2147; animation-delay: 0.4s; }

@media (max-width: 899px) {
  .ce-hero__marks {
    opacity: 0.35;
    right: 8px;
    transform: translateY(-50%) scale(0.85);
  }
}

.ce-hero__content {
  position: relative;
  z-index: 1;
  max-width: 620px;
}

.ce-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  font-size: 14px;
  color: var(--ce-mute);
}

.ce-breadcrumb a {
  color: var(--ce-navy) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.ce-breadcrumb a:hover {
  color: var(--ce-amber) !important;
}

.ce-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ce-sky);
}

.ce-hero__eyebrow::before {
  content: '';
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid var(--ce-amber);
  background:
    linear-gradient(135deg, transparent 42%, var(--ce-navy) 42%, var(--ce-navy) 58%, transparent 58%);
}

.ce-hero__title {
  margin: 0 0 16px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: clamp(36px, 5.5vw, 58px);
  line-height: 1.08;
  letter-spacing: -1px;
  color: var(--ce-navy);
}

.ce-accent {
  color: var(--ce-amber);
}

.ce-hero__lead {
  margin: 0;
  font-size: 17px;
  line-height: 1.7;
  color: var(--ce-mute);
}

/* ---- Criteria stamps strip ---- */

.ce-criteria {
  padding-block: clamp(24px, 4vw, 36px);
  background: #fff;
  border-bottom: 1px solid rgba(11, 33, 71, 0.08);
}

.ce-criteria__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 768px) {
  .ce-criteria__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

.ce-stamp {
  padding: 16px 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, #f4f8fc 0%, #fff 100%);
  border: 1px solid rgba(11, 33, 71, 0.1);
  animation: ce-stamp-in 0.55s ease both;
}

.ce-stamp:nth-child(1) { animation-delay: 40ms; border-top: 3px solid #e8913a; }
.ce-stamp:nth-child(2) { animation-delay: 100ms; border-top: 3px solid #3d7ea6; }
.ce-stamp:nth-child(3) { animation-delay: 160ms; border-top: 3px solid #0b2147; }
.ce-stamp:nth-child(4) { animation-delay: 220ms; border-top: 3px solid #e8913a; }

.ce-stamp__num {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ce-amber);
  margin-bottom: 6px;
}

.ce-stamp strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--ce-navy);
  margin-bottom: 4px;
}

.ce-stamp span {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ce-mute);
}

/* ---- Assessment sheet ---- */

.ce-sheet {
  position: relative;
  padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 100px);
  background: linear-gradient(180deg, #eef3f8 0%, #f7f4ed 100%);
}

.ce-sheet__layout {
  display: grid;
  gap: 24px;
}


.ce-dossier {
  border-radius: 24px;
  background: #fff;
  border: 1px solid rgba(11, 33, 71, 0.12);
  box-shadow: 0 24px 56px rgba(26, 39, 68, 0.1);
  overflow: hidden;
  animation: ce-sheet-in 0.7s ease both;
}

.ce-dossier__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
  background: linear-gradient(120deg, #0b2147 0%, #123a5c 70%, #3d7ea6 140%);
  color: #fff;
}

.ce-dossier__head p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-width: 48ch;
}

.ce-dossier__info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ce-dossier__info:hover,
.ce-dossier__info:focus-visible {
  background: #e8913a;
  border-color: #e8913a;
  color: #0b2147 !important;
  transform: translateY(-1px);
}

.ce-dossier__body {
  padding: clamp(22px, 3vw, 36px);
}

.ce-chapter {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(11, 33, 71, 0.08);
  animation: ce-stamp-in 0.5s ease both;
}

.ce-chapter:last-of-type {
  border-bottom: none;
  margin-bottom: 8px;
  padding-bottom: 8px;
}

.ce-chapter__title {
  margin: 0 0 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--ce-navy);
}

.ce-field-grid {
  display: grid;
  gap: 16px 18px;
}

@media (min-width: 700px) {
  .ce-field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.ce-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ce-field--full {
  grid-column: 1 / -1;
}

.ce-label {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ce-navy);
}

.ce-req {
  color: #c0392b;
}

.ce-input,
.ce-page .form-control,
.ce-page select.form-control {
  width: 100%;
  border: 1.5px solid rgba(11, 33, 71, 0.14);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ce-ink);
  background: #fff;
  min-height: 50px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
  -webkit-appearance: none;
}

.ce-page select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230b2147' d='M6 8.825L1.175 4 2.238 2.938 6 6.7 9.763 2.938 10.825 4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.ce-input:focus,
.ce-page .form-control:focus,
.ce-page select.form-control:focus {
  outline: none;
  border-color: #3d7ea6;
  box-shadow: 0 0 0 3px rgba(61, 126, 166, 0.18);
}

.ce-error {
  color: #c0392b;
  font-size: 0.85rem;
  margin-top: 2px;
}

.ce-dob {
  display: flex;
  gap: 12px;
  width: 100%;
}

.ce-dob select {
  flex: 1;
}

.ce-dob select[name="crime_day"] { flex: 0 0 25%; }
.ce-dob select[name="crime_month"] { flex: 0 0 40%; }
.ce-dob select[name="crime_year"] { flex: 0 0 30%; }

@media (max-width: 576px) {
  .ce-dob {
    flex-direction: column;
    gap: 10px;
  }

  .ce-dob select[name="crime_day"],
  .ce-dob select[name="crime_month"],
  .ce-dob select[name="crime_year"] {
    flex: 1 1 auto;
    width: 100%;
  }
}

/* Choice chips (Yes/No) */
.ce-choice {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ce-choice label {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 110px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1.5px solid rgba(11, 33, 71, 0.14);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  color: var(--ce-navy);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ce-choice label:hover {
  border-color: #3d7ea6;
  transform: translateY(-1px);
}

.ce-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ce-choice__dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(11, 33, 71, 0.25);
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.ce-choice input:checked + .ce-choice__dot {
  border-color: #e8913a;
  background: #e8913a;
  box-shadow: inset 0 0 0 3px #fff;
}

.ce-choice label:has(input:checked) {
  border-color: #e8913a;
  background: rgba(232, 145, 58, 0.08);
  box-shadow: 0 8px 20px rgba(232, 145, 58, 0.12);
}

.ce-special {
  margin-top: 16px;
}

/* Consent */
.ce-consent-list {
  margin: 0 0 18px;
  padding-left: 1.15rem;
  color: var(--ce-mute);
}

.ce-consent-list li {
  margin-bottom: 10px;
  font-size: 14.5px;
  line-height: 1.6;
}

.ce-check {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px solid rgba(11, 33, 71, 0.12);
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.ce-check:hover {
  border-color: #3d7ea6;
}

.ce-check input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ce-check__box {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid rgba(11, 33, 71, 0.28);
  background: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.ce-check input:checked + .ce-check__box {
  background: #e8913a;
  border-color: #e8913a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230b2147' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5L6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

.ce-check label,
.ce-check__text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ce-ink);
}

.ce-check:has(input:checked) {
  border-color: rgba(232, 145, 58, 0.5);
  background: rgba(232, 145, 58, 0.08);
}

.ce-submit-wrap {
  margin-top: 8px;
  padding-top: 8px;
  text-align: center;
}

.ce-privacy {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--ce-mute);
}

.ce-privacy a,
.ce-page .privacy-policy-link,
.ce-consent-list a {
  color: var(--ce-sky) !important;
  font-weight: 600;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}

.ce-privacy a:hover,
.ce-page .privacy-policy-link:hover {
  color: var(--ce-amber) !important;
}

.ce-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 200px;
  padding: 14px 28px;
  border: none;
  border-radius: 14px;
  background: #0b2147;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 32px rgba(11, 33, 71, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.ce-submit:hover,
.ce-submit:focus-visible {
  background: #e8913a;
  color: #0b2147;
  transform: translateY(-2px);
}

.ce-spinner {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  border: 3px solid rgba(11, 33, 71, 0.12);
  border-top-color: #e8913a;
  border-radius: 50%;
  animation: ce-spin 0.85s linear infinite;
}

@keyframes ce-spin {
  to { transform: rotate(360deg); }
}

.ce-support {
  margin-top: 22px;
  font-size: 14px;
  color: var(--ce-mute);
  line-height: 1.6;
}

.ce-support a {
  color: var(--ce-sky) !important;
  font-weight: 600;
}

.ce-support a:hover {
  color: var(--ce-amber) !important;
}

.ce-alert-box {
  color: #c0392b;
  font-weight: 600;
  margin-bottom: 15px;
  text-align: left;
}

.ce-alert-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
  font-weight: 500;
}

/* Side tip card */
.ce-aside {
  display: none;
}

@media (min-width: 1100px) {
  .ce-aside {
    display: block;
    position: sticky;
    top: 100px;
  }
}

.ce-aside__card {
  padding: 22px 20px;
  border-radius: 20px;
  background: linear-gradient(160deg, #0b2147 0%, #123a5c 100%);
  color: #fff;
  box-shadow: 0 18px 40px rgba(11, 33, 71, 0.2);
  animation: ce-stamp-in 0.65s ease both;
}

.ce-aside__card h3 {
  margin: 0 0 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.ce-aside__card p {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.ce-aside__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ce-aside__list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ce-aside__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #e8913a;
  background:
    linear-gradient(#e8913a, #e8913a) center / 8px 2px no-repeat,
    linear-gradient(#e8913a, #e8913a) center / 2px 8px no-repeat;
  background-color: transparent;
  /* checkmark via box */
  box-shadow: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23e8913a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5L6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
  background-size: 10px;
  background-repeat: no-repeat;
  background-position: center;
  border: 1.5px solid rgba(232, 145, 58, 0.5);
}

/* Modal */
.ce-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(7, 22, 47, 0.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1040;
}

.ce-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.ce-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%) scale(0.96);
  display: flex;
  flex-direction: column;
  width: min(560px, calc(100% - 32px));
  max-height: min(80vh, 640px);
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 28px 64px rgba(11, 33, 71, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  z-index: 1050;
}

.ce-modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.ce-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-shrink: 0;
  padding: 18px 20px 18px 22px;
  border-radius: 20px 20px 0 0;
  background: linear-gradient(120deg, #0b2147, #123a5c);
  color: #fff;
}

/* Global h2 theme color must not bleed into the dark header bar. */
.ce-modal__header h2,
.ce-modal__header #ce-modal-title {
  flex: 1;
  min-width: 0;
  margin: 0 !important;
  color: #fff !important;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(16px, 2.4vw, 18px) !important;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.ce-modal__close {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.ce-modal__close:hover {
  background: #e8913a;
  color: #0b2147;
}

.ce-modal__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 22px;
}

.ce-modal__body ul {
  margin: 0;
  padding-left: 1.15rem;
}

.ce-modal__body li {
  margin-bottom: 12px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ce-mute);
}

.ce-modal__body strong {
  color: var(--ce-navy);
}

@media (prefers-reduced-motion: reduce) {
  .ce-hero__mark,
  .ce-hero__mark path,
  .ce-stamp,
  .ce-dossier,
  .ce-chapter,
  .ce-aside__card,
  .ce-spinner {
    animation: none !important;
  }
}
