/* Feedback survey — same design system as the registration landing page
   (web/src/app/globals.css): cream ground, Cadillac Gothic, brand-blue form
   section with white hairline fields, gold for errors, red primary button,
   navy footer. */

@font-face { font-family: "Cadillac Gothic"; src: url("../assets/fonts/CadillacGothic-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Cadillac Gothic"; src: url("../assets/fonts/CadillacGothic-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cadillac Gothic Wide"; src: url("../assets/fonts/CadillacGothic-WideMedium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Cadillac Gothic Wide"; src: url("../assets/fonts/CadillacGothic-WideBold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --cream: #EFEEE8;
  --ink: #1a1a1a;
  --blue: #2185C5;
  --blue-dark: #003D7A;
  --blue-mid: #2E86C5;
  --red: #E63524;
  --red-dark: #C42A1B;
  --gold: #F5B921;
  --navy: #0E355F;
  --font-body: "Cadillac Gothic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-display: "Cadillac Gothic Wide", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Arabic reads better a touch larger and looser than the Latin face. */
html[lang="ar"] body { line-height: 1.6; }
img { max-width: 100%; }
button, input, textarea { font: inherit; }

/* ------------------------------ language switch ------------------------------ */
.lang-switch {
  position: fixed;
  top: 12px;
  inset-inline-end: 12px;
  z-index: 50;
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(6px);
}
.lang-switch button {
  border: 0;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 999px;
  background: transparent;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}
.lang-switch button[aria-pressed="true"] { background: var(--blue-dark); color: #fff; }
.lang-switch button:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }

/* ----------------------------------- hero ----------------------------------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; text-align: center; }
.pattern { position: absolute; top: 0; width: 32px; pointer-events: none; user-select: none; }
.pattern-left { left: 0; }
.pattern-right { right: 0; }
.hero-inner { position: relative; margin: 0 auto; padding: 0 44px; max-width: 920px; }
.logo { height: 32px; width: auto; }
.hero-title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  color: var(--blue-dark);
}
.hero-sub { margin-top: 4px; font-size: 14px; letter-spacing: 0.02em; color: var(--blue-mid); }
.hero-dates { margin-top: 24px; font-family: var(--font-display); font-size: 16px; font-weight: 700; letter-spacing: 0.06em; }
.hero-place { margin-top: 8px; font-family: var(--font-display); font-size: 12px; font-weight: 500; letter-spacing: 0.08em; }
html[lang="ar"] .hero-title, html[lang="ar"] .hero-dates, html[lang="ar"] .hero-place { letter-spacing: 0; }

.btn-red {
  display: inline-block;
  margin-top: 24px;
  border: 0;
  border-radius: 4px;
  padding: 12px 32px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.08);
  transition: background-color 0.15s;
}
.btn-red:hover { background: var(--red-dark); }
.btn-red:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.btn-red:disabled { opacity: 0.6; cursor: default; }
html[lang="ar"] .btn-red { letter-spacing: 0; }

/* ---------------------------------- notice ---------------------------------- */
.notice { background: var(--blue-dark); color: #fff; padding: 16px 24px; text-align: center; }
.notice p { margin: 0 auto; max-width: 780px; font-size: 13px; line-height: 1.6; }

/* ---------------------------------- survey ---------------------------------- */
.survey { background: var(--blue); color: #fff; padding: 48px 20px; }
.survey-title {
  margin: 0 auto;
  max-width: 760px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}
.survey-intro { margin: 10px auto 0; max-width: 560px; text-align: center; font-size: 14px; line-height: 1.6; }
.survey-note {
  margin: 14px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
}
.survey-body { margin: 32px auto 0; max-width: 760px; }

.question {
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 6px;
  padding: 20px 18px;
  margin: 0 0 16px;
  min-width: 0;
  transition: border-color 0.15s;
}
.question.missing { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.question-counter {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--gold);
  padding: 0;
}
html[lang="ar"] .question-counter { letter-spacing: 0; }
.question-prompt { margin: 8px 0 0; font-family: var(--font-display); font-size: 16px; font-weight: 700; line-height: 1.4; }
.legend {
  margin-top: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}
.legend span:last-child { text-align: end; }
.row-label { margin: 16px 0 8px; font-size: 14px; font-weight: 700; }

/* Five rating chips — radio inputs underneath, so keyboard and screen readers
   get a real choice group. */
.scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 12px; border: 0; padding: 0; }
.row-label + .scale { margin-top: 0; }
.scale input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.scale label {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  user-select: none;
  transition: background-color 0.12s, color 0.12s, border-color 0.12s;
}
.scale label:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.scale input:checked + label { background: #fff; color: var(--blue-dark); border-color: #fff; }
.scale input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 1px; }

textarea {
  display: block;
  width: 100%;
  margin-top: 12px;
  min-height: 110px;
  resize: vertical;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 2px;
  background: transparent;
  color: #fff;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.5;
}
textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.counter { margin-top: 4px; font-size: 11px; color: rgba(255, 255, 255, 0.7); text-align: end; }

.field-error { margin: 10px 0 0; font-size: 12.5px; color: var(--gold); }

.submit-area { margin-top: 24px; text-align: center; }
.submit-area .btn-red { margin-top: 10px; padding: 14px 48px; letter-spacing: 0.14em; }
.submit-note { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.85); }
.form-error { margin: 12px 0 0; font-size: 12.5px; color: var(--gold); }

/* Honeypot: real people never see or fill it. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Thank-you / closed state */
.outcome {
  margin: 0 auto;
  max-width: 520px;
  padding: 40px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}
.outcome h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.outcome p { margin: 12px 0 0; font-size: 14px; line-height: 1.6; }

.contact { margin-top: 40px; text-align: center; font-size: 13px; line-height: 1.7; overflow-wrap: anywhere; }

/* ---------------------------------- footer ---------------------------------- */
.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #fff;
  padding: 20px 24px;
  text-align: center;
  font-size: 11px;
}

/* -------------------------------- breakpoints ------------------------------- */
@media (min-width: 640px) {
  .pattern { width: 64px; }
  .hero { padding: 64px 0 56px; }
  .hero-inner { padding: 0 64px; }
  .logo { height: 40px; }
  .hero-title { margin-top: 20px; font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .hero-dates { margin-top: 32px; font-size: 18px; }
  .hero-place { font-size: 14px; }
  .btn-red { margin-top: 32px; padding: 16px 40px; font-size: 15px; }
  .notice p { font-size: 14px; }
  .survey { padding: 56px 40px; }
  .survey-title { font-size: 28px; }
  .question { padding: 24px 28px; }
  .question-prompt { font-size: 18px; }
  .scale label { height: 48px; }
  .footer { flex-direction: row; justify-content: space-between; padding: 20px 40px; font-size: 12px; }
}
@media (min-width: 1024px) {
  .pattern { width: 15%; max-width: 260px; }
  .hero-title { font-size: 46px; }
  .hero-sub { font-size: 20px; }
  .survey { padding: 70px 90px; }
  .survey-title { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
