/*
 * Form styling matched to the un.org "bootstrap_un2" theme
 * (https://www.un.org/en/contact-us-0). The page is embedded in the UN portal
 * as an iframe, so there is no header/footer here — form chrome only.
 */
:root {
  --un-blue: #009edb;          /* UN brand blue (accent) */
  --un-action: #1565c0;        /* link/button blue */
  --un-action-hover: #11519a;
  --un-text: #333;
  --un-border: #ddd;
  --un-border-hover: #b1b1b1;
  --un-error: #a94442;
  --un-success: #3c763d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 8px;
  font-family: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--un-text);
  background: #fff;
}

.card {
  max-width: 700px;
  margin: 0 auto;
}

/* Stacked rows: label above field, like the UN webform */
.form__row { margin-bottom: 0.25em; }

.form__label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.375em;
}

.req { color: var(--un-error); margin-inline-start: 2px; }

.form__field input,
.form__field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  padding: 0.5em;
  font-family: inherit;
  font-size: 16px;
  color: var(--un-text);
  background-color: #fff;
  border: 1px solid var(--un-border);
  border-radius: 3px;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: border-color 150ms ease;
}

/* Keep the native dropdown arrow on selects despite appearance: none */
.form__field select {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23333'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

/* Arabic (dir=rtl): mirror the select arrow */
[dir="rtl"] .form__field select {
  background-position: left 12px center;
  padding-right: 0.5em;
  padding-left: 32px;
}

.form__field input:hover,
.form__field select:hover {
  border-color: var(--un-border-hover);
}

.form__field input:focus,
.form__field select:focus {
  outline: none;
  border-color: var(--un-action);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.06), 0 0 5px rgba(21, 101, 192, 0.7);
}

.form__field input.invalid,
.form__field select.invalid {
  border-color: var(--un-error);
}

.form__error {
  color: var(--un-error);
  font-size: 13px;
  margin: 4px 0 0.75em;
  min-height: 16px;
}

.form__row--actions { margin: 1.25em 0 0.75em; }

/* Outline button: white with UN-blue border and dark uppercase label */
.btn {
  -webkit-appearance: none;
  appearance: none;
  display: inline-block;
  padding: 0.9em 2em;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.27px;
  text-transform: uppercase;
  line-height: 1;
  color: var(--un-text);
  background-color: #fff;
  border: 1px solid var(--un-blue);
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.btn:hover:not(:disabled) {
  background-color: var(--un-blue);
  color: #fff;
}
.btn:focus {
  outline: 3px solid rgba(0, 158, 219, 0.6);
  outline-offset: 2px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.form__message {
  margin: 16px 0 0;
  font-size: 15px;
}
.form__message.success { color: var(--un-success); }
.form__message.error { color: var(--un-error); }

.form__note {
  margin: 20px 0 0;
  font-size: 13px;
}

/* Visually hidden but still announced by screen readers */
.sr-only {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Honeypot — visually and programmatically hidden from real users */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
