
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #f3f4f6;
  color: #111827;
}
.app-shell {
  min-height: 100vh;
  padding: 0 16px 40px;
}
.screen { display: none; }
.screen.active { display: block; }
.flag-header {
  max-width: 1100px;
  margin: 0 auto;
  height: 180px;
  background: linear-gradient(to bottom, #1c8a43 0 33.33%, #ffffff 33.33% 66.66%, #d32f2f 66.66% 100%);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.flag-header.compact { height: 130px; }
.logo-wrap {
  background: rgba(255,255,255,0.78);
  padding: 10px 22px;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12);
}
.main-logo {
  height: 96px;
  width: auto;
  display: block;
}
.card {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}
.hero-image-panel {
  background: #0b1220;
  display: flex;
  align-items: stretch;
  justify-content: center;
}
.hero-image, .final-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-copy {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.centered-card {
  text-align: center;
}
.narrow {
  max-width: 720px;
  padding: 32px;
}
.terms-card, .review-card { padding: 28px; }
.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.button-row.stacked {
  flex-direction: column;
  max-width: 260px;
}
.btn {
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
}
.btn.primary { background: #0f3cc9; color: #fff; }
.btn.secondary { background: #111827; color: #fff; }
.btn.danger { background: #c62828; color: #fff; }
.btn.ghost { background: #eef2ff; color: #1f2937; }
.back-btn { margin-top: 24px; }
.terms-top {
  display: grid;
  grid-template-columns: 100px 1fr 100px;
  gap: 16px;
  align-items: center;
  background: #fafaf9;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 20px;
}
.terms-top img {
  width: 100%;
  max-width: 90px;
  border-radius: 50%;
  justify-self: center;
}
.terms-top .intro-copy {
  text-align: center;
  line-height: 1.8;
  font-size: 0.98rem;
}
.progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #4b5563;
  margin-bottom: 14px;
}
.term-box {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  background: #fbfdff;
}
.term-body { white-space: pre-line; line-height: 1.85; }
.details-form {
  display: grid;
  gap: 16px;
}
.details-form label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}
.details-form input {
  width: 100%;
  padding: 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-size: 1rem;
}
.review-content {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 24px;
  background: #fbfdff;
  white-space: pre-line;
  line-height: 1.85;
  max-height: 65vh;
  overflow: auto;
}
.submit-status { margin-top: 14px; font-weight: 700; }
.submit-status.error { color: #b91c1c; }
.submit-status.success { color: #166534; }
.reject-message {
  background: #fee2e2;
  color: #991b1b;
  padding: 18px;
  border-radius: 14px;
  font-weight: 700;
}
.welcome-final-card {
  max-width: 980px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 540px;
}
.final-copy {
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.social-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.social-links a {
  text-decoration: none;
  color: #0f3cc9;
  font-weight: 700;
}
.rtl { direction: rtl; text-align: right; }
@media (max-width: 800px) {
  .hero-grid, .welcome-final-card { grid-template-columns: 1fr; }
  .terms-top { grid-template-columns: 1fr; }
  .progress-row { flex-direction: column; }
  .main-logo { height: 72px; }
}
