:root {
  --blue-900: #0b2f68;
  --blue-800: #0f4f99;
  --blue-700: #006fd6;
  --blue-600: #007bff;
  --blue-500: #1e8cff;
  --blue-100: #eaf4ff;
  --blue-050: #f6fbff;
  --ink: #14243a;
  --muted: #617289;
  --line: #cfe2f8;
  --panel: #ffffff;
  --soft: #f2f8ff;
}

* {
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 50% 0%, rgba(0, 123, 255, 0.2), rgba(0, 123, 255, 0) 36%),
    linear-gradient(180deg, #eef6ff 0%, #fbfdff 56%, #ffffff 100%);
  color: var(--ink);
  font-family: Tajawal, Arial, sans-serif;
  font-weight: 500;
}

.app {
  max-width: 560px;
  min-height: 100vh;
  margin: 0 auto;
  background: transparent;
  box-shadow: none;
}

.blue-hero {
  padding: 14px 14px 0;
}

header {
  min-height: auto;
  padding: 12px 4px 18px;
  border-bottom: 0;
  background: transparent;
}

.logo {
  color: var(--blue-800);
  font-size: 20px;
  font-weight: 800;
  gap: 10px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(0, 123, 255, 0.28);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(0, 123, 255, 0.16);
}

.login-link {
  color: var(--blue-800);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(207, 226, 248, 0.95);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(0, 123, 255, 0.1);
}

.hero-copy {
  padding: 6px 4px 18px;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 123, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
}

.hero-copy h1 {
  margin: 0 0 8px;
  color: var(--blue-900);
  font-size: 29px;
  font-weight: 800;
  line-height: 1.18;
}

.hero-copy p {
  max-width: 430px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
}

.stepper {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  color: #8ba0b8;
  background: transparent;
}

.step {
  min-width: 0;
  padding: 9px 4px;
  border: 1px solid rgba(207, 226, 248, 0.9);
  border-radius: 14px 14px 0 0;
  background: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.step-number {
  width: 24px;
  height: 24px;
  margin-bottom: 5px;
  border-color: #d8e7f8;
  color: #8ca0b8;
  font-family: Tajawal, Arial, sans-serif;
  font-weight: 800;
}

.step span {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.step.active {
  border-color: rgba(0, 123, 255, 0.38);
  background: var(--panel);
  box-shadow: 0 -8px 24px rgba(0, 123, 255, 0.08);
}

.step.active .step-number {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 123, 255, 0.24);
}

.step.active span {
  color: var(--blue-800);
}

main {
  padding: 0 14px 28px;
}

.form-panel {
  padding: 18px;
  border: 1px solid rgba(207, 226, 248, 0.92);
  border-radius: 0 0 22px 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.94)),
    var(--panel);
  box-shadow: 0 22px 56px rgba(0, 123, 255, 0.12);
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-heading span {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--blue-100);
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 800;
}

.panel-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.35;
  text-align: right;
}

.control-group {
  margin-bottom: 16px;
}

.label {
  display: block;
  margin-bottom: 8px;
  color: #344b68;
  font-size: 13px;
  font-weight: 800;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--soft);
  overflow: visible;
}

.segmented button {
  min-height: 46px;
  padding: 10px 8px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #53677f;
  font-family: Tajawal, Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  transition: background 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.segmented button + button {
  border-right: 0;
}

.segmented button:hover {
  background: rgba(255, 255, 255, 0.84);
}

.segmented button.active {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: 0 12px 24px rgba(0, 123, 255, 0.22);
  transform: translateY(-1px);
}

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

.field {
  margin-bottom: 0;
}

input[type=date],
input[type=email],
input[type=number],
input[type=tel],
input[type=text],
select {
  width: 100%;
  min-height: 52px;
  padding: 15px 14px;
  border: 1px solid #cbdff5;
  border-radius: 16px;
  background: #fbfdff;
  color: var(--ink);
  font-family: Tajawal, Arial, sans-serif;
  font-size: 16px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 22px rgba(0, 123, 255, 0.06);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

input::placeholder {
  color: #94a6bb;
  font-weight: 500;
}

input:focus,
select:focus {
  background: #ffffff;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.14), 0 14px 26px rgba(0, 123, 255, 0.1);
}

.error {
  min-height: 14px;
  margin-top: 5px;
  color: #c73838;
  font-family: Tajawal, Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.submit-panel {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #e2edf9;
}

.info-text {
  position: relative;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d3e6fb;
  border-radius: 16px;
  background: linear-gradient(135deg, #f0f7ff, #ffffff);
  color: #42566f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.75;
  box-shadow: 0 10px 24px rgba(0, 123, 255, 0.06);
}

.buttons-row {
  margin-top: 14px;
}

.btn {
  min-height: 54px;
  border-radius: 16px;
  font-family: Tajawal, Arial, sans-serif;
  font-size: 18px;
  font-weight: 800;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  color: #fff;
  box-shadow: 0 16px 30px rgba(0, 123, 255, 0.26);
}

.btn-primary:hover {
  filter: saturate(1.05);
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(0, 123, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 12px 22px rgba(0, 123, 255, 0.22);
}

.hidden {
  display: none;
}

.loading-screen {
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.96), rgba(11, 47, 104, 0.96));
}

@media screen and (min-width: 700px) {
  .app {
    max-width: 760px;
  }

  .blue-hero,
  main {
    padding-right: 22px;
    padding-left: 22px;
  }

  .hero-copy {
    padding-top: 18px;
    padding-bottom: 24px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

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

  .wide-field {
    grid-column: span 2;
  }
}

@media screen and (max-width: 480px) {
  .blue-hero {
    padding: 12px 10px 0;
  }

  main {
    padding: 0 10px 22px;
  }

  .hero-copy h1 {
    font-size: 25px;
  }

  .hero-copy p {
    font-size: 13px;
  }

  .stepper {
    gap: 4px;
  }

  .step {
    padding: 7px 2px;
    border-radius: 12px 12px 0 0;
  }

  .step-number {
    width: 22px;
    height: 22px;
    font-size: 10px;
  }

  .step span {
    font-size: 9px;
  }

  .form-panel {
    padding: 15px;
    border-radius: 0 0 19px 19px;
  }

  .panel-heading {
    display: block;
  }

  .panel-heading span {
    margin-bottom: 8px;
  }

  .panel-heading h2 {
    margin-top: 9px;
    font-size: 18px;
  }

  .segmented button {
    min-height: 44px;
    font-size: 13px;
  }
}
