:root {
  --imt-primary: #4569A8;
  --imt-navy: #1B2A4A;
  --imt-soft: #E8EEF7;
  --imt-gold: #C9A227;
  --imt-white: #FFFFFF;
  --imt-ink: #142033;
  --imt-muted: #5B6B84;
  --imt-danger: #B42318;
  --imt-radius: 18px;
  --imt-shadow: 0 24px 60px rgba(27, 42, 74, 0.18);
  --font-display: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--imt-ink);
  background:
    radial-gradient(circle at top left, rgba(69, 105, 168, 0.18), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(201, 162, 39, 0.12), transparent 35%),
    linear-gradient(180deg, #f7f9fc 0%, #eef3f9 45%, #f8fafc 100%);
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--imt-primary);
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(69, 105, 168, 0.12);
}

.site-header__inner,
.container {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--imt-navy);
}

.brand span {
  display: block;
  font-size: 0.82rem;
  color: var(--imt-muted);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--imt-primary);
  color: var(--imt-white);
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease;
}

.header-cta:hover {
  background: #355891;
  transform: translateY(-1px);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, var(--imt-soft) 100%);
}

.hero--official .hero__banner {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(69, 105, 168, 0.12);
}

.hero--official .hero__banner img {
  width: 100%;
  height: auto;
  display: block;
  max-height: min(62vh, 640px);
  object-fit: contain;
  object-position: center top;
  background: #f7f9fc;
}

.hero__content {
  width: min(900px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 2.4rem) 0 clamp(2rem, 5vw, 2.8rem);
  text-align: center;
}

.hero__copy {
  max-width: 42rem;
  margin: 0 auto 1.25rem;
  color: var(--imt-muted);
  font-size: 1.05rem;
}

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0.85rem 1.5rem;
  border-radius: 14px;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--imt-primary), #355891);
  color: var(--imt-white);
  box-shadow: 0 14px 30px rgba(69, 105, 168, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, #d4b34a, var(--imt-gold));
  color: var(--imt-navy);
}

.section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.section-card {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(69, 105, 168, 0.12);
  border-radius: calc(var(--imt-radius) + 6px);
  box-shadow: var(--imt-shadow);
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.8rem;
}

.progress__step {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--imt-muted);
  font-weight: 600;
}

.progress__step span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: var(--imt-soft);
  color: var(--imt-primary);
  font-size: 0.85rem;
}

.progress__step.is-active {
  color: var(--imt-navy);
}

.progress__step.is-active span {
  background: var(--imt-primary);
  color: #fff;
}

.form-grid {
  display: grid;
  gap: 1.1rem;
}

.form-section-title {
  margin: 1.4rem 0 0.4rem;
  font-family: var(--font-display);
  color: var(--imt-navy);
  font-size: 1.2rem;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
  color: var(--imt-navy);
}

.req {
  color: var(--imt-danger);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="number"],
input[type="password"],
input[type="file"],
select,
textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(69, 105, 168, 0.22);
  border-radius: 14px;
  background: #fff;
  color: var(--imt-ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--imt-primary);
  box-shadow: 0 0 0 4px rgba(69, 105, 168, 0.16);
}

.field-error {
  color: var(--imt-danger);
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.alert {
  padding: 0.95rem 1.1rem;
  border-radius: 14px;
  margin-bottom: 1rem;
}

.alert-error {
  background: #fef3f2;
  color: #7a271a;
  border: 1px solid #fecdca;
}

.alert-success {
  background: #ecfdf3;
  color: #067647;
  border: 1px solid #abefc6;
}

.choice-group {
  display: grid;
  gap: 0.7rem;
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(69, 105, 168, 0.18);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.choice input {
  width: 18px;
  height: 18px;
  accent-color: var(--imt-primary);
}

#success-story-fields[hidden] {
  display: none !important;
}

.form-note {
  margin-top: 0.85rem;
  color: var(--imt-muted);
  text-align: center;
  font-size: 0.95rem;
}

.thank-you {
  min-height: 70vh;
  display: grid;
  place-items: center;
  padding: 3rem 0;
}

.timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin: 1.8rem 0;
}

.timeline__item {
  background: var(--imt-soft);
  color: var(--imt-navy);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  font-weight: 700;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--imt-muted);
}

@media (max-width: 768px) {
  .hero--official .hero__banner img {
    max-height: none;
  }

  .brand span {
    display: none;
  }

  .btn,
  .header-cta {
    width: 100%;
  }

  .site-header__inner {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
