/* =========================================
   RESET
========================================= */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;

  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", "Noto Sans Arabic", Tahoma, Arial, sans-serif;

  color: #111114;

  background:
    radial-gradient(
      circle at 10% 5%,
      rgba(124, 170, 255, 0.3),
      transparent 30%
    ),
    radial-gradient(
      circle at 95% 20%,
      rgba(192, 132, 252, 0.2),
      transparent 30%
    ),
    radial-gradient(
      circle at 50% 100%,
      rgba(94, 234, 212, 0.17),
      transparent 35%
    ),
    #f5f5f7;

  overflow-x: hidden;
}

/* =========================================
   BACKGROUND
========================================= */

.background-glow {
  position: fixed;

  border-radius: 999px;

  filter: blur(110px);

  pointer-events: none;

  z-index: 0;
}

.glow-one {
  width: 450px;
  height: 450px;

  top: -180px;
  left: -150px;

  background: rgba(75, 132, 255, 0.26);
}

.glow-two {
  width: 430px;
  height: 430px;

  top: 12%;
  right: -200px;

  background: rgba(185, 110, 255, 0.18);
}

.glow-three {
  width: 500px;
  height: 500px;

  bottom: -250px;
  left: 30%;

  background: rgba(72, 219, 190, 0.15);
}

/* =========================================
   PAGE
========================================= */

.page {
  position: relative;

  z-index: 1;

  min-height: 100vh;

  display: flex;
  justify-content: center;
  align-items: flex-start;

  padding: 60px 20px;
}

/* =========================================
   MAIN CARD
========================================= */

.form-card {
  width: 100%;
  max-width: 760px;

  position: relative;

  overflow: hidden;

  padding: 12px;

  border-radius: 38px;

  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.78),
    rgba(255, 255, 255, 0.45)
  );

  border: 1px solid rgba(255, 255, 255, 0.88);

  backdrop-filter: blur(40px) saturate(180%);

  -webkit-backdrop-filter: blur(40px) saturate(180%);

  box-shadow:
    0 40px 100px rgba(20, 24, 40, 0.11),
    0 10px 40px rgba(20, 24, 40, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.form-card::before {
  content: "";

  position: absolute;

  width: 450px;
  height: 250px;

  top: -180px;
  right: -120px;

  border-radius: 999px;

  background: rgba(255, 255, 255, 0.85);

  filter: blur(60px);

  pointer-events: none;
}

/* =========================================
   HEADER
========================================= */

.form-header {
  position: relative;

  padding: 25px 28px 34px;
}

.header-top {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  margin-bottom: 52px;
}

/* =========================================
   BRAND LOGO
========================================= */

.brand {
  display: flex;
  align-items: center;
}

.brand-logo-wrapper {
  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 45px;
}

.brand-logo {
  display: block;

  width: auto;
  max-width: 180px;
  height: 44px;

  object-fit: contain;
}

/* =========================================
   LANGUAGE BUTTON
========================================= */

.language-button {
  min-height: 42px;

  padding: 0 17px;

  border-radius: 999px;

  border: 1px solid rgba(20, 20, 25, 0.07);

  background: rgba(255, 255, 255, 0.58);

  color: #17171a;

  font-family: inherit;

  font-size: 13px;

  font-weight: 650;

  cursor: pointer;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 3px 15px rgba(0, 0, 0, 0.04);

  backdrop-filter: blur(20px);

  -webkit-backdrop-filter: blur(20px);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.language-button:hover {
  background: rgba(255, 255, 255, 0.9);

  transform: translateY(-1px);

  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.06);
}

.language-button:active {
  transform: scale(0.97);
}

/* =========================================
   HEADER CONTENT
========================================= */

.header-content {
  max-width: 620px;
}

.eyebrow {
  display: inline-flex;

  margin-bottom: 14px;

  color: #0066d6;

  font-size: 13px;

  font-weight: 680;
}

h1 {
  max-width: 640px;

  margin-bottom: 18px;

  color: #101012;

  font-size: clamp(39px, 7vw, 60px);

  line-height: 1.12;

  letter-spacing: -2px;

  font-weight: 730;
}

.header-content p {
  max-width: 600px;

  color: #6c6c72;

  font-size: 16px;

  line-height: 1.9;
}

/* =========================================
   FORM
========================================= */

form {
  display: flex;

  flex-direction: column;

  gap: 22px;

  padding: 34px 28px 30px;

  border-radius: 29px;

  background: rgba(255, 255, 255, 0.62);

  border: 1px solid rgba(255, 255, 255, 0.86);

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);

  backdrop-filter: blur(26px) saturate(150%);

  -webkit-backdrop-filter: blur(26px) saturate(150%);
}

/* =========================================
   FORM GROUPS
========================================= */

.form-group {
  display: flex;

  flex-direction: column;

  gap: 9px;
}

label,
legend {
  color: #3a3a3f;

  font-size: 13px;

  line-height: 1.6;

  font-weight: 650;
}

/* =========================================
   INPUTS
========================================= */

.input-wrapper,
.select-wrapper {
  position: relative;
}

input[type="text"],
input[type="tel"],
select {
  width: 100%;

  height: 58px;

  padding: 0 18px;

  border-radius: 17px;

  border: 1px solid rgba(18, 18, 23, 0.07);

  outline: none;

  color: #151518;

  background: rgba(248, 248, 250, 0.77);

  font-family: inherit;

  font-size: 16px;

  font-weight: 450;

  box-shadow:
    inset 0 1px 2px rgba(0, 0, 0, 0.025),
    0 2px 10px rgba(0, 0, 0, 0.02);

  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
}

input::placeholder {
  color: #aaaab0;
}

input:hover,
select:hover {
  background: rgba(255, 255, 255, 0.94);

  border-color: rgba(18, 18, 23, 0.13);
}

input:focus,
select:focus {
  background: rgba(255, 255, 255, 0.98);

  border-color: rgba(0, 113, 227, 0.65);

  box-shadow:
    0 0 0 4px rgba(0, 113, 227, 0.09),
    0 8px 25px rgba(0, 113, 227, 0.07);

  transform: translateY(-1px);
}

/* Phone always LTR */

#phone {
  direction: ltr;
  text-align: left;
}

/* =========================================
   SELECT
========================================= */

select {
  appearance: none;
  -webkit-appearance: none;

  cursor: pointer;

  padding-inline-end: 48px;
}

.select-arrow {
  position: absolute;

  top: 50%;
  left: 20px;

  transform: translateY(-50%);

  color: #85858b;

  font-size: 14px;

  pointer-events: none;
}

/* =========================================
   QUESTION CARD
========================================= */

.question-card {
  padding: 21px;

  border: 1px solid rgba(18, 18, 23, 0.06);

  border-radius: 21px;

  background: rgba(248, 248, 250, 0.6);

  transition:
    background 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.question-card legend {
  width: 100%;

  padding-bottom: 16px;
}

/* =========================================
   YES / NO BUTTONS
========================================= */

.choice-grid {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 10px;
}

.choice-button {
  position: relative;

  cursor: pointer;
}

.choice-button input {
  position: absolute;

  opacity: 0;

  pointer-events: none;
}

.choice-button span {
  min-height: 52px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 15px;

  background: rgba(255, 255, 255, 0.82);

  border: 1px solid rgba(18, 18, 23, 0.06);

  color: #4a4a50;

  font-size: 14px;

  font-weight: 650;

  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.choice-button:hover span {
  transform: translateY(-1px);

  background: rgba(255, 255, 255, 1);
}

.choice-button input:checked + span {
  color: #ffffff;

  background: linear-gradient(180deg, #28282c, #08080a);

  border-color: #161619;

  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

/* =========================================
   ERRORS
========================================= */

.field-error {
  min-height: 0;

  color: #d70015;

  font-size: 12px;

  font-weight: 550;

  line-height: 1.55;
}

.input-error {
  border-color: rgba(215, 0, 21, 0.55) !important;

  background: rgba(255, 245, 246, 0.8) !important;

  box-shadow: 0 0 0 4px rgba(215, 0, 21, 0.06) !important;
}

.question-card.has-error {
  border-color: rgba(215, 0, 21, 0.35);

  background: rgba(255, 246, 247, 0.68);
}

/* =========================================
   FORM ALERT
========================================= */

.form-alert {
  display: none;

  margin: 0 28px 18px;

  padding: 15px 17px;

  border-radius: 16px;

  font-size: 13px;

  line-height: 1.7;

  font-weight: 550;

  backdrop-filter: blur(20px);

  -webkit-backdrop-filter: blur(20px);
}

.form-alert.visible {
  display: block;
}

.form-alert.error {
  color: #a50013;

  background: rgba(255, 232, 235, 0.74);

  border: 1px solid rgba(215, 0, 21, 0.1);
}

.form-alert.success {
  color: #087333;

  background: rgba(230, 249, 237, 0.85);

  border: 1px solid rgba(31, 158, 82, 0.11);
}

/* =========================================
   SUBMIT BUTTON
========================================= */

.submit-button {
  width: 100%;

  min-height: 60px;

  display: flex;

  align-items: center;
  justify-content: center;

  gap: 10px;

  border: none;

  border-radius: 18px;

  color: #ffffff;

  background: linear-gradient(180deg, #252529, #070709);

  font-family: inherit;

  font-size: 15px;

  font-weight: 680;

  cursor: pointer;

  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);

  box-shadow: 0 19px 40px rgba(0, 0, 0, 0.2);
}

.submit-button:active {
  transform: scale(0.985);
}

.button-arrow {
  display: inline-block;

  font-size: 18px;

  transform: rotate(180deg);

  transition: transform 0.2s ease;
}

/* =========================================
   PRIVACY
========================================= */

.privacy-note {
  text-align: center;

  color: #929298;

  font-size: 11px;

  line-height: 1.8;
}

/* =========================================
   ENGLISH
========================================= */

html[dir="ltr"] body {
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Helvetica Neue", Arial, sans-serif;
}

html[dir="ltr"] h1 {
  line-height: 0.99;

  letter-spacing: -3px;
}

html[dir="ltr"] .header-content p {
  line-height: 1.65;
}

html[dir="ltr"] .select-arrow {
  left: auto;
  right: 20px;
}

html[dir="ltr"] .button-arrow {
  transform: none;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {
  .page {
    padding: 14px 10px 30px;
  }

  .form-card {
    border-radius: 30px;
  }

  .form-header {
    padding: 20px 18px 27px;
  }

  .header-top {
    margin-bottom: 42px;
  }

  .brand-logo {
    max-width: 145px;
    height: 38px;
  }

  h1 {
    font-size: 41px;
  }

  .header-content p {
    font-size: 14px;
  }

  form {
    padding: 25px 17px 22px;

    border-radius: 24px;
  }

  .form-alert {
    margin: 0 18px 15px;
  }
}

/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 400px) {
  h1 {
    font-size: 35px;
  }

  .brand-logo {
    max-width: 125px;
  }

  .language-button {
    padding: 0 13px;

    font-size: 12px;
  }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;

    transition: none !important;
  }
}
