* {
  box-sizing: border-box;
}

:root {
  color-scheme: light;
  --text: #0f172a;
  --muted: #475569;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --line: rgba(148, 163, 184, 0.28);
  --brand: #2563eb;
  --brand-strong: #1e40af;
  --ok: #16a34a;
  --error: #dc2626;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.15);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, #c7d2fe 0%, transparent 34%),
    radial-gradient(circle at 85% 20%, #bfdbfe 0%, transparent 33%),
    radial-gradient(circle at 50% 85%, #ddd6fe 0%, transparent 42%),
    #eef2ff;
  padding: 20px 14px 42px;
}

.background-glow {
  position: fixed;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(75px);
  z-index: -1;
  pointer-events: none;
}

.glow-1 {
  top: -120px;
  left: -90px;
  background: rgba(59, 130, 246, 0.38);
}

.glow-2 {
  right: -90px;
  bottom: -120px;
  background: rgba(139, 92, 246, 0.34);
}

.layout {
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.55rem, 3vw, 2.45rem);
  letter-spacing: -0.03em;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.badge {
  display: inline-block;
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.11);
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
}

.lang-btn {
  width: auto;
  min-width: 44px;
  margin: 0;
  padding: 7px 12px;
  border: 0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e293b;
  background: transparent;
  box-shadow: none;
}

.lang-btn:hover {
  transform: none;
  box-shadow: none;
  filter: none;
}

.lang-btn.active {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
}

.form-card form {
  display: grid;
  gap: 10px;
}

label {
  font-size: 0.84rem;
  font-weight: 600;
  color: #1e293b;
}

input,
select,
button {
  width: 100%;
  border-radius: 12px;
  font-size: 0.96rem;
}

input,
select {
  border: 1px solid #dbe2f0;
  background: var(--surface-strong);
  padding: 12px 13px;
  color: #0f172a;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input::placeholder {
  color: #94a3b8;
}

input:focus,
select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.16);
}

button {
  margin-top: 6px;
  border: none;
  padding: 12px 16px;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-strong) 100%);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(30, 64, 175, 0.3);
  filter: saturate(1.1);
}

button:active {
  transform: translateY(0);
}

.status {
  min-height: 22px;
  margin: 12px 0 0;
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.4;
}

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

.status.success {
  color: var(--ok);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
}

.service-list {
  display: grid;
  gap: 10px;
}

.service-item {
  border: 1px solid #dbe1ea;
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.88);
  display: grid;
  gap: 4px;
  line-height: 1.35;
}

.active {
  border-color: rgba(34, 197, 94, 0.6);
  background: rgba(240, 253, 244, 0.92);
}

[dir="rtl"] body,
[dir="rtl"] input,
[dir="rtl"] select,
[dir="rtl"] button {
  font-family: "Tajawal", "Cairo", "Segoe UI", Arial, sans-serif;
}

[dir="rtl"] .hero-top {
  flex-direction: row-reverse;
}

@media (min-width: 860px) {
  body {
    padding: 28px 20px 56px;
  }

  .layout {
    grid-template-columns: 1fr 1fr;
    gap: 18px;
  }

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

  .form-card {
    min-height: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px 10px 28px;
  }

  .card {
    border-radius: 16px;
    padding: 14px;
  }

  .hero-top {
    align-items: flex-start;
  }

  input,
  select,
  button {
    font-size: 16px;
  }
}
