:root {
  --bg-start: #f2f5fb;
  --bg-end: #eef2f7;
  --card: #ffffff;
  --title: #122946;
  --text: #344863;
  --muted: #5e7391;
  --border: #dfe5ef;
  --primary: #2f6fec;
  --shadow: 0 20px 50px rgba(15, 36, 64, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
}

body {
  min-height: 100vh;
  font-family: "Tajawal", "Cairo", "Noto Kufi Arabic", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
}

.page {
  width: min(720px, 100% - 32px);
  margin: 0 auto;
  padding: 28px 0 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  color: var(--title);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.back-link {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  color: #3f587f;
  border: 1px solid var(--border);
  background: #f9fbff;
  font-size: 18px;
  transition: all 0.2s ease;
}

.back-link:hover {
  color: #234c94;
  border-color: #c9d9f7;
  background: #edf3ff;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: clamp(18px, 2.4vw, 28px);
}

.section-title {
  margin: 0 0 6px;
  color: var(--title);
  font-size: clamp(1.2rem, 1.05rem + 0.45vw, 1.5rem);
  font-weight: 700;
  line-height: 1.55;
}

.section-text {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: clamp(1rem, 0.92rem + 0.35vw, 1.18rem);
  line-height: 1.85;
}

.section-text:last-child {
  margin-bottom: 0;
}

.home {
  padding-top: 64px;
  text-align: center;
}

.home h1 {
  margin-bottom: 8px;
}

.home p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 1.05rem;
}

.links {
  display: grid;
  gap: 12px;
}

.links a {
  display: block;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--title);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(15, 36, 64, 0.04);
  transition: all 0.2s ease;
}

.links a:hover {
  transform: translateY(-1px);
  border-color: #cad8f2;
  box-shadow: 0 10px 24px rgba(24, 60, 114, 0.1);
}

.links a::after {
  content: "←";
  color: var(--primary);
  margin-inline-start: 8px;
  font-weight: 700;
}

.notice {
  margin: 0 0 16px;
  border-radius: 12px;
  border: 1px solid #d6e4ff;
  background: #f3f7ff;
  padding: 12px 14px;
  color: #274265;
  line-height: 1.8;
}

.form-grid {
  display: grid;
  gap: 12px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  color: var(--title);
  font-weight: 600;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid #d5dfec;
  border-radius: 10px;
  background: #fbfdff;
  color: var(--text);
  padding: 12px 13px;
  font: inherit;
  outline: none;
}

.field input:focus,
.field textarea:focus {
  border-color: #9cb8ee;
  box-shadow: 0 0 0 3px rgba(47, 111, 236, 0.12);
}

.field textarea {
  min-height: 100px;
  resize: vertical;
}

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

.btn {
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-secondary {
  border: 1px solid #d5dfec;
  background: #fff;
  color: #274265;
}

.inline-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.inline-link:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .page {
    width: min(100% - 22px, 560px);
    padding-top: 20px;
  }

  .topbar {
    margin-bottom: 14px;
  }

  .card {
    border-radius: 16px;
  }
}
