@font-face {
  font-family: "Dana";
  src: url("/fonts/Dana-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: 300;
  font-display: swap;
}

@font-face {
  font-family: "Dana";
  src: url("/fonts/Dana-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

@font-face {
  font-family: "Dana";
  src: url("/fonts/Dana-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
}

:root {
  --brand-blue: #0757c7;
  --brand-lime: #8dff00;
  --ink: #111111;
  --muted: #8b8b8b;
  --danger: #d62727;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html,
body { min-height: 100%; }

html { overflow-x: clip; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: "Dana", Tahoma, Arial, sans-serif;
  direction: rtl;
}

button,
input,
select { font: inherit; }

button { -webkit-tap-highlight-color: transparent; }

svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

.honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.assistant-page {
  --blue-halo-x: 50%;
  --blue-halo-y: -220px;
  --blue-halo-size: 285px;
  --blue-halo-opacity: .62;
  --blue-halo-solid-stop: 52%;
  position: relative;
  min-height: 100svh;
  overflow-x: clip;
  overflow-y: visible;
  background: #fff;
}

.assistant-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 270px 470px at -7% 585px, rgba(141, 255, 0, .46), transparent 78%),
    radial-gradient(circle var(--blue-halo-size) at var(--blue-halo-x) var(--blue-halo-y), rgba(20, 82, 255, var(--blue-halo-opacity)) 0 var(--blue-halo-solid-stop), transparent 100%);
}

.assistant-shell {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, 520px);
  margin-inline: auto;
  padding: max(18px, env(safe-area-inset-top)) 0 0;
}

.hero-layout,
.hero-copy { display: contents; }

.identity { display: flex; justify-content: center; }

.brand-logo {
  width: 164px;
  height: 164px;
  object-fit: contain;
}

.intro-copy {
  margin-top: 41px;
  text-align: right;
}

.intro-copy h1 {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(23px, 6.8vw, 30px);
  line-height: 1.55;
  font-weight: 850;
  letter-spacing: -.035em;
}

.intro-copy h1 span {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 13px 3px;
  color: #111;
  background: var(--brand-lime);
  border-radius: 10px;
  font-size: .57em;
  line-height: 1.5;
  font-weight: 650;
  vertical-align: middle;
  transform: translateY(-2px);
}

.intro-copy p {
  max-width: 470px;
  margin: 16px auto 0;
  color: #222;
  font-size: clamp(16px, 4.8vw, 22px);
  line-height: 1.85;
  font-weight: 390;
}

.request-card {
  position: relative;
  width: 100%;
  margin-top: 61px;
  padding: 34px 25px 31px;
  background: rgba(255, 255, 255, .96);
  border: 3px solid var(--brand-blue);
  border-radius: 12px;
  box-shadow:
    0 8px 0 var(--brand-lime),
    0 18px 45px rgba(0, 74, 174, .08);
}

.form-row {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 57px;
}

.form-row + .form-row { margin-top: 5px; }

.form-row strong {
  min-width: 0;
  font-size: clamp(13px, 4.2vw, 21px);
  line-height: 1.5;
  font-weight: 800;
  white-space: nowrap;
}

.form-row label { cursor: pointer; }

.pill-control {
  position: relative;
  width: 100%;
  height: 45px;
  display: flex;
  align-items: center;
  border: 2px solid var(--brand-lime);
  border-radius: 999px;
  background: #fff;
}

.pill-control input {
  width: 100%;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: #333;
  background: transparent;
  font-size: 16px;
  font-weight: 450;
  text-align: center;
}

.pill-control input::placeholder {
  color: #aaa;
  opacity: 1;
}

.pill-control input:not(:placeholder-shown):not(:focus) { color: #929292; }

.pill-control:focus-within {
  border-color: #63c900;
  box-shadow: 0 0 0 3px rgba(141, 255, 0, .13);
}

.pill-control.is-invalid,
.details-fields input.is-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(214, 39, 39, .09);
}

.field-message {
  min-height: 0;
  margin: 5px 10px 0;
  color: var(--danger);
  font-size: 12px;
  line-height: 1.6;
  font-weight: 600;
  text-align: right;
}

.field-message:empty {
  display: none;
}

.model-combobox {
  position: relative;
  width: 100%;
}

.model-options {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 40;
  max-height: 210px;
  padding: 5px;
  overflow-y: auto;
  border: 1px solid #d8e7c4;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 42, 110, .14);
}

.model-options[hidden] { display: none; }

.model-options button {
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 9px;
  color: #222;
  background: transparent;
  cursor: pointer;
  text-align: right;
  font-size: 14px;
}

.model-options button:hover,
.model-options button:focus-visible,
.model-options button.is-active {
  color: var(--brand-blue);
  background: #efffdc;
  outline: 0;
}

.no-model,
.model-prompt {
  display: block;
  padding: 10px;
  color: #777;
  font-size: 12px;
  text-align: center;
}

.price-wrap {
  position: relative;
  width: 100%;
  min-height: 45px;
}

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

.phone-field input {
  width: 100%;
  height: 100%;
  padding: 0 14px;
  border: 0;
  outline: 0;
  color: #333;
  background: transparent;
  font-size: 16px;
  text-align: center;
}

.phone-field input::placeholder {
  color: #aaa;
  opacity: 1;
}

.phone-field input:placeholder-shown { direction: rtl; }
.phone-field input:not(:placeholder-shown) { direction: ltr; }

.submit-button {
  height: 48px;
  width: 216px;
  min-width: 216px;
  margin-top: 22px;
  margin-left: 0;
  margin-right: auto;
  padding: 0 18px;
  border: 0;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--brand-blue);
  background: var(--brand-lime);
  box-shadow: 0 7px 18px rgba(111, 221, 0, .22);
  cursor: pointer;
  font-size: 17px;
  font-weight: 750;
  white-space: nowrap;
  max-width: 100%;
  transition: transform 140ms var(--ease-out), background 180ms ease;
}

.submit-button:active { transform: scale(.97); }

.submit-button svg {
  width: 25px;
  height: 25px;
}

.submit-button.submitted { background: #baff65; }

.availability {
  margin-top: 57px;
  text-align: center;
}

.availability p {
  margin: 0;
  color: #171717;
  font-size: 18px;
  line-height: 1.85;
  font-weight: 390;
}

.advisor-avatars {
  --avatar-overlap: 15px;
  --avatar-size: min(88px, calc(16.6667% + 12.5px));
  width: 100%;
  max-width: 100%;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  direction: ltr;
}

.advisor-avatar {
  width: var(--avatar-size);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #e8e8e8;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: none;
  overflow: hidden;
}

.advisor-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.advisor-avatar-fallback::before {
  content: "دخ";
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--brand-blue);
  font-weight: 800;
}

.advisor-avatars > * + * { margin-left: calc(-1 * var(--avatar-overlap)); }

.advisor-count {
  width: var(--avatar-size);
  height: auto;
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 2px solid #fff;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #0757f7;
  box-shadow: none;
  font-size: 19px;
  direction: rtl;
}

.journey {
  margin-top: 92px;
  padding: 0 20px 76px;
  text-align: center;
}

.journey h2 {
  margin: 0;
  color: #064ef5;
  font-size: 27px;
  line-height: 1.5;
  font-weight: 850;
}

.journey-intro {
  margin: 13px auto 34px;
  color: #222;
  font-size: 19px;
  line-height: 1.9;
}

.journey-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
}

.journey-steps li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  gap: 17px;
}

.journey-steps li + li { margin-top: 32px; }

.step-number {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #064ef5;
  background: var(--brand-lime);
  font-size: 25px;
  font-weight: 800;
}

.journey-steps h3 {
  margin: 0;
  color: #111;
  font-size: 20px;
  line-height: 1.55;
  font-weight: 850;
}

.journey-steps p {
  margin: 5px 0 0;
  color: #999;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 390;
}

.site-footer {
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-top: 0;
  padding: 40px 28px max(54px, env(safe-area-inset-bottom));
  background: #f1f1f1;
  text-align: center;
}

.footer-logo {
  width: 160px;
  height: 160px;
  margin-inline: auto;
  display: block;
  object-fit: contain;
}

.footer-about {
  margin: 23px auto 0;
  color: #999;
  font-size: 16px;
  line-height: 1.9;
  font-weight: 390;
  text-align: right;
}

.footer-contact {
  margin-top: 27px;
  color: #999;
  font-size: 15px;
  line-height: 1.85;
  font-style: normal;
  text-align: right;
}

.footer-contact span { display: block; }

@media (hover: hover) and (pointer: fine) {
  .submit-button:hover { background: #7dec00; }
}

@media (min-width: 800px) {
  .assistant-page {
    --blue-halo-x: 50%;
    --blue-halo-y: calc(-140vw + 120px);
    --blue-halo-size: 140vw;
    --blue-halo-opacity: .48;
    --blue-halo-solid-stop: 92%;
  }

  .assistant-shell { width: min(100% - 64px, 1120px); }

  .hero-layout {
    min-height: 660px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 72px;
  }

  .hero-copy { display: block; }
  .intro-copy { margin-top: 30px; }
  .request-card { margin-top: 0; }

  .availability,
  .advisor-avatars,
  .journey {
    max-width: 520px;
    margin-inline: auto;
  }

  .footer-about,
  .footer-contact {
    max-width: 520px;
  }
}

@media (max-width: 390px) {
  .assistant-shell { width: min(100% - 20px, 520px); }
  .brand-logo { width: 148px; height: 148px; }
  .intro-copy { margin-top: 34px; }
  .intro-copy h1 { font-size: 22px; }
  .intro-copy p { font-size: 17px; line-height: 1.9; }
  .request-card { margin-top: 50px; padding: 25px 16px 23px; }
  .form-row { grid-template-columns: 125px minmax(0, 1fr); gap: 10px; min-height: 52px; }
  .pill-control,
  .price-wrap { min-height: 42px; height: 42px; }
  .pill-control input { font-size: 14px; }
  .phone-field input { font-size: 15px; }
  .submit-button { width: 175px; height: 44px; min-width: 175px; margin-top: 18px; padding-inline: 13px; font-size: 14px; }
  .availability { margin-top: 42px; }
  .availability p { font-size: 16px; }
  .advisor-avatars {
    --avatar-overlap: 10px;
    --avatar-size: min(62px, calc(16.6667% + 8.333px));
  }
  .advisor-count { font-size: 14px; }
  .journey { margin-top: 70px; padding-inline: 8px; padding-bottom: 58px; }
  .journey h2 { font-size: 23px; }
  .journey-intro { font-size: 16px; margin-bottom: 28px; }
  .journey-steps li { grid-template-columns: 46px minmax(0, 1fr); gap: 12px; }
  .step-number { width: 46px; height: 46px; font-size: 22px; }
  .journey-steps h3 { font-size: 17px; }
  .journey-steps p { font-size: 14px; }
  .site-footer { padding: 30px 19px 42px; }
  .footer-logo { width: 145px; height: 145px; }
  .footer-about { font-size: 14px; }
  .footer-contact { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { transition-duration: .01ms !important; }
}

@media (prefers-contrast: more) {
  .request-card { border-width: 4px; }
}

.details-page {
  min-height: 100svh;
  overflow-x: clip;
  overflow-y: visible;
  background:
    radial-gradient(circle at -10% 68%, rgba(141, 255, 0, .52), transparent 18rem),
    radial-gradient(ellipse 185px 235px at 57% -10px, rgba(36, 91, 255, .19), transparent 76%),
    #fff;
}

.details-shell {
  width: min(100% - 36px, 480px);
  margin-inline: auto;
  padding: max(22px, env(safe-area-inset-top)) 0 max(80px, env(safe-area-inset-bottom));
}

.details-identity { display: flex; justify-content: center; }

.details-logo {
  width: 172px;
  height: 172px;
  object-fit: contain;
}

.details-card {
  margin-top: 55px;
  padding: 39px 23px 43px;
  border: 3px solid #0757f7;
  border-radius: 12px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 0 var(--brand-lime);
}

.details-heading { text-align: center; }

.details-heading h1 {
  margin: 0;
  color: #0757f7;
  font-size: 23px;
  line-height: 1.6;
  font-weight: 850;
}

.details-heading p {
  margin: 4px 0 0;
  color: #222;
  font-size: 18px;
  line-height: 1.8;
}

.details-fields { margin-top: 31px; }

.details-fields label {
  min-height: 51px;
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.details-fields label + label { margin-top: 5px; }

.details-fields strong {
  min-width: 0;
  font-size: clamp(13px, 4vw, 19px);
  line-height: 1.5;
  font-weight: 850;
  white-space: nowrap;
}

.details-fields input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 2px solid var(--brand-lime);
  border-radius: 999px;
  outline: 0;
  color: #333;
  background: #fff;
  text-align: center;
  font-size: 14px;
}

.details-fields input::placeholder {
  color: #aaa;
  opacity: 1;
}

.details-fields input:focus {
  border-color: #63c900;
  box-shadow: 0 0 0 3px rgba(141, 255, 0, .13);
}

.details-submit {
  width: 200px;
  height: 46px;
  margin-top: 22px;
  margin-right: auto;
  margin-left: 0;
  padding-inline: 16px;
  border: 0;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0757f7;
  background: var(--brand-lime);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  max-width: 100%;
}

.details-submit svg {
  width: 26px;
  height: 26px;
}

.details-submit:active { transform: scale(.98); }

.details-skip-form {
  margin: 16px 0 0;
  text-align: left;
}

.details-skip {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 390px) {
  .details-shell { width: min(100% - 20px, 480px); }
  .details-logo { width: 150px; height: 150px; }
  .details-card { margin-top: 43px; padding: 31px 16px 35px; }
  .details-heading h1 { font-size: 20px; }
  .details-heading p { font-size: 16px; }
  .details-fields label { grid-template-columns: 125px minmax(0, 1fr); gap: 10px; }
  .details-submit { width: 175px; font-size: 14px; }
}

.success-page {
  min-height: 100svh;
  overflow-x: clip;
  overflow-y: visible;
  background:
    radial-gradient(ellipse 185px 235px at 57% -10px, rgba(36, 91, 255, .19), transparent 76%),
    #fff;
}

.success-shell {
  width: min(100% - 36px, 480px);
  margin-inline: auto;
  padding: max(22px, env(safe-area-inset-top)) 0 max(80px, env(safe-area-inset-bottom));
}

.success-identity { display: flex; justify-content: center; }

.success-logo {
  width: 172px;
  height: 172px;
  object-fit: contain;
}

.success-card {
  min-height: 300px;
  margin-top: 55px;
  padding: 42px 24px;
  border: 3px solid #0757f7;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #0757f7;
  background: var(--brand-lime);
  box-shadow: 0 8px 0 #71d800;
  text-align: center;
}

.success-card h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.5;
  font-weight: 850;
}

.success-card p {
  margin: 5px 0 0;
  color: #111;
  font-size: 19px;
  line-height: 1.8;
}

.success-back {
  width: 200px;
  height: 46px;
  margin-top: 36px;
  padding-inline: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #0757f7;
  background: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}

.success-back svg {
  width: 26px;
  height: 26px;
}

.success-back:active { transform: scale(.98); }

@media (max-width: 390px) {
  .success-shell { width: min(100% - 20px, 480px); }
  .success-logo { width: 150px; height: 150px; }
  .success-card { min-height: 275px; margin-top: 43px; padding-inline: 16px; }
  .success-card h1 { font-size: 22px; }
  .success-card p { font-size: 16px; }
  .success-back { width: 175px; font-size: 14px; }
}
