:root {
  --saudi-green: #006c35;
  --saudi-green-deep: #004b26;
  --saudi-green-soft: #0e8a4d;
  --saudi-sand: #f7f5ef;
  --saudi-white: #ffffff;
  --saudi-ink: #183122;
  --saudi-border: rgba(0, 108, 53, 0.18);
  --shadow: 0 24px 60px rgba(0, 76, 38, 0.18);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Tahoma", "Arial", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 138, 77, 0.18), transparent 30%),
    linear-gradient(180deg, #eef8f1 0%, var(--saudi-sand) 100%);
  color: var(--saudi-ink);
}

.page-shell {
  width: min(1100px, calc(100% - 32px));
  margin: 32px auto 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(135deg, var(--saudi-green-deep), var(--saudi-green-soft));
  color: var(--saudi-white);
  box-shadow: var(--shadow);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -90px -120px auto;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero__flag {
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: var(--saudi-white);
  margin-bottom: 18px;
}

.hero__eyebrow {
  margin: 0 0 8px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero h1 {
  margin: 0;
  line-height: 1.6;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

.hero__text {
  max-width: 760px;
  margin: 16px 0 0;
  line-height: 1.9;
  opacity: 0.94;
}

.form-card {
  margin-top: -22px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 40px rgba(24, 49, 34, 0.12);
  backdrop-filter: blur(12px);
}

.section {
  padding: 22px 0;
  border-bottom: 1px solid var(--saudi-border);
}

.section:last-of-type {
  border-bottom: 0;
}

.section h2 {
  margin: 0 0 18px;
  font-size: 1.2rem;
  color: var(--saudi-green-deep);
}

.grid {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  font-size: 0.98rem;
}

label span {
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--saudi-border);
  border-radius: 14px;
  background: #fff;
  color: var(--saudi-ink);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--saudi-green-soft);
  box-shadow: 0 0 0 4px rgba(14, 138, 77, 0.12);
  transform: translateY(-1px);
}

textarea {
  resize: vertical;
}

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

.hidden {
  display: none;
}

.declaration {
  margin: 0 0 18px;
  line-height: 1.9;
}

.actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
}

.form-message {
  margin: 0;
  min-height: 24px;
  font-weight: 700;
}

.form-message.is-error {
  color: #a12d2f;
}

.form-message.is-success {
  color: var(--saudi-green);
}

button {
  border: 0;
  border-radius: 999px;
  padding: 15px 28px;
  background: linear-gradient(135deg, var(--saudi-green), var(--saudi-green-soft));
  color: var(--saudi-white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 26px rgba(0, 108, 53, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(0, 108, 53, 0.28);
}

button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

@media (max-width: 800px) {
  .page-shell {
    width: min(100% - 20px, 1100px);
    margin-top: 20px;
  }

  .hero,
  .form-card {
    padding: 20px;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .actions {
    flex-direction: column;
    align-items: stretch;
  }

  button {
    width: 100%;
  }
}
