:root {
  --navy-950: #071e34;
  --navy-900: #0a2946;
  --navy-800: #123c63;
  --navy-700: #1f527d;
  --sand-50: #fffdf8;
  --sand-100: #fbf5ea;
  --sand-200: #f3e6d1;
  --sand-300: #e5caa5;
  --sand-500: #bd8a4d;
  --brown-800: #54351e;
  --brown-900: #382112;
  --teal: #119a9a;
  --orange: #ed6a16;
  --red: #ca3c43;
  --green: #79bd79;
  --lime: #d7dc16;
  --white: #ffffff;
  --text: #2b241e;
  --muted: #746b63;
  --danger: #b42318;
  --success: #157347;
  --border: rgba(84, 53, 30, .18);
  --shadow-lg: 0 28px 70px rgba(44, 31, 20, .16);
  --shadow-md: 0 14px 35px rgba(44, 31, 20, .11);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 15px;
  --focus: 0 0 0 4px rgba(18, 60, 99, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 8%, rgba(237, 106, 22, .10), transparent 24rem),
    radial-gradient(circle at 90% 28%, rgba(17, 154, 154, .08), transparent 28rem),
    var(--sand-100);
  font-family: "Tajawal", "Cairo", "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.65;
}

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

img { max-width: 100%; display: block; }

button { cursor: pointer; }

.skip-link {
  position: fixed;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy-900);
  text-decoration: none;
  transition: transform .2s ease;
  font-size: 1.04rem;
}
.skip-link:focus { transform: translateY(0); }

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, .78fr) minmax(480px, 1.22fr);
  min-height: 600px;
  overflow: hidden;
  background: var(--sand-50);
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 52px;
  background: var(--sand-100);
  clip-path: ellipse(58% 68% at 50% 100%);
  z-index: 4;
}

.hero__media {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #c78045;
}

.hero__media img {
  width: 100%;
  height: 100%;
  min-height: 600px;
  object-fit: cover;
  object-position: center 52%;
}

.hero__media-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 20, 35, .05) 25%, rgba(3, 20, 35, .68) 100%),
    linear-gradient(90deg, rgba(3, 20, 35, .10), transparent 60%);
}

.hero__media-copy {
  position: absolute;
  z-index: 2;
  inset-inline: 44px;
  inset-block-end: 72px;
  display: grid;
  gap: 6px;
  color: var(--white);
  text-shadow: 0 3px 18px rgba(0, 0, 0, .32);
}

.hero__media-copy .eyebrow {
  width: fit-content;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  background: rgba(10, 41, 70, .35);
  backdrop-filter: blur(9px);
  font-size: .88rem;
}

.hero__media-copy strong {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.1;
}

.hero__brand {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 28px;
  padding: 70px 7vw 92px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255,255,255,.98), rgba(255,250,242,.95)),
    var(--sand-50);
}

.hero__brand::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .15;
  background-image:
    linear-gradient(45deg, transparent 47%, rgba(18, 60, 99, .22) 48%, rgba(18, 60, 99, .22) 52%, transparent 53%),
    linear-gradient(-45deg, transparent 47%, rgba(18, 60, 99, .16) 48%, rgba(18, 60, 99, .16) 52%, transparent 53%);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, #000 28%, #000 74%, transparent);
}

.hero__brand-glow {
  position: absolute;
  z-index: -1;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 202, 165, .58), transparent 68%);
  filter: blur(8px);
}

.event-logo {
  width: min(680px, 92%);
  filter: drop-shadow(0 18px 28px rgba(18, 60, 99, .08));
  border-radius: 20px;
}

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

.hero__chips span {
  padding: 8px 14px;
  border: 1px solid rgba(18, 60, 99, .14);
  border-radius: 999px;
  color: var(--navy-800);
  background: rgba(255, 255, 255, .75);
  font-size: .9rem;
  font-weight: 700;
  box-shadow: 0 7px 18px rgba(18, 60, 99, .06);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0 58px;
}

.intro {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.intro__kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--sand-500);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.intro__kicker::before,
.intro__kicker::after {
  content: "";
  width: 40px;
  height: 1px;
  background: linear-gradient(to left, transparent, var(--sand-500));
}
.intro__kicker::after { transform: rotate(180deg); }

.intro h1 {
  margin: 12px 0 10px;
  color: var(--brown-900);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: -.035em;
}

.intro p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.03rem;
}

.form-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(189, 138, 77, .22);
  border-radius: var(--radius-xl);
  background: rgba(255, 253, 248, .96);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
}

.form-card__topline {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0;
  height: 7px;
  background: linear-gradient(90deg,
    var(--orange) 0 16.6%,
    #f5a623 16.6% 33.2%,
    var(--teal) 33.2% 49.8%,
    var(--green) 49.8% 66.4%,
    var(--lime) 66.4% 83%,
    var(--red) 83% 100%
  );
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 8px 0 24px;
}

.section-heading--camels { margin-top: 44px; }

.section-heading__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  font-size: .85rem;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(18, 60, 99, .2);
}

.section-heading h2 {
  margin: 0;
  color: var(--brown-900);
  font-size: 1.45rem;
}

.section-heading p {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: .92rem;
}

.owner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

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

.field label,
.camel-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--brown-800);
  font-size: 1.08rem;
  font-weight: 800;
}

.field label span,
.camel-field label span { color: var(--red); }

.optional-tag {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(18, 60, 99, .08);
  color: var(--navy-700);
  font-size: .75rem;
  font-weight: 700;
}

.input-shell { position: relative; }

.input-icon {
  position: absolute;
  z-index: 2;
  inset-block-start: 50%;
  inset-inline-start: 15px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--sand-500);
  transform: translateY(-50%);
  pointer-events: none;
}

[dir="ltr"] .input-icon {
  inset-inline-start: auto;
  inset-inline-end: 15px;
}

.input-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-icon--camel { font-size: 1.25rem; }

input,
select,
textarea {
  width: 100%;
  min-height: 54px;
  padding: 13px 16px;
  padding-inline-start: 50px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  color: var(--text);
  background: var(--white);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

[dir="ltr"] input {
  padding-inline-start: 16px;
  padding-inline-end: 50px;
  text-align: right;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--navy-700) 50%),
    linear-gradient(135deg, var(--navy-700) 50%, transparent 50%);
  background-position:
    18px calc(50% - 3px),
    12px calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

input::placeholder,
textarea::placeholder { color: #a29a91; }

input:hover,
select:hover,
textarea:hover { border-color: rgba(189, 138, 77, .52); }

input:focus,
select:focus,
textarea:focus {
  border-color: var(--navy-700);
  box-shadow: var(--focus);
}

.is-invalid {
  border-color: var(--danger) !important;
  background: #fff8f7 !important;
}

.field-error {
  display: block;
  min-height: 20px;
  margin-top: 5px;
  color: var(--danger);
  font-size: .88rem;
  font-weight: 700;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: .84rem;
}

.camels-container {
  display: grid;
  gap: 18px;
}

.empty-camels {
  display: grid;
  place-items: center;
  min-height: 210px;
  padding: 28px;
  border: 1.5px dashed rgba(189, 138, 77, .46);
  border-radius: var(--radius-lg);
  color: var(--muted);
  text-align: center;
  background: linear-gradient(145deg, rgba(255,255,255,.7), rgba(243,230,209,.4));
}

.empty-camels span { font-size: 2.8rem; }
.empty-camels strong { color: var(--brown-800); font-size: 1.06rem; }
.empty-camels p { margin: 0; }

.camel-card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(189, 138, 77, .34);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(140deg, rgba(255,255,255,.98), rgba(251,245,234,.76));
  box-shadow: 0 10px 25px rgba(65, 43, 24, .06);
  animation: card-in .28s ease both;
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.camel-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 13px;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy-800);
  font-size: .86rem;
  font-weight: 800;
}

.camel-card__badge::before { content: "🐪"; }

.camel-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 18px;
}

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

.notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(189, 138, 77, .42);
  border-radius: var(--radius-md);
  color: var(--brown-800);
  background: linear-gradient(135deg, #fff7e9, #f7e7cc);
}

.notice__icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  color: var(--white);
  background: var(--brown-800);
}

.notice__icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice p { margin: 0; }

.consent {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 22px;
  color: var(--text);
  cursor: pointer;
}

.consent input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.consent__box {
  position: relative;
  flex: 0 0 auto;
  width: 23px;
  height: 23px;
  margin-top: 2px;
  border: 1.5px solid rgba(18, 60, 99, .4);
  border-radius: 7px;
  background: var(--white);
  transition: all .18s ease;
}

.consent input:checked + .consent__box {
  border-color: var(--navy-800);
  background: var(--navy-800);
}

.consent input:checked + .consent__box::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 5px;
  inset: 6px 5px;
  border-inline-start: 2px solid #fff;
  border-block-end: 2px solid #fff;
  transform: rotate(-45deg);
}

.consent input:focus-visible + .consent__box { box-shadow: var(--focus); }

.consent-error { margin-inline-start: 35px; }

.form-status {
  display: none;
  margin-top: 18px;
  padding: 13px 15px;
  border-radius: 12px;
  font-weight: 700;
}

.form-status.is-visible { display: block; }
.form-status.is-error { color: var(--danger); background: #fff0ef; border: 1px solid #ffd0cc; }
.form-status.is-info { color: var(--navy-800); background: #eef6ff; border: 1px solid #cfe4f8; }

.submit-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 62px;
  margin-top: 24px;
  padding: 15px 24px;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(110deg, var(--navy-950), var(--navy-700));
  font-size: 1.08rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(18, 60, 99, .24);
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.submit-button::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .16;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
  transform: translateX(120%);
  transition: transform .55s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(18, 60, 99, .29);
}

.submit-button:hover::before { transform: translateX(-120%); }
.submit-button:focus-visible { outline: none; box-shadow: var(--focus), 0 14px 28px rgba(18, 60, 99, .24); }
.submit-button:disabled { cursor: wait; opacity: .76; transform: none; }

.submit-button__icon {
  display: inline-grid;
  place-items: center;
}

.submit-button__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.submit-button__loader {
  display: none;
  width: 22px;
  height: 22px;
  border: 3px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

.submit-button.is-loading .submit-button__icon { display: none; }
.submit-button.is-loading .submit-button__loader { display: inline-block; }

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

.preliminary-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: .88rem;
}

.preliminary-note span {
  display: inline-grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  color: var(--white);
  background: var(--sand-500);
  font-size: .72rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 24px;
}

.steps article {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 19px;
  border: 1px solid rgba(189, 138, 77, .18);
  border-radius: 17px;
  background: rgba(255, 253, 248, .78);
}

.steps article > span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: var(--navy-800);
  background: var(--sand-200);
  font-weight: 900;
}

.steps strong { color: var(--brown-800); }
.steps p { margin: 2px 0 0; color: var(--muted); font-size: .84rem; }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px max(20px, calc((100vw - 1120px) / 2));
  color: rgba(255,255,255,.85);
  background:
    linear-gradient(rgba(7,30,52,.97), rgba(7,30,52,.97)),
    repeating-linear-gradient(45deg, transparent 0 18px, rgba(255,255,255,.06) 18px 20px);
}

.site-footer div { display: grid; }
.site-footer strong { color: var(--white); font-size: 1.04rem; }
.site-footer span, .site-footer p { font-size: .86rem; }
.site-footer p { margin: 0; text-align: left; }

.bot-field {
  position: absolute !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  border: 0 !important;
}

.modal[hidden] { display: none; }

.modal {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 30, 52, .76);
  backdrop-filter: blur(7px);
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(510px, 100%);
  padding: 36px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 28px;
  text-align: center;
  background: var(--sand-50);
  box-shadow: 0 30px 80px rgba(0,0,0,.28);
  animation: modal-in .26s ease both;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(14px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.success-mark {
  display: inline-grid;
  place-items: center;
  width: 74px;
  height: 74px;
  margin-bottom: 15px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, #1e9b63, #0e6d46);
  font-size: 2.3rem;
  box-shadow: 0 14px 30px rgba(21, 115, 71, .22);
}

.modal__eyebrow { color: var(--sand-500); font-weight: 900; }
.modal__panel h2 { margin: 5px 0 9px; color: var(--brown-900); font-size: 1.8rem; }
.modal__panel p { color: var(--muted); }

.registration-code {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0;
  padding: 9px;
  border: 1px dashed rgba(18, 60, 99, .38);
  border-radius: 14px;
  background: #edf5fb;
}

.registration-code code {
  flex: 1;
  color: var(--navy-900);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 1.03rem;
  font-weight: 900;
  letter-spacing: .04em;
}

.registration-code button,
.modal__close {
  border: 0;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy-800);
  font-weight: 800;
}

.registration-code button { padding: 9px 13px; }
.modal__close { width: 100%; padding: 13px 18px; margin-top: 8px; }

.modal__note { font-size: .86rem; }

.noscript-message {
  position: fixed;
  z-index: 1001;
  inset-inline: 14px;
  inset-block-end: 14px;
  padding: 14px;
  border-radius: 12px;
  color: #fff;
  background: var(--danger);
  text-align: center;
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__media {
    min-height: 500px;
    max-height: 640px;
  }

  .hero__media img { min-height: 500px; }

  .hero__brand {
    min-height: 430px;
    padding: 52px 28px 82px;
  }

  .event-logo { width: min(620px, 96%); }

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

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p { text-align: right; }
}

@media (max-width: 680px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 54px;
  }

  .hero__media {
    min-height: 470px;
  }

  .hero__media img {
    min-height: 470px;
    object-position: center 58%;
  }

  .hero__media-copy {
    inset-inline: 22px;
    inset-block-end: 50px;
  }

  .hero__brand {
    min-height: 340px;
    padding: 36px 16px 66px;
  }

  .hero__chips { gap: 7px; }
  .hero__chips span { padding: 6px 10px; font-size: .76rem; }

  .intro h1 { font-size: 2rem; }

  .form-card {
    padding: 27px 16px 24px;
    border-radius: 24px;
  }

  .owner-grid,
  .camel-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .field--wide,
  .camel-field--full { grid-column: auto; }

  .camel-card { padding: 18px 14px; }

  .notice { padding: 15px; }

  .section-heading__icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
  }

  .section-heading h2 { font-size: 1.22rem; }

  .modal__panel { padding: 28px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


@media (max-width: 680px) {
  .field label,
  .camel-field label {
    font-size: 1.02rem;
  }

  input,
  select,
  textarea {
    font-size: 1rem;
  }
}
