:root {
  --brand: #0b8f5a;
  --brand-dark: #086b44;
  --brand-soft: #e8f7f0;
  --brand-mid: #b8e5cf;
  --ink: #14231c;
  --muted: #4a5c53;
  --line: #d5e6dd;
  --surface: rgba(255, 255, 255, 0.88);
  --danger: #b42318;
  --danger-soft: #fef3f2;
  --shadow: 0 18px 50px rgba(11, 143, 90, 0.12);
  --radius: 18px;
  --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(11, 143, 90, 0.18), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(11, 143, 90, 0.12), transparent 36%),
    linear-gradient(180deg, #f4fbf7 0%, #eef8f3 48%, #f7faf8 100%);
  line-height: 1.8;
}

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

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

.page {
  width: min(760px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.5rem 0 3.5rem;
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 10px 24px rgba(11, 143, 90, 0.28);
}

.brand-name {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--brand-dark);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.hero {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 6px);
  padding: 2rem 1.75rem;
  margin-bottom: 1.25rem;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(8, 107, 68, 0.96), rgba(11, 143, 90, 0.92)),
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18), transparent 40%);
  box-shadow: var(--shadow);
  animation: rise 0.55s ease both;
}

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

.hero h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.65rem;
  font-size: clamp(1.55rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.35;
}

.hero p {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(213, 230, 221, 0.9);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 10px 30px rgba(20, 35, 28, 0.04);
  animation: rise 0.65s ease both;
}

.card:nth-of-type(2) {
  animation-delay: 0.05s;
}

.card:nth-of-type(3) {
  animation-delay: 0.1s;
}

.card:nth-of-type(4) {
  animation-delay: 0.15s;
}

.card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.card p,
.card li {
  color: var(--muted);
  font-size: 1rem;
}

.card p {
  margin: 0 0 0.85rem;
}

.card p:last-child {
  margin-bottom: 0;
}

.content-block p {
  white-space: pre-line;
}

ul,
ol {
  margin: 0;
  padding-inline-start: 1.35rem;
}

li + li {
  margin-top: 0.45rem;
}

.notice {
  background: var(--danger-soft);
  border: 1px solid #fecdca;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  color: #7a271a;
}

.notice strong {
  color: var(--danger);
}

.form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.4rem;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.95rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(11, 143, 90, 0.14);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.25rem;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font: inherit;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(11, 143, 90, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(11, 143, 90, 0.3);
}

.btn:active {
  transform: translateY(1px);
}

.alert {
  border-radius: 14px;
  padding: 0.95rem 1.1rem;
  margin-bottom: 1rem;
  font-weight: 600;
  animation: rise 0.4s ease both;
}

.alert-success {
  background: var(--brand-soft);
  border: 1px solid var(--brand-mid);
  color: var(--brand-dark);
}

.alert-error {
  background: var(--danger-soft);
  border: 1px solid #fecdca;
  color: #7a271a;
}

.footer {
  margin-top: 1.75rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin-bottom: 0.75rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 1.25rem, 760px);
    padding-top: 1.5rem;
  }

  .brand-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .card {
    padding: 1.25rem 1.1rem;
  }
}
