:root {
  color-scheme: dark;
  --page: #111016;
  --page-2: #19151e;
  --header: #201827;
  --surface: #211a27;
  --surface-2: #292130;
  --field: #312738;
  --field-focus: #392e41;
  --text: #f8f5f9;
  --muted: #bfb5c4;
  --line: #4b3d53;
  --accent: #f06a27;
  --accent-2: #ff8548;
  --cyan: #16b3c7;
  --purple: #a63a94;
  --danger: #ff7a86;
  --info-bg: #18313c;
  --shadow: 0 22px 55px rgba(0, 0, 0, .36);
}

:root[data-theme="light"] {
  color-scheme: light;
  --page: #eef2f7;
  --page-2: #f9fafc;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --field: #f7f9fc;
  --field-focus: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #dbe2ec;
  --accent: #e95f20;
  --accent-2: #f4793c;
  --cyan: #0d9fb4;
  --purple: #8d297f;
  --danger: #c93342;
  --info-bg: #edf8fc;
  --shadow: 0 20px 50px rgba(23, 32, 51, .14);
}

* {
  box-sizing: border-box;
}

html,
body,
button,
input,
select,
textarea {
  font-family: "Cairo", sans-serif !important;
}

html {
  min-height: 100%;
  background: var(--page);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 100% 0%, rgba(18, 170, 192, .14), transparent 30rem),
    radial-gradient(circle at 0% 100%, rgba(240, 106, 39, .11), transparent 29rem),
    linear-gradient(145deg, var(--page), var(--page-2));
  overflow-x: hidden;
  transition: background .22s ease, color .22s ease;
}

button,
input,
select,
textarea {
  font: inherit;
}

[hidden] {
  display: none !important;
}

.hero {
  position: relative;
  color: #fff;
  background: var(--header);
  padding:
    calc(21px + env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    22px
    max(18px, env(safe-area-inset-left));
  border-bottom: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 9px 28px rgba(0, 0, 0, .24);
}

.hero-inner {
  width: min(100%, 900px);
  margin: auto;
  text-align: center;
}

.theme-corner {
  position: absolute;
  z-index: 3;
  inset-inline-start: max(13px, env(safe-area-inset-left));
  top: calc(13px + env(safe-area-inset-top));
}

.header-tool-button {
  width: 46px;
  height: 46px;
  color: #fff;
  background: rgba(255, 255, 255, .075);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 9px 23px rgba(0, 0, 0, .20),
    inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(10px);
  transition:
    transform .14s ease,
    background .18s ease,
    border-color .18s ease;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, .13);
  border-color: rgba(255, 255, 255, .24);
}

.theme-toggle:active {
  transform: scale(.96);
}

.theme-toggle:focus-visible {
  outline: 3px solid rgba(22, 179, 199, .5);
  outline-offset: 3px;
}

.header-tool-button svg {
  width: 22px;
  height: 22px;
  display: block;
}

.brand-logo {
  width: 91px;
  height: 91px;
  object-fit: contain;
  filter: drop-shadow(0 7px 15px rgba(0, 0, 0, .23));
}

.brand-ar {
  margin: 5px 0 0;
  color: #fff;
  font-size: clamp(1.52rem, 7vw, 2.08rem);
  line-height: 1.45;
  font-weight: 800;
}

.brand-en {
  margin: 0;
  color: #fff;
  direction: ltr;
  font-size: .88rem;
  line-height: 1.55;
  font-weight: 500;
}

.page-title {
  margin: 22px 0 0;
  color: var(--accent-2);
  font-size: clamp(1.25rem, 6vw, 1.72rem);
  line-height: 1.5;
  font-weight: 800;
}

.page-container {
  width: min(100%, 900px);
  margin: auto;
  padding: 15px 11px calc(30px + env(safe-area-inset-bottom));
}

.intro {
  margin: 0;
  padding: 0 7px 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.8;
  font-size: .81rem;
}


.form-shell {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 23px;
  box-shadow: var(--shadow);
  transition: background .22s ease, border-color .22s ease;
}

form {
  display: grid;
  gap: 12px;
  padding: 11px;
}

.section {
  padding: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  transition: background .22s ease, border-color .22s ease;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.section-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  color: var(--text);
  background:
    linear-gradient(
      135deg,
      rgba(22, 179, 199, .18),
      rgba(166, 58, 148, .15)
    );
  border-radius: 11px;
}

.section-icon svg {
  width: 19px;
  height: 19px;
}

.section-title {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.section-badge {
  margin-inline-start: auto;
  padding: 5px 9px;
  color: var(--cyan);
  background: rgba(22, 179, 199, .12);
  border: 1px solid rgba(22, 179, 199, .18);
  border-radius: 999px;
  font-size: .67rem;
  font-weight: 700;
  white-space: nowrap;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
}

.field {
  min-width: 0;
}

label {
  display: block;
  margin: 0 0 7px;
  color: var(--text);
  font-size: .83rem;
  font-weight: 700;
}

.required::after {
  content: " *";
  color: var(--danger);
}

.required-star {
  color: var(--danger);
}

input,
select,
textarea {
  width: 100%;
  min-height: 49px;
  padding: 12px 13px;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 13px;
  outline: none;
  transition:
    background .17s ease,
    border-color .17s ease,
    box-shadow .17s ease;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: .72;
}

select option {
  color: var(--text);
  background: var(--surface);
}

input:focus,
select:focus,
textarea:focus {
  background: var(--field-focus);
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(22, 179, 199, .13);
}

.input-validation-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(201, 51, 66, .10);
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}

.hint {
  margin: 6px 2px 0;
  color: var(--muted);
  font-size: .70rem;
  line-height: 1.65;
}

.error {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: .72rem;
  line-height: 1.6;
  font-weight: 600;
}

.error:empty {
  display: none;
}

.type-label {
  margin: 0 0 9px;
  color: var(--text);
  font-size: .83rem;
  font-weight: 800;
}

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

.type-option {
  position: relative;
}

.type-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.type-card {
  min-height: 92px;
  padding: 10px 6px;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-align: center;
  cursor: pointer;
  user-select: none;
  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}

.type-card svg {
  width: 24px;
  height: 24px;
  color: var(--muted);
}

.type-card > span {
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.45;
}

.type-option input:checked + .type-card {
  border-color: var(--accent);
  background:
    linear-gradient(
      145deg,
      var(--surface-2),
      var(--field)
    );
  box-shadow:
    0 8px 19px rgba(240, 106, 39, .15),
    inset 0 0 0 1px var(--accent);
  transform: translateY(-1px);
}

.type-option input:checked + .type-card svg {
  color: var(--accent-2);
}

.type-option input:focus-visible + .type-card {
  outline: 3px solid rgba(22, 179, 199, .28);
  outline-offset: 2px;
}

.info-note {
  margin-top: 12px;
  padding: 10px 11px;
  color: var(--text);
  background: var(--info-bg);
  border: 1px solid rgba(22, 179, 199, .30);
  border-radius: 12px;
  font-size: .73rem;
  line-height: 1.7;
}

.request-fields {
  display: grid;
  grid-template-columns: 1fr;
  gap: 13px;
  margin-top: 14px;
}

.companion-section {
  animation: revealCompanion .22s ease both;
}

@keyframes revealCompanion {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.actions {
  position: sticky;
  bottom: 0;
  z-index: 7;
  display: grid;
  grid-template-columns: 1fr 1.55fr;
  gap: 9px;
  margin: 0 -11px -11px;
  padding: 11px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.btn {
  min-height: 49px;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, filter .12s ease;
}

.btn:active {
  transform: scale(.985);
}

.btn-primary {
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--accent),
      #ce4d16
    );
  border: 1px solid transparent;
  box-shadow: 0 9px 22px rgba(240, 106, 39, .23);
}

.btn-primary:disabled {
  opacity: .62;
  cursor: not-allowed;
}

.btn-secondary {
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--line);
}

footer {
  padding: 15px 10px 0;
  color: var(--muted);
  text-align: center;
  font-size: .70rem;
}

.toast-container {
  position: fixed;
  z-index: 9999;
  inset-inline: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom));
  display: grid;
  gap: 8px;
  pointer-events: none;
}

.toast {
  width: min(100%, 520px);
  margin: auto;
  padding: 12px 14px;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, .30);
  pointer-events: auto;
  font-size: .81rem;
  line-height: 1.7;
  animation: toastIn .20s ease both;
}

.toast.success {
  background: #166b4d;
}

.toast.warn {
  background: #89550c;
}

.toast.error {
  background: #983039;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.simple-message {
  min-height: 100vh;
  padding: 20px;
  display: grid;
  place-items: center;
}

.message-card {
  width: min(100%, 520px);
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
}

.link-button {
  display: inline-block;
  margin-top: 14px;
  padding: 10px 16px;
  color: #fff;
  background: var(--accent);
  border-radius: 12px;
  text-decoration: none;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 720px) {
  .page-container {
    padding: 25px 18px 40px;
  }

  form {
    gap: 15px;
    padding: 17px;
  }

  .section {
    padding: 19px;
  }

  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .type-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .type-card {
    min-height: 104px;
  }

  .request-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doctor-row {
    grid-column: 1 / -1;
  }

  .actions {
    position: static;
    display: flex;
    justify-content: flex-start;
    margin: 0;
    padding: 4px 0 0;
    background: transparent;
    border-top: 0;
  }

  .btn {
    min-width: 150px;
  }

  .btn-primary {
    order: -1;
  }

  .intro {
    text-align: right;
    font-size: .87rem;
  }
}

@media (max-width: 365px) {
  .page-container {
    padding-inline: 8px;
  }

  form {
    padding: 9px;
  }

  .section {
    padding: 12px;
  }

  .header-tool-button {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .brand-logo {
    width: 82px;
    height: 82px;
  }

  .type-card > span {
    font-size: .70rem;
  }

  .actions {
    margin-inline: -9px;
    margin-bottom: -9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}


/* Parallel V2: separate language corner and patient lookup */
.language-corner {
  position: absolute;
  inset-inline-end: max(13px, env(safe-area-inset-right));
  top: calc(13px + env(safe-area-inset-top));
}

.language-toggle {
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .04em;
}

.lookup-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 9px;
  align-items: end;
}

.lookup-field {
  min-width: 0;
}

.btn-lookup {
  min-width: 92px;
  min-height: 49px;
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--cyan), #087c91);
  box-shadow: 0 8px 20px rgba(22, 179, 199, .18);
}

.btn-lookup:disabled {
  opacity: .65;
  cursor: wait;
}

.lookup-status {
  min-height: 24px;
  margin: 9px 2px 0;
  font-size: .73rem;
  line-height: 1.6;
  color: var(--muted);
}

.lookup-status.is-loading {
  color: var(--cyan);
}

.lookup-status.is-success {
  color: #43c991;
}

.lookup-status.is-error {
  color: var(--danger);
}

.patient-result {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}

.patient-found-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  color: #43c991;
  background: rgba(67, 201, 145, .11);
  border: 1px solid rgba(67, 201, 145, .22);
  font-size: .7rem;
  font-weight: 700;
}


html[dir="ltr"] body,
html[dir="ltr"] input,
html[dir="ltr"] select,
html[dir="ltr"] textarea {
  text-align: left;
}

html[dir="ltr"] .brand-en {
  direction: ltr;
}

html[dir="ltr"] .type-card {
  direction: ltr;
}

@media (max-width: 420px) {
  .lookup-row {
    grid-template-columns: 1fr;
  }

  .btn-lookup {
    width: 100%;
  }
}


/* Multi-search: National ID, File Number, Mobile */
.search-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 13px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--field);
}

.search-method {
  position: relative;
  margin: 0;
}

.search-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.search-method span {
  min-height: 42px;
  padding: 8px 5px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition:
    background .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

.search-method input:checked + span {
  color: #fff;
  background:
    linear-gradient(
      135deg,
      var(--cyan),
      #087c91
    );
  box-shadow:
    0 7px 18px rgba(22, 179, 199, .20);
}

.search-method input:focus-visible + span {
  outline: 3px solid rgba(22, 179, 199, .24);
  outline-offset: 2px;
}

/* Patient selection popup */
body.modal-open {
  overflow: hidden;
}

.patient-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding:
    calc(16px + env(safe-area-inset-top))
    12px
    calc(16px + env(safe-area-inset-bottom));
}

.patient-modal[hidden] {
  display: none !important;
}

.patient-modal-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(7, 5, 10, .72);
  backdrop-filter: blur(7px);
  cursor: default;
}

.patient-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 620px);
  max-height: min(82vh, 720px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .48);
}

.patient-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 13px;
  padding: 17px 17px 14px;
  border-bottom: 1px solid var(--line);
}

.patient-modal-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.patient-modal-head p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: .74rem;
  line-height: 1.7;
}

.patient-modal-close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--field);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}

.patient-selection-list {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 9px;
  padding: 13px;
  overscroll-behavior: contain;
}

.patient-choice {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 13px;
  color: var(--text);
  background: var(--field);
  text-align: start;
  cursor: pointer;
  transition:
    transform .14s ease,
    border-color .14s ease,
    box-shadow .14s ease;
}

.patient-choice:hover,
.patient-choice:focus-visible {
  border-color: var(--cyan);
  box-shadow: 0 8px 22px rgba(22, 179, 199, .13);
  transform: translateY(-1px);
  outline: none;
}

.patient-choice-name {
  display: block;
  font-size: .9rem;
  line-height: 1.7;
}

.patient-choice-details {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 7px;
}

.patient-choice-file {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
}

.patient-choice-status {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: .62rem;
  font-weight: 700;
}

.patient-choice-status.is-active {
  color: #43c991;
  background: rgba(67, 201, 145, .11);
  border: 1px solid rgba(67, 201, 145, .22);
}

.patient-choice-status.is-inactive {
  color: var(--muted);
  background: rgba(128, 128, 128, .10);
  border: 1px solid var(--line);
}

.patient-choice-action {
  display: inline-block;
  margin-top: 10px;
  color: var(--cyan);
  font-size: .71rem;
  font-weight: 800;
}

@media (max-width: 420px) {
  .search-methods {
    gap: 4px;
  }

  .search-method span {
    padding-inline: 3px;
    font-size: .65rem;
  }

  .patient-modal {
    place-items: end center;
    padding-inline: 7px;
    padding-bottom: 7px;
  }

  .patient-modal-card {
    width: 100%;
    max-height: 88vh;
    border-radius: 22px 22px 15px 15px;
  }
}


/* Final required-field validation */
.field.has-error input,
.field.has-error select,
.field.has-error textarea,
input.input-validation-error,
select.input-validation-error,
textarea.input-validation-error {
  border-color: #e5484d !important;
  box-shadow: 0 0 0 4px rgba(229, 72, 77, .14) !important;
}

.type-grid.has-error {
  padding: 7px;
  margin: -7px;
  border: 1px solid #e5484d;
  border-radius: 17px;
  background: rgba(229, 72, 77, .06);
}

.type-grid.has-error .type-card {
  border-color: rgba(229, 72, 77, .55);
}

.field-error {
  margin: 9px 2px 0;
  color: #ef5d62;
  font-size: .73rem;
  font-weight: 700;
  line-height: 1.6;
}

.field-error[hidden] {
  display: none !important;
}

/* Inactive patient files are clearly red */
.patient-choice.is-inactive {
  border-color: rgba(229, 72, 77, .75);
  background:
    linear-gradient(
      145deg,
      rgba(229, 72, 77, .14),
      rgba(229, 72, 77, .06)
    );
  box-shadow: inset 4px 0 0 #e5484d;
}

html[dir="rtl"] .patient-choice.is-inactive {
  box-shadow: inset -4px 0 0 #e5484d;
}

.patient-choice.is-inactive:hover,
.patient-choice.is-inactive:focus-visible {
  border-color: #e5484d;
  box-shadow:
    0 8px 22px rgba(229, 72, 77, .18),
    inset 4px 0 0 #e5484d;
}

html[dir="rtl"] .patient-choice.is-inactive:hover,
html[dir="rtl"] .patient-choice.is-inactive:focus-visible {
  box-shadow:
    0 8px 22px rgba(229, 72, 77, .18),
    inset -4px 0 0 #e5484d;
}

.patient-choice-status.is-inactive {
  color: #ff7a7e;
  background: rgba(229, 72, 77, .16);
  border: 1px solid rgba(229, 72, 77, .55);
}

/* Success popup */
.success-modal {
  position: fixed;
  inset: 0;
  z-index: 11000;
  display: grid;
  place-items: center;
  padding:
    calc(18px + env(safe-area-inset-top))
    14px
    calc(18px + env(safe-area-inset-bottom));
}

.success-modal[hidden] {
  display: none !important;
}

.success-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 5, 10, .76);
  backdrop-filter: blur(8px);
}

.success-modal-card {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  padding: 27px 20px 20px;
  border: 1px solid rgba(67, 201, 145, .36);
  border-radius: 23px;
  color: var(--text);
  background: var(--surface);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .52);
  text-align: center;
  animation: successPop .22s ease both;
}

.success-modal-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background:
    linear-gradient(
      135deg,
      #43c991,
      #17895f
    );
  box-shadow: 0 12px 28px rgba(67, 201, 145, .25);
  font-size: 2rem;
  font-weight: 800;
}

.success-modal-card h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.success-modal-card > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: .85rem;
  line-height: 1.8;
}

.success-request-id {
  display: inline-flex;
  margin-top: 13px !important;
  padding: 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text) !important;
  background: var(--field);
  font-size: .72rem !important;
  font-weight: 700;
}

.success-request-id[hidden] {
  display: none !important;
}

.success-ok {
  width: 100%;
  margin-top: 20px;
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* Manual date entry: keep numbers and separators readable in RTL pages */
input[data-date-text] {
  direction: ltr;
  text-align: left;
  unicode-bidi: plaintext;
}


/* Birth-date input alignment by interface language */
#BirthDate_Text,
#Companion_BirthDate_Text {
  direction: ltr;
  unicode-bidi: plaintext;
}

html[dir="rtl"] #BirthDate_Text,
html[dir="rtl"] #Companion_BirthDate_Text {
  text-align: right;
}

html[dir="ltr"] #BirthDate_Text,
html[dir="ltr"] #Companion_BirthDate_Text {
  text-align: left;
}
