:root {
  --bg: #EDEAE2;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #d1d5db;
  --brand: #16a34a;
  --brand-dark: #15803d;
  --brand-soft: #e8f7ee;
  --accent: #334155;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

body.rtl {
  direction: rtl;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--brand-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
}

.container {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(209, 213, 219, 0.7);
}

.header-shell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
}

.brand img {
  height: 34px;
  width: auto;
  max-width: none;
  display: block;
}

.brand.small img {
  height: 28px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}

.header-language-row {
  display: flex;
  justify-content: center;
  align-items: center;
}

.lang-switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #bfe7cc;
  background: #fff;
  color: var(--brand-dark);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.lang-btn:hover {
  background: #f2fbf5;
}

.lang-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.mobile-only {
  display: none;
}

.desktop-only {
  display: flex;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.22);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  background: #fff;
  border-color: var(--line);
  color: var(--text);
}

.hero {
  padding: 46px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-copy p.lead {
  margin: 0 0 22px;
  font-size: 1.14rem;
  color: var(--muted);
  max-width: 700px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 28px;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid #ccefd8;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
}

.hero-card,
.feature-card,
.step-card,
.info-panel,
.form-panel {
  background: var(--card);
  border: 1px solid rgba(209, 213, 219, 0.8);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.7rem;
}

.hero-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 1.02rem;
}

.mini-steps,
.info-list,
.checkbox-group {
  display: grid;
  gap: 12px;
}

.mini-step,
.info-list li,
.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f8faf9;
  border: 1px solid #e5e7eb;
  font-size: 1rem;
}

.mini-step-number,
.step-card .step-number {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex: 0 0 auto;
}

.section,
.form-page {
  padding: 34px 0;
}

.section-title {
  margin: 0 0 18px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.15;
}

.section-subtitle,
.info-panel p,
.form-panel .intro {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 820px;
  font-size: 1.08rem;
}

.features,
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.feature-card p,
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.form-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.info-panel h1,
.form-panel h2 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
}

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

.field label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 16px;
}

.input,
.select,
textarea {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 17px;
  background: #fff;
  color: var(--text);
  outline: none;
}

.input:focus,
.select:focus,
textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12);
}

.checkbox-item input {
  margin-top: 4px;
  transform: scale(1.15);
}

.checkbox-item label {
  margin: 0;
  font-weight: 600;
  line-height: 1.45;
  font-size: 1rem;
}

.form-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.form-actions,
.helper-links,
.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer {
  padding: 28px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(209, 213, 219, 0.8);
  padding-top: 20px;
}

@media (max-width: 980px) {
  .hero-grid,
  .features,
  .steps,
  .form-shell {
    grid-template-columns: 1fr;
  }

  .nav-links a {
    font-size: 16px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 22px), var(--max));
  }

  .header-shell {
    gap: 6px;
    padding: 8px 0;
  }

  .header-top {
    justify-content: center;
  }

  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: flex;
    justify-content: center;
  }

  .nav-links-mobile {
    justify-content: center;
    gap: 14px;
  }

  .nav-links-mobile a {
    font-size: 14px;
  }

  .lang-switch {
    width: 100%;
    justify-content: center;
  }

  .lang-btn {
    min-width: 48px;
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-copy h1,
  .info-panel h1,
  .form-panel h2 {
    font-size: clamp(2rem, 10vw, 3.1rem);
    word-break: break-word;
  }

  .hero-copy p.lead,
  .section-subtitle,
  .hero-card p,
  .feature-card p,
  .step-card p,
  .info-panel p,
  .form-panel .intro {
    font-size: 1rem;
  }

  .hero-card,
  .feature-card,
  .step-card,
  .info-panel,
  .form-panel {
    padding: 20px;
    border-radius: 18px;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }
}

.continue-with {
  display: grid;
  gap: 8px;
  margin-top: -6px;
}

.continue-label {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

.continue-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.continue-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease;
}

.continue-btn:hover:not(:disabled) {
  border-color: var(--brand);
}

.continue-btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.continue-btn img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 auto;
}

.channel-toggle-buttons {
  display: flex;
  gap: 8px;
}

.channel-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.channel-btn.is-active {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--card));
}

.continue-status {
  font-size: 13px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 10px;
  line-height: 1.4;
}

.continue-status.found {
  background: var(--brand-soft);
  color: var(--brand-dark);
  border: 1px solid var(--line);
}

.continue-status.notfound {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #f59e0b;
}

.continue-status.error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.maintenance-banner {
  background: #fef3c7;
  color: #78350f;
  text-align: center;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 1px solid #f59e0b;
}
