/* SZBA 20th Anniversary — brand design */
:root {
  --szba-bg-deep: #0a0f1a;
  --szba-bg-mid: #1a1528;
  --szba-bg-purple: #2d1f3d;
  --szba-gold: #c9a86c;
  --szba-gold-light: #e8d5a3;
  --szba-gold-dark: #9a7b4a;
  --szba-text: #f5f0e8;
  --szba-text-muted: rgba(245, 240, 232, 0.75);
  --szba-card: rgba(22, 18, 35, 0.72);
  --szba-card-border: rgba(201, 168, 108, 0.25);
  --szba-input-bg: rgba(255, 255, 255, 0.06);
  --szba-font-ar: 'Noto Kufi Arabic', Tahoma, sans-serif;
  --szba-font-en: 'Cormorant Garamond', 'Georgia', serif;
}

.en {
  font-family: var(--szba-font-en);
}

/* Page shell */
body.szba-page {
  font-family: var(--szba-font-ar);
  font-weight: 400;
  color: var(--szba-text);
  margin: 0;
  min-height: 100vh;
  background: rgba(0, 35, 66, 1);
  overflow-x: hidden;
}

body.szba-page,
body.szba-page * {
  font-weight: 400 !important;
}

.page-background,
.backgroundnew {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: -moz-radial-gradient(51.91% -56.68%, ellipse farthest-side, rgba(138, 25, 37, 1) 0%, rgba(94, 28, 46, 1) 55.91%, rgba(0, 35, 66, 1) 99.62%);
  background: -webkit-radial-gradient(51.91% -56.68%, ellipse farthest-side, rgba(138, 25, 37, 1) 0%, rgba(94, 28, 46, 1) 55.91%, rgba(0, 35, 66, 1) 99.62%);
  background: -o-radial-gradient(51.91% -56.68%, ellipse farthest-side, rgba(138, 25, 37, 1) 0%, rgba(94, 28, 46, 1) 55.91%, rgba(0, 35, 66, 1) 99.62%);
  background: -ms-radial-gradient(51.91% -56.68%, ellipse farthest-side, rgba(138, 25, 37, 1) 0%, rgba(94, 28, 46, 1) 55.91%, rgba(0, 35, 66, 1) 99.62%);
  background: radial-gradient(ellipse farthest-side at 51.91% -56.68%, rgba(138, 25, 37, 1) 0%, rgba(94, 28, 46, 1) 55.91%, rgba(0, 35, 66, 1) 99.62%);
  pointer-events: none;
}

/* Decorative wings */
.wing {
  position: fixed;
  top: 0;
  z-index: 1;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.08s linear;
}

.wing img {
  display: block;
  height: 100vh;
  width: auto;
  max-width: none;
  object-fit: contain;
  opacity: 0.92;
}

.wing-left img {
  object-position: left top;
}

.wing-right img {
  object-position: right top;
}

.wing-left {
  left: 0;
  transform: translateX(0);
}

.wing-right {
  right: 0;
  transform: translateX(0);
}

/* Main content card */
.szba-main {
  position: relative;
  z-index: 2;
  max-width: 920px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.szba-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  padding: 2rem 2rem 1.5rem;
}

/* Header */
.szba-header {
  text-align: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--szba-card-border);
  margin-bottom: 2rem;
}

/* Luxury header effects */
@keyframes szbaLuxuryReveal {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.96);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes szbaLuxuryFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

@keyframes szbaLuxuryGlow {
  0%, 100% {
    filter: drop-shadow(0 0 10px rgba(201, 168, 108, 0.1))
            drop-shadow(0 4px 24px rgba(0, 0, 0, 0.15))
            brightness(1);
  }
  50% {
    filter: drop-shadow(0 0 20px rgba(232, 213, 163, 0.28))
            drop-shadow(0 6px 28px rgba(201, 168, 108, 0.12))
            brightness(1.05);
  }
}

.szba-luxury-brand,
.szba-luxury-tagline {
  position: relative;
  opacity: 0;
  animation: szbaLuxuryReveal 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.szba-luxury-tagline {
  animation-delay: 0.45s;
}

.szba-luxury-img {
  display: block;
  margin: 0 auto;
  animation:
    szbaLuxuryGlow 5s ease-in-out 1.6s infinite,
    szbaLuxuryFloat 7s ease-in-out 2s infinite;
}

.szba-header-brand img {
  max-width: 100%;
  height: auto;
}

.szba-logo-mobile {
  display: none;
  max-width: 220px;
  margin: 0 auto;
}

.szba-logo-desktop {
  max-width: 520px;
  margin: 0 auto 1.25rem;
}

.szba-header-tagline img {
  max-width: 340px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: 0.95;
}

/* Intro copy — 3 matching lines EN / AR */
.szba-intro {
  margin-bottom: 2rem;
  align-items: stretch;
}

.szba-intro .intro-en,
.szba-intro .intro-ar {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.35rem;
  color: var(--szba-text);
}

.szba-intro .intro-en {
  font-family: var(--szba-font-ar);
  font-size: 1.05rem;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.szba-intro .intro-ar {
  font-size: 1.05rem;
  line-height: 1.7;
}

.szba-intro .intro-line {
  margin: 0;
}

.szba-intro .intro-award {
  white-space: nowrap;
  font-weight: 400;
}

.szba-intro .intro-en sup {
  font-size: 0.65em;
}

/* Form — luxury underline style */
form {
  max-width: 480px;
  margin: 0 auto;
  padding: 2rem 0 0;
  border: none;
  border-radius: 0;
  position: relative;
}

form::before {
  content: '';
  display: block;
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--szba-gold), transparent);
  margin: 0 auto 2rem;
  opacity: 0.7;
}

.form-control.finput,
select.form-control.finput {
  font-family: var(--szba-font-ar);
  text-align: center;
  text-align-last: center;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(201, 168, 108, 0.3);
  color: var(--szba-text);
  height: 52px;
  font-size: 15px;
  margin-bottom: 0;
  padding: 0.75rem 0.5rem 0.5rem;
  border-radius: 0;
  box-shadow: none;
  letter-spacing: 0.02em;
  transition: border-color 0.35s ease, color 0.35s ease, background 0.35s ease;
}

.szba-form-field {
  position: relative;
  margin-bottom: 1.35rem;
}

.szba-form-field::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--szba-gold-dark), var(--szba-gold-light), var(--szba-gold-dark));
  transform: translateX(-50%);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.szba-form-field:focus-within::after {
  width: 100%;
}

.form-control.finput::placeholder {
  color: rgba(245, 240, 232, 0.45);
  font-weight: 400;
  letter-spacing: 0.03em;
}

.form-control.finput:focus,
select.form-control.finput:focus {
  background: rgba(201, 168, 108, 0.04);
  border-bottom-color: transparent;
  color: var(--szba-gold-light);
  box-shadow: none;
  outline: none;
}

select.form-control.finput {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23c9a86c' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center bottom 14px;
  padding-bottom: 1rem;
}

select.form-control.finput option {
  background: var(--szba-bg-mid);
  color: var(--szba-text);
}

.btn-primary,
.form-control.finput.submit.btn-primary {
  font-family: var(--szba-font-ar);
  background: transparent;
  border: 1px solid var(--szba-gold);
  color: var(--szba-gold-light);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  height: 54px;
  border-radius: 0;
  margin-top: 1.75rem;
  padding: 0 2rem;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease, transform 0.25s ease;
}

.btn-primary::before,
.form-control.finput.submit.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #c9a86c 0%, #e8d5a3 50%, #9a7b4a 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.btn-primary:hover,
.form-control.finput.submit.btn-primary:hover {
  background: transparent;
  border-color: var(--szba-gold-light);
  color: var(--szba-gold-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201, 168, 108, 0.2);
}

.btn-primary:hover::before,
.form-control.finput.submit.btn-primary:hover::before {
  transform: scaleX(1);
}

.btn-primary.disabled,
.btn-primary:disabled {
  background: transparent;
  border-color: rgba(180, 184, 189, 0.35);
  color: rgba(255, 255, 255, 0.4);
  transform: none;
  box-shadow: none;
}

.btn-primary.disabled::before,
.btn-primary:disabled::before {
  display: none;
}

.checkboxmsg {
  border: solid 1px var(--szba-gold-dark);
  padding: 10px;
  background: rgba(201, 168, 108, 0.06);
  padding-left: 37px;
  margin-bottom: 10px;
  border-radius: 4px;
}

.g-recaptcha {
  margin: 1.5rem auto 0;
  display: flex;
  justify-content: center;
}

.g-recaptcha div {
  margin: 0 auto;
}

/* Thank you */
.thankyoumsg {
  background: transparent;
  color: #ffffff;
  padding: 1.5rem 0.5rem 2rem;
  font-weight: 400;
}

.thankyoumsg .max500 {
  max-width: 500px;
  margin: 0 auto;
  color: #ffffff;
  font-weight: 400;
}

.thankyoumsg .en {
  color: #ffffff !important;
  font-weight: 400;
  font-family: var(--szba-font-ar);
}

.thankyoumsg b {
  color: #ffffff;
  font-weight: 400;
}

.thankyoumsg hr {
  border: none;
  border-top: 1px solid var(--szba-card-border);
  width: 60%;
  margin: 0 auto;
}

.thankyoumsg img[alt="Event entry QR code"],
.thankyoumsg img[alt="رمز الدخول"] {
  border: 2px solid var(--szba-gold-dark);
  border-radius: 4px;
  padding: 8px;
  background: #fff;
}

.thankyoumsg .btn-primary {
  display: inline-block;
  width: auto;
  padding: 0 1.5rem;
  text-decoration: none;
  line-height: 48px;
}

/* Footer */
.szba-footer {
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--szba-card-border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.szba-footer-partners {
  max-width: 100%;
  height: auto;
  max-height: 72px;
  width: auto;
}

.szba-footer-social-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
  margin-left: auto;
  flex-shrink: 0;
}

.szba-footer-social {
  display: block;
  width: auto;
  height: 56px;
  max-height: 56px;
  max-width: none;
}

.szba-social-hotspot {
  position: absolute;
  top: 68%;
  width: 7.5%;
  height: 28%;
  border-radius: 50%;
  z-index: 2;
}

/* Icon positions measured from footerlogo.png (223×60) */
.szba-social-web {
  top: 6%;
  left: 1%;
  width: 78%;
  height: 42%;
  border-radius: 0;
}
.szba-social-fb { left: 66.4%; }
.szba-social-ig { left: 75%; }
.szba-social-x  { left: 83.2%; }
.szba-social-yt { left: 91.5%; }

/* Legacy helpers */
.max500 {
  max-width: 500px;
  margin: 0 auto;
}

.text-right { text-align: right; }
.text-left { text-align: left; }
.text-center { text-align: center; }

.small { font-size: 12px; }

.podbtn {
  background: var(--szba-gold);
  padding: 4px;
  border-radius: 8px;
}

/* Hide old layout pieces */
main.mt-5.mb-5:not(.szba-main) {
  margin: 0 !important;
}

.mobileshow { display: none; }
.mobilehide { display: block; }

@media (prefers-reduced-motion: reduce) {
  .szba-luxury-brand,
  .szba-luxury-tagline {
    opacity: 1;
    animation: none;
  }

  .szba-luxury-brand::after,
  .szba-luxury-tagline::after {
    display: none;
  }

  .szba-luxury-img {
    animation: none;
    filter: none;
  }

  .wing {
    transition: none;
  }
}

/* Responsive */
@media screen and (max-width: 1200px) {
  .wing img {
    height: 85vh;
    opacity: 1;
  }
}

@media screen and (max-width: 992px) {
  .wing {
    display: block;
    z-index: 0;
    opacity: 1;
  }

  .wing img {
    height: 60vh;
    opacity: 1;
  }

  .wing-left {
    left: -12%;
  }

  .wing-right {
    right: -12%;
  }

  .szba-main {
    position: relative;
    z-index: 2;
  }

  .szba-panel {
    padding: 1.5rem 1.25rem;
  }
}

@media screen and (max-width: 576px) {
  .szba-main {
    padding: 0.75rem 0.65rem 1.75rem;
  }

  .szba-panel {
    padding: 1rem 0.75rem;
  }

  .wing img {
    height: 50vh;
    opacity: 1;
  }

  .wing-left {
    left: -22%;
  }

  .wing-right {
    right: -22%;
  }

  .szba-header {
    padding-bottom: 1rem;
    margin-bottom: 1.25rem;
  }

  .szba-logo-desktop {
    display: none;
  }

  .szba-logo-mobile {
    display: block;
    max-width: 108px;
    width: 32vw;
    max-height: 140px;
    object-fit: contain;
  }

  .szba-header-tagline img {
    max-width: 175px;
    width: 52vw;
  }

  @keyframes szbaLuxuryFloatMobile {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
  }

  .szba-luxury-img {
    animation:
      szbaLuxuryGlow 5s ease-in-out 1.6s infinite,
      szbaLuxuryFloatMobile 7s ease-in-out 2s infinite;
  }

  .szba-intro {
    margin-bottom: 1.5rem;
  }

  .szba-intro .intro-en,
  .szba-intro .intro-ar {
    font-size: 0.9rem;
    text-align: center !important;
    align-items: center;
  }

  .szba-intro .intro-award {
    white-space: normal;
  }

  form {
    max-width: 100%;
    padding-top: 1.25rem;
  }

  form::before {
    width: 36px;
    margin-bottom: 1.5rem;
  }

  .form-control.finput,
  select.form-control.finput {
    height: 48px;
    font-size: 14px;
  }

  .szba-form-field {
    margin-bottom: 1.1rem;
  }

  .btn-primary,
  .form-control.finput.submit.btn-primary {
    height: 50px;
    font-size: 13px;
    letter-spacing: 0.14em;
    margin-top: 1.25rem;
  }

  .thankyoumsg {
    padding: 0.5rem 0 1.5rem;
  }

  .szba-footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.25rem;
  }

  .szba-footer-social-wrap {
    margin-left: 0;
  }

  .szba-footer-social {
    height: 56px;
    max-height: 56px;
  }

  .szba-footer-partners {
    max-height: 48px;
  }
}

/* Agenda page */
.agenda-page .agenda-main {
  max-width: 720px;
  padding-top: 1rem;
}

.agenda-page .szba-panel {
  padding-top: 1rem;
}

.agenda-page .szba-footer {
  border-top: 1px solid rgba(201, 168, 108, 0.2);
}

.agenda-image-wrap {
  text-align: center;
  margin: 0 auto 1rem;
}

.agenda-image {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin: 0 auto;
  border-radius: 2px;
}

@media screen and (max-width: 576px) {
  .agenda-page .agenda-main {
    max-width: 100%;
    padding: 0.5rem 0.4rem 1.5rem;
  }
}

/* Map page */
html:has(body.map-page),
body.szba-page.map-page {
  background: rgb(239, 231, 220) !important;
  background-image: none !important;
}

.map-page .page-background,
.map-page .wing {
  display: none !important;
}

.map-page .map-main {
  max-width: 920px;
  padding-top: 1rem;
}

.map-page .map-panel {
  position: relative;
  padding-top: 2.5rem;
}

.map-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: #5c4033;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid rgba(92, 64, 51, 0.35);
  border-radius: 50%;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.map-close:hover,
.map-close:focus {
  color: #3a281e;
  border-color: #5c4033;
  background: rgba(92, 64, 51, 0.08);
  outline: none;
}

.map-image-wrap {
  text-align: center;
  margin: 0 auto 1rem;
}

.map-image {
  display: block;
  width: 100%;
  max-width: 860px;
  height: auto;
  margin: 0 auto;
  border-radius: 2px;
}

.map-page .szba-footer {
  border-top: 1px solid rgba(92, 64, 51, 0.15);
}

@media screen and (max-width: 576px) {
  .map-page .map-main {
    max-width: 100%;
    padding: 0.5rem 0.4rem 1.5rem;
  }

  .map-close {
    top: 0.25rem;
    right: 0.25rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.75rem;
  }
}

/* Add to Calendar page */
.calendar-page .en {
  font-family: var(--szba-font-ar);
}

.calendar-main {
  max-width: 520px;
  padding-top: 1rem;
}

.calendar-panel {
  position: relative;
  padding: 2.5rem 1.5rem 2rem;
  text-align: center;
}

.calendar-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  color: var(--szba-gold-light);
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
  border: 1px solid rgba(201, 168, 108, 0.4);
  border-radius: 50%;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.calendar-close:hover,
.calendar-close:focus {
  color: #fff;
  border-color: var(--szba-gold);
  background: rgba(201, 168, 108, 0.12);
  outline: none;
}

.calendar-logo {
  display: block;
  width: 240px;
  max-width: 70%;
  height: auto;
  margin: 0 auto 1.25rem;
}

.calendar-title,
.calendar-event-name,
.calendar-when,
.calendar-loc,
.calendar-btn .en {
  font-family: var(--szba-font-ar);
}

.calendar-title-ar {
  margin: 0;
  font-family: var(--szba-font-ar);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--szba-gold-light);
}

.calendar-title {
  margin: 0.35rem 0 0;
  font-size: 1.55rem;
  font-weight: 400;
  color: var(--szba-text);
  letter-spacing: 0.01em;
}

.calendar-meta {
  margin: 1.5rem 0 1.75rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(201, 168, 108, 0.25);
  border-bottom: 1px solid rgba(201, 168, 108, 0.25);
}

.calendar-event-name-ar {
  margin: 0 0 0.35rem;
  font-family: var(--szba-font-ar);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--szba-gold-light);
}

.calendar-event-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--szba-text);
}

.calendar-when,
.calendar-when-ar,
.calendar-loc,
.calendar-loc-ar {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--szba-text-muted);
}

.calendar-when-ar,
.calendar-loc-ar {
  font-family: var(--szba-font-ar);
}

.calendar-loc a,
.calendar-loc-ar a {
  color: var(--szba-gold-light);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calendar-loc a:hover,
.calendar-loc-ar a:hover {
  color: var(--szba-gold);
}

.calendar-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.calendar-btn {
  display: block;
  padding: 0.85rem 1rem;
  background: rgba(201, 168, 108, 0.18);
  color: var(--szba-text) !important;
  text-decoration: none !important;
  font-family: var(--szba-font-ar);
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
  border: 1px solid rgba(201, 168, 108, 0.45);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.calendar-btn span {
  display: block;
}

.calendar-btn span[dir="rtl"] {
  font-size: 0.95rem;
  color: var(--szba-gold-light);
}

.calendar-btn .en {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.95;
}

.calendar-btn:hover,
.calendar-btn:focus {
  background: rgba(201, 168, 108, 0.3);
  border-color: var(--szba-gold);
  outline: none;
}

.calendar-btn-secondary {
  background: transparent;
}

.calendar-btn-secondary:hover,
.calendar-btn-secondary:focus {
  background: rgba(201, 168, 108, 0.12);
}

@media screen and (max-width: 576px) {
  .calendar-main {
    max-width: 100%;
    padding: 0.5rem 0.4rem 1.5rem;
  }

  .calendar-panel {
    padding: 2.25rem 1rem 1.5rem;
  }

  .calendar-close {
    top: 0.25rem;
    right: 0.25rem;
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.75rem;
  }
}
