/* HRDF visual identity (هوية جديدة): black ground, orange/blue silk-wave
   artwork, white type with orange accents. Main stylesheet for the site.
   Paths below are relative to this file (assets/css/):
   fonts → ../fonts/, images → ../images/.
   Plugin CSS (Select2) is loaded separately from assets/libs/. */

@font-face {
  font-family: "SST";
  src: url("../fonts/sst-arabic-medium.ttf") format("truetype");
  font-weight: 100 500;
  font-display: swap;
}

@font-face {
  font-family: "SST";
  src: url("../fonts/sst-arabic-bold.ttf") format("truetype");
  font-weight: 600 900;
  font-display: swap;
}

:root {
  --black: #000000;
  --ink: #0a0c12;
  --blue: #005187;
  --blue-light: #326a9d;
  --orange: #df7c2e;
  --orange-dark: #b8611f;
  --orange-soft: #f4a460;
  --green: #30825a;
  --red: #c0392b;
  --text: #ffffff;
  --text-soft: rgba(255, 255, 255, 0.78);
  --text-mute: rgba(255, 255, 255, 0.55);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.1);
  --border-2: rgba(255, 255, 255, 0.18);
  --orange-surface: rgba(223, 124, 46, 0.14);
  --orange-border: rgba(223, 124, 46, 0.38);
  --bg-black: rgba(0, 0, 0, 0.4);
  --bg-blue: rgba(0, 84, 137, 0.4);
  --bg-orange: rgba(236, 119, 38, 0.2);
  --wave: url("../images/background/wave.jpg");
  --radius: 14px;
  --header-h: 68px;
}

/* ---------- Base ---------- */

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

html {
  background: var(--black);
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "SST", Tahoma, Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: transparent;
  overflow-x: hidden;
}

/* Page-wide background: blue → orange mix under a black veil, fixed to the
   viewport so the colours flow behind every section. Static on purpose —
   an animated full-screen layer costs GPU time on every frame. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(var(--bg-black), var(--bg-black)),
    radial-gradient(ellipse 45% 40% at 78% 22%, var(--bg-blue), transparent 70%),
    radial-gradient(ellipse 40% 35% at 22% 80%, var(--bg-orange), transparent 70%),
    linear-gradient(160deg, transparent 0%, var(--bg-blue) 55%, var(--bg-orange) 100%),
    var(--black);
}

img,
svg {
  max-width: 100%;
}

/* Keep images in proportion when only one side is sized. */
img {
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
p,
ul {
  margin: 0;
}

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

a:hover {
  color: var(--text);
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

[hidden],
.is-hidden {
  display: none !important;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.ic {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

.container {
  width: min(1200px, 100% - 32px);
  margin-inline: auto;
}

.container--narrow {
  width: min(880px, 100% - 32px);
}

.section {
  position: relative;
  padding: 100px 0;
}

.center {
  text-align: center;
}

/* ---------- Typography ---------- */

.eyebrow {
  display: block;
  color: var(--orange);
  font-weight: 500;
  font-size: 16px;
  margin-bottom: 8px;
}

.title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 14px;
}

.line {
  display: block;
  width: 56px;
  height: 4px;
  border-radius: 4px;
  background: var(--orange);
  margin: 0 auto 18px;
}

.lead {
  color: var(--text-soft);
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 36px;
  border: 1px solid var(--orange);
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  background: var(--orange-dark);
  border-color: var(--orange-dark);
  color: #fff;
}

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

/* .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}  */

.btn--ghost {
  background: transparent;
  border-color: var(--border-2);
}

.btn--ghost:hover {
  background: var(--surface-2);
  border-color: var(--orange);
}

.btn--sm {
  min-height: 38px;
  padding: 6px 18px;
  font-size: 14px;
}

.btn--green {
  background: #1e8449;
  border-color: #1e8449;
}

.btn--green:hover {
  background: #22a355;
  border-color: #22a355;
}

.btn--danger {
  background: transparent;
  border-color: rgba(192, 57, 43, 0.6);
  color: #ff8a7a;
}

.btn--danger:hover {
  background: var(--red);
  border-color: var(--red);
}

/* Busy state replaces the old full-page preloader. */
.btn.is-busy {
  pointer-events: none;
  color: transparent;
  position: relative;
}

.btn.is-busy::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  transition: background-color 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(0, 0, 0, 0.88);
  border-bottom-color: var(--border);
}

.site-header .container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  color: var(--text);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav a:hover {
  background: var(--surface-2);
  color: var(--orange-soft);
}

.social {
  display: flex;
  gap: 10px;
}

.social a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: #fff;
  font-size: 17px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.social a:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border-2);
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-btn .ic-close,
.site-header.is-open .menu-btn .ic-menu {
  display: none;
}

.site-header.is-open .menu-btn .ic-close {
  display: block;
}

@media (max-width: 767px) {
  .menu-btn {
    display: inline-flex;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    inset-inline: 0;
    flex-direction: column;
    padding: 12px 16px 20px;
    background: rgba(0, 0, 0, 0.94);
    border-bottom: 1px solid var(--border);
    display: none;
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav a {
    padding: 12px 16px;
  }

  .site-header .social a {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--black);
  overflow: hidden;
  isolation: isolate;
}

/* Same wave, size and position as the agenda section: bottom-left corner.
   ::after is the same layer turned 180°, so the wave also appears in the
   opposite (top-right) corner. */
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--wave) no-repeat left -430px bottom -300px / 1400px auto;
  opacity: 0.45;
  pointer-events: none;
}

.hero::after {
  transform: rotate(180deg);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: calc(var(--header-h) + 32px) 0 72px;
  animation: rise 0.7s ease both;
}

/* align-self stops the flex column from stretching the logo to full width;
   object-fit keeps its original proportions in any case. */
.hero__logo {
  align-self: flex-start;
  height: 170px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.hero__display {
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.15;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.hero__subtitle {
  color: var(--orange);
  font-weight: 500;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.4;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.95), 0 0 4px rgba(0, 0, 0, 0.8);
}

.hero__text {
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
  line-height: 1.95;
  text-align: justify;
  max-width: 760px;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.9);
}

.hero__text p + p {
  margin-top: 12px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.meta-tile {
  flex: 1 1 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 20px;
  text-align: center;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0);
  border: 1px solid var(--orange-border);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.5;
}

.meta-tile .ic {
  font-size: 26px;
  color: var(--orange);
}

.hero__arrow {
  position: absolute;
  bottom: 24px;
  left: 50%;
  translate: -50% 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  color: #fff;
  font-size: 18px;
  animation: bob 2s ease-in-out infinite;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
}

@keyframes bob {
  50% {
    transform: translateY(6px);
  }
}

@media (min-width: 992px) {
  .hero__body {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-areas:
      "display text"
      "subtitle text"
      "meta meta";
    column-gap: 56px;
    align-items: end;
  }

  .hero__display {
    grid-area: display;
    margin-bottom: 28px;
  }

  .hero__subtitle {
    grid-area: subtitle;
  }

  .hero__text {
    grid-area: text;
    align-self: center;
    max-width: none;
    padding-inline-start: 28px;
    border-inline-start: 2px solid var(--orange-border);
  }

  .hero__meta {
    grid-area: meta;
    margin-top: 40px;
  }
}

@media (max-width: 991px) {
  .hero__body {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .hero__logo {
    height: 120px;
    align-self: center;
  }
}

/* ---------- About ---------- */

.why {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.check-list {
  list-style: none;
/*   padding: 0;
 */  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: start;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.85;
}

.check-list .ic {
  margin-top: 4px;
  padding: 5px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--orange-surface);
  color: var(--orange);
}

.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

/* Each card places the blue and orange glows differently so they don't
   look cloned. */
.feature {
  --blue-at: 85% 10%;
  --orange-at: 10% 95%;
  flex: 0 1 340px;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background-color: var(--black);
  background-image:
    radial-gradient(ellipse 80% 70% at var(--blue-at), var(--bg-blue), transparent 70%),
    radial-gradient(ellipse 70% 60% at var(--orange-at), var(--bg-orange), transparent 70%);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.feature:hover {
  border-color: var(--orange-border);
  transform: translateY(-3px);
}

.feature:nth-child(2) {
  --blue-at: 15% 10%;
  --orange-at: 90% 90%;
}

.feature:nth-child(3) {
  --blue-at: 50% 0%;
  --orange-at: 50% 100%;
}

.feature:nth-child(4) {
  --blue-at: 90% 80%;
  --orange-at: 10% 10%;
}

.feature:nth-child(5) {
  --blue-at: 10% 90%;
  --orange-at: 90% 15%;
}

.feature__chip {
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 11px;
  background: var(--orange-surface);
  border: 1px solid var(--orange-border);
}

.feature__chip img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.feature h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature p {
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

@media (max-width: 767px) {
  .feature {
    flex-basis: 100%;
  }
}

/* ---------- Agenda ---------- */

.agenda {
  background: var(--black);
  overflow: hidden;
}

.agenda::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--wave) no-repeat left -460px bottom -300px / 1100px auto;
  opacity: 0.45;
  pointer-events: none;
}

.agenda > .container {
  position: relative;
}

.tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.tab {
  padding: 12px 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.tab:hover {
  background: rgba(255, 255, 255, 0.14);
}

.tab.is-active {
  background: var(--orange);
  border-color: var(--orange);
}

.day-panel {
  animation: rise 0.4s ease both;
}

.day-date {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--orange);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 36px;
}

.day-date .ic {
  font-size: 20px;
}

.schedule {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.slot {
  display: flex;
  gap: 24px;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.slot__time {
  flex: 0 0 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  padding-inline-end: 20px;
  border-inline-end: 1px solid var(--border);
}

.slot__time .ic {
  font-size: 20px;
  color: var(--orange);
}

.slot__time em {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  opacity: 0.7;
}

.slot__sessions {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.slot__sessions--single {
  grid-template-columns: 1fr;
}

.session {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--blue);
}

.session--stage {
  background: #2b2e35;
}

.session--break {
  background: var(--orange);
}

.session__tag {
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 11px;
  font-weight: 700;
}

.session p {
  font-size: 14px;
  line-height: 1.7;
}

.session--break p {
  font-weight: 700;
  text-align: center;
}

.agenda__download {
  text-align: center;
  margin-top: 48px;
}

@media (max-width: 991px) {
  .slot__sessions {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .slot {
    flex-direction: column;
    gap: 14px;
  }

  .slot__time {
    flex: none;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding: 0 0 14px;
    border-inline-end: none;
    border-bottom: 1px solid var(--border);
  }

  .slot__sessions {
    grid-template-columns: 1fr;
  }
}

/* ---------- Forms ---------- */

.card {
  background: rgba(10, 12, 18, 0.78);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.field--full {
  grid-column: 1 / -1;
}

.label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 14px;
}

.label .ic {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: var(--orange-surface);
  color: var(--orange);
}

.label--center {
  justify-content: center;
}

.input {
  display: block;
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: #10344a;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(223, 124, 46, 0.3);
}

.input.is-invalid {
  border-color: #ff6b5a;
  box-shadow: 0 0 0 3px rgba(255, 107, 90, 0.25);
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23df7c2e' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px;
  background-position: left 14px center;
  cursor: pointer;
}

[dir="ltr"] select.input,
select.input[dir="ltr"] {
  background-position: right 14px center;
}

/* Hide number spinners on the mobile field. */
.input[type="number"]::-webkit-inner-spin-button,
.input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.input[type="number"] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.phone {
  display: grid;
  grid-template-columns: 1fr 150px;
  gap: 10px;
}

.phone__code {
  position: relative;
}

/* ---------- Select2 (country code with flags, category) ---------- */

.select2-container .select2-selection--single {
  height: 48px;
  display: flex;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  flex: 1;
  color: #10344a;
  line-height: normal;
  padding-inline: 14px 34px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 46px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-top-color: var(--orange);
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-bottom-color: var(--orange);
}

.select2-container--focus .select2-selection--single,
.select2-container--open .select2-selection--single {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(223, 124, 46, 0.3);
}

/* The real <select> is hidden by Select2 — show its error on the visible box. */
select.is-invalid + .select2-container .select2-selection--single {
  border-color: #ff6b5a;
  box-shadow: 0 0 0 3px rgba(255, 107, 90, 0.25);
}

.select2-dropdown {
  border: none;
  border-radius: 10px;
  overflow: hidden;
  color: #10344a;
  font-family: "SST", Tahoma, Arial, sans-serif;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.select2-ltr {
  direction: ltr;
  min-width: 170px;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background: var(--orange);
}

.select2-container--default .select2-results__option--selected {
  background: #fde8d7;
}

.select2-search--dropdown .select2-search__field {
  border-radius: 8px;
  padding: 6px 10px;
  color: #10344a;
}

.flag-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  direction: ltr;
}

.flag-option img {
  width: 22px;
  height: 15px;
  border-radius: 2px;
  object-fit: cover;
}

.feedback {
  display: block;
  min-height: 0;
  margin-top: 6px;
  font-size: 13px;
  color: #ff8a7a;
}

.feedback:empty {
  display: none;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.choice input {
  accent-color: var(--orange);
  width: 17px;
  height: 17px;
  margin: 0;
}

.choice:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-surface);
  color: var(--orange-soft);
  font-weight: 700;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-soft);
  cursor: pointer;
}

.consent input {
  accent-color: var(--orange);
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex-shrink: 0;
}

.consent a {
  text-decoration: underline;
}

.form-actions {
  margin-top: 32px;
  text-align: center;
}

.contact {
  margin-top: 28px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.contact__title {
  display: block;
  font-weight: 500;
  font-size: 14.5px;
  margin-bottom: 14px;
}

.contact__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 28px;
}

.contact__items a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  direction: ltr;
}

.contact__items .ic {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: 50%;
  background: var(--orange-surface);
  color: var(--orange);
}

.contact__items .ic--wa {
  background: rgba(37, 211, 102, 0.16);
  color: #25d366;
}

/* Privacy / cookie policy links under a form. */
.form-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin: 18px 0 0;
  color: var(--text-mute);
  font-size: 13.5px;
}

.form-legal a {
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-legal a:hover {
  color: var(--orange);
}

@media (max-width: 767px) {
  .section {
    padding: 72px 0;
  }

  .card {
    padding: 28px 18px;
    border-radius: 16px;
  }

  .fields {
    grid-template-columns: 1fr;
  }

  .phone {
    grid-template-columns: 1fr 130px;
  }
}

/* ---------- Workshop / session / speaker picker ---------- */

.picker {
  margin-top: 28px;
}

.picker__title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  margin: 28px 0 16px;
}

.picker__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
  padding: 4px;
  overscroll-behavior: contain;
}

.picker__grid::-webkit-scrollbar {
  width: 8px;
}

.picker__grid::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 4px;
}

.picker__empty {
  text-align: center;
  color: var(--text-mute);
  padding: 20px 0;
}

.wsp-check {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wsp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  min-height: 220px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  cursor: pointer;
  font-size: 13.5px;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wsp-card:hover {
  border-color: var(--orange-border);
}

.wsp-check:focus-visible + .wsp-card {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.wsp-check:checked + .wsp-card {
  border-color: var(--orange);
  background: var(--orange-surface);
}

.wsp-check:checked + .wsp-card::after {
  content: "✓";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--orange);
  font-weight: 700;
}

.wsp-check:disabled + .wsp-card {
  opacity: 0.4;
  cursor: not-allowed;
}

.wsp-card__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  margin-bottom: 6px;
}

.wsp-card__title {
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wsp-card__presenter {
  color: var(--text-mute);
}

.wsp-card__date {
  color: var(--orange-soft);
  font-weight: 700;
}

.wsp-card__seats {
  margin-top: auto;
  font-weight: 700;
}

.wsp-card__seats--ok {
  color: #5fd39a;
}

.wsp-card__seats--full {
  color: #ff8a7a;
}

.picker__divider {
  height: 2px;
  margin: 28px 0 0;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--blue-light), transparent);
  opacity: 0.6;
}

.counters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 0;
}

.counter {
  min-width: 110px;
  padding: 10px 16px;
  border-radius: 10px;
  text-align: center;
  font-size: 13px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.counter b {
  display: block;
  font-size: 22px;
  line-height: 1.2;
}

.counter--workshop b {
  color: #5fd39a;
}

.counter--session b {
  color: #6fb3e8;
}

.counter--speaker b {
  color: var(--orange-soft);
}

.notice {
  max-width: 640px;
  margin: 24px auto 0;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--orange-border);
  background: var(--orange-surface);
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
}

/* ---------- Footer ---------- */

.site-footer {
  position: relative;
  padding: 48px 0 28px;
  border-top: 1px solid var(--orange-border);
  background: radial-gradient(circle at 50% 0%, rgba(223, 124, 46, 0.1), transparent 55%);
  text-align: center;
}

.site-footer .social {
  justify-content: center;
  margin-bottom: 26px;
}

.site-footer .social a {
  width: 48px;
  height: 48px;
  font-size: 19px;
}

.site-footer p {
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--text-mute);
  font-size: 13.5px;
}

.site-footer p a {
  color: rgba(255, 255, 255, 0.9);
}

.site-footer p a:hover {
  color: var(--orange);
}

/* Privacy / cookie policy links: no second divider line. */
.site-footer p.site-footer__legal {
  padding-top: 10px;
  border-top: 0;
}

.site-footer__legal span {
  margin: 0 8px;
}

.to-top {
  position: fixed;
  bottom: 20px;
  right: 24px;
  z-index: 90;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s, background-color 0.2s ease;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--blue);
}

/* ---------- Cookie banner + preferences dialog ---------- */

.cookie-banner {
  position: fixed;
  inset: auto 0 0;
  z-index: 110;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 32px;
  background: rgba(8, 10, 16, 0.97);
  border-top: 1px solid var(--orange-border);
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.45);
}

.cookie-banner p {
  flex: 1 1 420px;
  font-size: 14px;
  color: var(--text-soft);
}

.cookie-banner p a {
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.dialog {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  border: 1px solid var(--border-2);
  border-radius: 18px;
  background: var(--ink);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.dialog__head,
.dialog__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
}

.dialog__head {
  border-bottom: 1px solid var(--border);
}

.dialog__head h2 {
  font-size: 18px;
}

.dialog__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 22px;
}

.dialog__foot {
  justify-content: flex-start;
  border-top: 1px solid var(--border);
}

.icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: transparent;
  font-size: 16px;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--orange);
}

.pref {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.pref strong {
  display: block;
  font-size: 15px;
}

.pref small {
  display: block;
  color: var(--text-mute);
  font-size: 13px;
}

.pref__badge {
  flex-shrink: 0;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--surface-2);
  font-size: 12px;
}

.switch {
  flex-shrink: 0;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 44px;
  height: 24px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.switch:checked {
  background: var(--orange);
}

.switch:checked::after {
  transform: translateX(-20px);
}

@media (max-width: 767px) {
  .cookie-banner {
    padding: 16px 20px;
    justify-content: center;
  }
}

/* ---------- Flash messages ---------- */

.flashes {
  position: fixed;
  top: 16px;
  left: 50%;
  translate: -50% 0;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(440px, calc(100% - 32px));
  pointer-events: none;
}

.flash {
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--ink);
  border: 1px solid var(--border-2);
  border-inline-start: 4px solid var(--orange);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  font-weight: 500;
  text-align: center;
  pointer-events: auto;
  animation: rise 0.3s ease both;
}

.flash--success {
  border-inline-start-color: #2ecc71;
}

.flash--danger {
  border-inline-start-color: #ff6b5a;
}

/* ---------- Edit-registration page ---------- */

.page-top {
  padding: 56px 0 100px;
}

.page-logo {
  display: block;
  width: 240px;
  margin: 0 auto 28px;
  filter: brightness(0) invert(1);
}

.page-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
}

.card--narrow {
  max-width: 560px;
  margin: 32px auto 0;
}

/* Message box at the top of a form (edit / manage pages). */
.alert {
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.7;
}

.alert--success {
  border: 1px solid rgba(48, 130, 90, 0.6);
  background: rgba(48, 130, 90, 0.18);
}

.alert--danger {
  border: 1px solid rgba(192, 57, 43, 0.6);
  background: rgba(192, 57, 43, 0.18);
}

/* Who is editing, on manage-registration.php. */
.manage-who {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin: 0 0 8px;
  color: var(--text-soft);
  font-size: 15px;
}

.manage-who b {
  color: var(--text);
}

/* manage-registration.php: the two boxes ("بياناتي" and the workshops). */
.manage-title {
  margin: 0 0 24px;
  font-size: clamp(20px, 2.4vw, 24px);
}

.manage-card {
  margin-top: 24px;
}

.manage-card .picker {
  margin-top: 24px;
}

.manage-hint {
  margin: 10px 0 0;
  color: var(--text-mute);
  font-size: 13.5px;
  text-align: center;
}

/* A registered day: shown checked, can't be unchecked. */
.choice--locked {
  cursor: default;
  opacity: 0.85;
}

.choice--locked input {
  cursor: default;
}

/* The email can't be changed on the manage page. */
.input[readonly] {
  opacity: 0.7;
  cursor: not-allowed;
}

/* privacy/index.html and privacy/cookie-policy.html: the policy text in the
   site's look (same header, footer, card, colours and font). */
.policy {
  padding: calc(var(--header-h) + 32px) 0 80px;
}

.policy__head {
  text-align: center;
  margin-bottom: 28px;
}

.policy__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-soft);
  font-size: 14px;
}

.policy__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  margin: 14px 0 0;
  font-size: 14px;
}

.policy__links a,
.policy__content a {
  color: var(--orange-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy__content {
  color: var(--text-soft);
  font-size: 15.5px;
  line-height: 1.95;
}

.policy__content h2 {
  margin: 34px 0 12px;
  color: var(--orange);
  font-size: clamp(18px, 2.2vw, 21px);
  font-weight: 700;
  line-height: 1.6;
}

.policy__content h2:first-child {
  margin-top: 0;
}

.policy__content h3 {
  margin: 20px 0 8px;
  color: var(--text);
  font-size: 16.5px;
  font-weight: 700;
}

.policy__content p {
  margin: 0 0 12px;
}

.policy__content ol,
.policy__content ul {
  margin: 0 0 14px;
  padding-inline-start: 24px;
}

.policy__content li {
  margin-bottom: 8px;
}

.policy__content li::marker {
  color: var(--orange);
}

.policy__content strong {
  color: var(--text);
}

/* A button that looks like a footer link ("إعدادات ملفات الارتباط"). */
.link-btn {
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

@media (max-width: 600px) {
  .policy__content {
    padding: 24px 18px;
  }
}

/* edit-registration.php: the 6-digit code box and the small buttons under it. */
.otp-input {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 10px;
  text-align: center;
}

.otp-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.otp-actions form {
  margin: 0;
}

/* thank-you.php: one message in the middle of the screen. */
.thanks {
  display: grid;
  min-height: calc(100vh - 110px);
  min-height: calc(100svh - 110px);
  place-items: center;
  padding: 40px 0;
}

.thanks__card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.thanks .page-logo {
  width: 180px;
  margin-bottom: 22px;
}

.thanks__icon {
  display: inline-grid;
  width: 64px;
  height: 64px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.thanks__icon .ic {
  width: 30px;
  height: 30px;
}

.thanks__text {
  margin: 0 0 8px;
  color: var(--text-soft);
  line-height: 1.8;
}

.thanks__text b {
  color: var(--text);
}

.thanks__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
