:root {
  --green: #159447;
  --red: #c8102e;
  --black: #171717;
  --white: #ffffff;
  --light: #f7f7f7;
  --line: #e4e7e4;
  --muted: #66736a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Cairo, Arial, sans-serif;
  color: var(--black);
  background: linear-gradient(180deg, #ffffff 0%, var(--light) 54%, #ffffff 100%);
}

a { color: var(--green); }

.public-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.hero {
  min-height: 270px;
  display: flex;
  align-items: center;
  padding: 38px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(21, 148, 71, .96), rgba(23, 23, 23, .88)),
    radial-gradient(circle at 14% 18%, rgba(255,255,255,.2), transparent 26%);
  border-radius: 8px;
  overflow: hidden;
}

.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.hero p {
  max-width: 760px;
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.9;
}

.eyebrow {
  margin-bottom: 8px !important;
  color: #dff5e7;
  font-weight: 800;
}

.alert {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid #f0c5ce;
  background: #fff3f5;
  color: #8a1024;
  border-radius: 8px;
}

.join-form {
  margin-top: 24px;
  display: grid;
  gap: 20px;
}

.form-section {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(23, 23, 23, .05);
}

.form-section h2 {
  margin: 0 0 20px;
  font-size: 1.35rem;
}

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

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

label, fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  font-weight: 700;
}

fieldset {
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 10px;
  font-weight: 700;
}

label span, legend span { color: var(--red); }

input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #ccd5cf;
  border-radius: 8px;
  padding: 10px 13px;
  font: inherit;
  color: var(--black);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

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

input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(21, 148, 71, .12);
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
  font-weight: 600;
}

.choice input {
  width: 18px;
  min-height: 18px;
  margin-top: 5px;
  accent-color: var(--green);
}

.question {
  margin: 0 0 14px;
  font-weight: 800;
}

.honeypot, .other-field, .conditional { display: none; }
.other-field.is-visible, .conditional.is-visible { display: grid; margin-top: 16px; }

.consent-line {
  align-items: flex-start;
  line-height: 1.8;
}

.form-actions {
  display: flex;
  justify-content: flex-start;
}

button, .back-link {
  min-height: 50px;
  padding: 0 26px;
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover, .back-link:hover { background: #11783a; }

.success-panel {
  max-width: 760px;
  margin: 80px auto;
  padding: 44px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(23, 23, 23, .07);
}

.success-mark {
  width: 76px;
  height: 76px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  font-size: 2.1rem;
  font-weight: 800;
}

.success-panel h1 { margin: 0 0 10px; }
.success-panel p { line-height: 1.9; }

.request-number {
  margin: 24px auto;
  padding: 16px;
  border: 1px dashed var(--green);
  border-radius: 8px;
  background: #f3fbf6;
}

.request-number span { display: block; color: var(--muted); }
.request-number strong { font-size: 1.4rem; direction: ltr; display: inline-block; }

@media (max-width: 760px) {
  .public-shell { width: min(100% - 22px, 1120px); padding-top: 16px; }
  .hero, .form-section, .success-panel { padding: 22px; }
  .grid.two, .choices { grid-template-columns: 1fr; }
}

