/* ==========================================================================
   Child web app (child.ameeneg.com) — Figma "تجربة الطفل" rows.
   Dark-header screens reuse ameen-agreement.css + ameen-journey.css;
   this file adds the child-only pieces and the navy "brand" screens.
   ========================================================================== */

:root {
  --ch-brand: #1B294B;
  --ch-brand-deep: #14213D;
  --ch-warm: #F68B24;
  --ch-red: #DB3338;
  --ch-red-bg: #FFF0F0;
  --ch-sky: #E8F2FF;
  --ch-mint: #E6FAF0;
  --ch-cream: #FFF2E0;
  --ch-ink: #0D1A2B;
  --ch-text: #202F50;
  --ch-slate: #617082;
  --ch-line: #E1E7F0;
}

.ameen-child-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 8px;
}

.ameen-child-btn--red {
  background: var(--ch-red);
  color: var(--ameen-app-white);
  box-shadow: 0 4px 14px var(--ameen-c-rgba-219-51-56-0-25);
}

.ameen-child-btn--light {
  background: var(--ameen-app-white);
  color: var(--ch-ink);
  border: 1px solid var(--ch-line);
}

.ameen-child-center { text-align: center; }

/* Tinted centered panel (16.04 / 22.02) */
.ameen-child-note {
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 8px 0 16px;
}
.ameen-child-note--urgent { background: var(--ch-red-bg); min-height: 238px; justify-content: center; }
.ameen-child-note--sky { background: var(--ch-sky); }
.ameen-child-note--mint { background: var(--ch-mint); }
.ameen-child-note--cream { background: var(--ch-cream); }
.ameen-child-note__title {
  margin: 0;
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 16px;
  line-height: 26px;
  color: var(--ch-ink);
}
.ameen-child-note__body {
  margin: 0;
  font-family: var(--ameen-font);
  font-size: 13px;
  line-height: 21px;
  color: var(--ch-slate);
}

/* Link cards on the Safety Centre */
.ameen-child-links { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }
.ameen-child-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  border-radius: 16px;
  background: var(--ameen-app-white);
  border: 1px solid var(--ch-line);
  text-decoration: none;
  color: inherit;
}
.ameen-child-link--mint { background: var(--ch-mint); border-color: transparent; }
.ameen-child-link--cream { background: var(--ch-cream); border-color: transparent; }
.ameen-child-link__title { font-weight: 700; font-size: 14px; color: var(--ch-ink); }
.ameen-child-link__sub { font-size: 12px; color: var(--ch-slate); }
.ameen-child-link:focus-visible,
.ameen-child-chip input:focus-visible + span {
  outline: 2px solid var(--ameen-app-primary-dark);
  outline-offset: 2px;
}

.ameen-child-unpair { margin-top: 28px; text-align: center; }
.ameen-child-unpair button {
  background: none;
  border: none;
  color: var(--ch-slate);
  font-family: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}

/* Forms */
.ameen-child-label {
  display: block;
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 13px;
  color: var(--ch-slate);
  margin: 16px 0 8px;
}
.ameen-child-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--ch-line);
  background: var(--ameen-app-white);
  font-family: var(--ameen-font);
  font-size: 15px;
  color: var(--ch-ink);
}
.ameen-child-input:focus { outline: 2px solid var(--ameen-app-primary-dark); outline-offset: 1px; }
.ameen-child-input--area { min-height: 96px; resize: vertical; }
.ameen-child-input--code {
  text-align: center;
  letter-spacing: 0.5em;
  font-size: 24px;
  font-weight: 700;
  direction: ltr;
}
.ameen-child-error { margin: 8px 0 0; font-size: 13px; color: var(--ch-red); }

.ameen-child-chips { border: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ameen-child-chips legend { padding: 0; }
.ameen-child-chip { position: relative; }
.ameen-child-chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ameen-child-chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 14px;
  background: var(--ameen-app-white);
  border: 1px solid var(--ch-line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ch-text);
}
.ameen-child-chip input:checked + span {
  background: var(--ameen-app-primary-dark);
  border-color: var(--ameen-app-primary-dark);
  color: var(--ameen-app-white);
}

/* ─── Brand (navy) screens: 16.02, 16.03, 16.05 ─────────────────────────── */
.ameen-child-brand {
  background: var(--ch-brand) !important;
  color: var(--ameen-app-white);
  display: flex;
  flex-direction: column;
}
.ameen-child-brand .ameen-app-main {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0;
}
.ameen-child-brand__form { display: flex; flex-direction: column; flex: 1; }
.ameen-child-brand__top { padding: 16px 18px 0; }
.ameen-child-brand__back {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ameen-app-white);
}
.ameen-child-brand__body { padding: 4px 24px 24px; flex: 1; text-align: start; }
.ameen-child-brand__mark {
  width: 110px;
  height: 110px;
  border-radius: 55px;
  background: var(--ch-brand-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.ameen-child-brand__title {
  margin: 0 0 14px;
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 27px;
  line-height: 43px;
  color: var(--ameen-app-white);
}
.ameen-child-brand__subtitle {
  margin: 0 0 14px;
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 21px;
  line-height: 34px;
  color: var(--ameen-app-white);
}
.ameen-child-brand__text {
  margin: 0 0 14px;
  font-family: var(--ameen-font);
  font-size: 15px;
  line-height: 24px;
  color: var(--ameen-app-white);
}
.ameen-child-brand__art { display: block; max-width: 100%; height: auto; margin: 0 auto 14px; }
.ameen-child-brand__card {
  background: var(--ch-brand-deep);
  border-radius: 20px;
  padding: 18px;
}
.ameen-child-brand__card-title { margin: 0 0 8px; font-weight: 700; font-size: 15px; line-height: 24px; }
.ameen-child-brand__card-text { margin: 0; font-size: 12px; line-height: 19px; }
.ameen-child-brand__cancel { text-align: center; margin-top: 18px; }
.ameen-child-brand__cancel button {
  background: none;
  border: none;
  color: var(--ameen-c-rgba-255-255-255-0-75);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.ameen-child-brand__footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 24px calc(28px + env(safe-area-inset-bottom, 0px));
}
.ameen-child-btn {
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ameen-font);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  width: 100%;
}
.ameen-child-btn--warm { background: var(--ch-warm); color: var(--ameen-app-white); }
.ameen-child-brand .ameen-child-btn--light { background: var(--ameen-app-white); color: var(--ch-text); }
.ameen-child-btn:focus-visible,
.ameen-child-brand__back:focus-visible { outline: 2px solid var(--ameen-app-white); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .ameen-child-link,
  .ameen-child-btn { transition: none; }
}
