/* ==========================================================================
   ISEF 2026 — Registration theme
   Palette taken from the Opening Ceremony key visual: a navy -> royal blue ->
   cyan sweep lit from below, with champagne-gold accents. The KV carries no
   green, so neither does this file any more (the old teal is gone).

   The page keeps the KV's night sky. The form surface is a LIGHT card: the
   fields people actually type into sit on white at document contrast, and the
   dark sky is what frames them.
   ========================================================================== */

:root {
  /* ---- night sky (page backdrop) ---- */
  --fs-bg:            #061534;
  --fs-bg-secondary:  #0a204f;
  --fs-blue:          #2f8fe0;
  --fs-blue-soft:     #7fd4f1;
  --fs-blue-pale:     #cfeaf9;
  --fs-blue-glow:     rgba(47, 143, 224, .18);
  --fs-gold:          #c9a24a;
  --fs-gold-light:    #f0d089;
  --fs-txt-main:      #eaf4ff;
  --fs-txt-sec:       #9dbbd8;
  --fs-border:        rgba(255, 255, 255, .15);
  --fs-line:          rgba(47, 143, 224, .28);
  --fs-blur:          20px;

  /* ---- light form surface ----
     Contrast measured against the card (#ffffff) and the tile (#f1f7fe):
       ink          #0d2447  15.4:1   body copy
       ink-soft     #55708f   5.1:1   secondary / helper copy
       label        #1a4e9b   8.1:1   field labels
       field line   #6b93c6   3.2:1   the only boundary a white field has
       placeholder  #66809f   3.9:1
       required     #c1372b   5.5:1
     Primary action: white on the gradient's lightest stop (#2172c4) is 4.9:1. */
  --fs-card:          #ffffff;
  --fs-card-2:        #f1f7fe;
  --fs-card-line:     rgba(13, 52, 110, .13);
  --fs-ink:           #0d2447;
  --fs-ink-soft:      #55708f;
  --fs-ink-label:     #1a4e9b;
  --fs-field:         #f6faff;
  --fs-field-line:    #6b93c6;
  --fs-field-ph:      #66809f;
  --fs-focus:         #1c66cc;
  --fs-danger:        #c1372b;

  --fs-action:          linear-gradient(135deg, #1750b5 0%, #2172c4 100%);
  --fs-action-shadow:   0 4px 16px rgba(23, 80, 181, .32);
  --fs-action-shadow-h: 0 8px 24px rgba(23, 80, 181, .45);

  /* dark glass, still used by the sticky header and the app top bar */
  --fs-surface:       linear-gradient(135deg, rgba(10, 32, 79, .90) 0%, rgba(16, 48, 102, .85) 100%);
  --fs-surface-deep:  linear-gradient(145deg, rgba(8, 26, 66, .88) 0%, rgba(16, 48, 102, .88) 50%, rgba(8, 26, 66, .88) 100%);
  --fs-shadow:        0 8px 24px rgba(0, 0, 0, .45), 0 0 16px rgba(47, 143, 224, .20), inset 0 0 12px rgba(47, 143, 224, .10);
  --fs-shadow-lg:     0 8px 30px rgba(0, 0, 0, .60), 0 0 25px rgba(47, 143, 224, .25), inset 0 0 20px rgba(47, 143, 224, .12);

  /* the light card needs to read as lifted off the night sky, not pasted on */
  --fs-card-shadow:   0 18px 48px rgba(2, 10, 30, .55), 0 0 0 1px rgba(255, 255, 255, .06), 0 0 34px rgba(47, 143, 224, .18);

  --fs-font:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-font-display:  'Cinzel', 'Times New Roman', serif;
}

/* ---------- base ---------- */

html { -webkit-text-size-adjust: 100%; }

body.isef26 {
  margin: 0;
  min-height: 100vh;
  background: var(--fs-bg);
  background-image: none;
  color: var(--fs-txt-main);
  font-family: var(--fs-font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.isef26 a { color: var(--fs-blue-soft); text-decoration: none; }
body.isef26 a:hover { color: #fff; text-decoration: none; }

/* ---------- animated aurora backdrop ---------- */

/* The KV is not a flat navy: it is a lit stage. The base carries the same
   three moves the artwork does - a deep navy vignette at the corners, a royal
   wash through the middle, and cyan light rising off the horizon. */
.isef26-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 108%, rgba(79, 178, 235, .40) 0%, rgba(29, 79, 158, .30) 30%, transparent 62%),
    radial-gradient(90% 70% at 18% 12%, rgba(29, 79, 158, .38) 0%, transparent 60%),
    linear-gradient(170deg, #0a2050 0%, #0c2a5e 34%, #0e356f 62%, #061a3f 100%);
}

/* a quiet star field, like the KV's - two offset layers so it does not tile
   visibly, and far too faint to compete with the form */
.isef26-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .55;
  background-image:
    radial-gradient(1.4px 1.4px at 12% 18%, rgba(255,255,255,.85), transparent),
    radial-gradient(1.2px 1.2px at 31% 7%,  rgba(207,234,249,.70), transparent),
    radial-gradient(1.6px 1.6px at 47% 24%, rgba(255,255,255,.65), transparent),
    radial-gradient(1.2px 1.2px at 68% 11%, rgba(255,255,255,.75), transparent),
    radial-gradient(1.4px 1.4px at 84% 29%, rgba(207,234,249,.65), transparent),
    radial-gradient(1.2px 1.2px at 93% 9%,  rgba(255,255,255,.60), transparent),
    radial-gradient(1.3px 1.3px at 7% 42%,  rgba(255,255,255,.55), transparent),
    radial-gradient(1.5px 1.5px at 24% 57%, rgba(207,234,249,.50), transparent),
    radial-gradient(1.2px 1.2px at 57% 46%, rgba(255,255,255,.50), transparent),
    radial-gradient(1.4px 1.4px at 77% 62%, rgba(255,255,255,.45), transparent),
    radial-gradient(1.2px 1.2px at 40% 78%, rgba(207,234,249,.40), transparent),
    radial-gradient(1.3px 1.3px at 88% 84%, rgba(255,255,255,.38), transparent);
  background-repeat: no-repeat;
}

.isef26-aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  filter: blur(48px);
  opacity: .62;
  mix-blend-mode: screen;
  /* Gentle, not still: amplitude .12 against the original .20, over 24s not 14s. */
  animation: isef26-breathe 20s ease-in-out infinite alternate;
}

.isef26-band {
  position: absolute;
  width: 200%;
  left: -50%;
  border-radius: 50%;
  transform-origin: center center;
}

/* The KV's own ramp: deep navy at the top edge, royal through the middle,
   cyan where the light comes up off the horizon, gold only as a glint. */
.isef26-band-1 {
  height: 60vh; top: -15vh;
  background: conic-gradient(from 0deg at 45% 55%, transparent 0%, rgba(47,143,224,.55) 12%, rgba(21,63,140,.48) 25%, transparent 40%, rgba(127,212,241,.32) 55%, transparent 70%, rgba(47,143,224,.25) 85%, transparent 100%);
  transform: rotate(12deg);
  animation: isef26-drift 10s linear infinite alternate;
}
.isef26-band-2 {
  height: 55vh; top: 8vh;
  background: conic-gradient(from 90deg at 58% 42%, transparent 0%, rgba(127,212,241,.44) 8%, rgba(29,79,158,.45) 20%, transparent 35%, rgba(47,143,224,.45) 50%, transparent 65%, rgba(127,212,241,.26) 80%, transparent 100%);
  transform: rotate(-8deg);
  animation: isef26-drift 12s linear infinite alternate;
}
.isef26-band-3 {
  height: 65vh; top: 25vh;
  background: conic-gradient(from 200deg at 32% 65%, transparent 0%, rgba(10,32,79,.55) 18%, rgba(47,143,224,.32) 32%, transparent 48%, rgba(127,212,241,.30) 62%, transparent 80%);
  transform: rotate(24deg);
  animation: isef26-drift 11s linear infinite alternate;
}
.isef26-band-4 {
  height: 45vh; top: 45vh;
  background: conic-gradient(from 300deg at 70% 30%, transparent 0%, rgba(240,208,137,.16) 10%, transparent 22%, rgba(47,143,224,.28) 38%, transparent 55%, rgba(127,212,241,.22) 72%, transparent 100%);
  transform: rotate(-18deg);
  animation: isef26-drift 13s linear infinite alternate;
}

/* the KV is lit from the bottom, so the horizon glows instead of going black */
.isef26-horizon {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 52vh;
  background:
    radial-gradient(90% 62% at 50% 102%, rgba(190,238,255,.42) 0%, rgba(127,212,241,.26) 26%, rgba(47,143,224,.14) 50%, transparent 76%),
    linear-gradient(to top, rgba(8,32,76,.55) 0%, rgba(9,34,80,.28) 40%, transparent 100%);
}

@keyframes isef26-breathe {
  from { opacity: .55; }
  to   { opacity: .70; }
}

/* Nothing animates by default any more, but third-party widgets (select2,
   DataTables, the upload spinner) still can - honour the OS setting globally. */
/* +/-18deg of sway at a steady rate, against the old full 360deg sweep:
   roughly 3.6 deg/s here vs 18 deg/s before - about a fifth of the original,
   and it reverses rather than sweeping endlessly in one direction. */
@keyframes isef26-drift {
  from { rotate: -18deg; }
  to   { rotate:  18deg; }
}

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

/* ---------- header ---------- */

.isef26-shell { position: relative; z-index: 2; }

.isef26-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 20px 16px 8px;
}

/* fades page content out as it scrolls beneath the sticky logo bar */
.isef26-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(6, 21, 52, .92) 0%, rgba(6, 21, 52, .70) 60%, rgba(6, 21, 52, 0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 60%, transparent 100%);
}

.isef26-header-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 10px 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 40, 92, .55);
  border: 1px solid rgba(127, 212, 241, .22);
  border-radius: 100px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .50), 0 0 20px rgba(47, 143, 224, .12);
}

.isef26-header-inner img {
  height: 38px;
  width: auto;
  display: block;
}

/* ---------- page layout ---------- */

.isef26-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 26px 16px 40px;
}

.isef26-main-narrow { max-width: 520px; }

/* the confirmation form carries ~16 fields; a wider shell plus the two-column
   grid below keeps it to one screenful on a laptop */
.isef26-main-wide { max-width: 920px; }

/* ---------- two-column form grid ---------- */

.isef26-grid-2 {
  display: grid;
  /* minmax(0,…) so select2 and intl-tel-input cannot force a cell wider
     than its track and push the card into a horizontal scroll */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 20px;
}

.isef26-grid-2 > .isef26-span-2 { grid-column: 1 / -1; }

@media (max-width: 767.98px) {
  .isef26-grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- error / status pages ---------- */

.isef26-errcode {
  margin: 0 0 4px;
  font-family: var(--fs-font-display);
  font-weight: 900;
  font-size: 96px;
  line-height: 1;
  letter-spacing: -2px;
  background: linear-gradient(135deg, #ffffff 20%, var(--fs-blue-pale) 60%, var(--fs-blue-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 8px 40px rgba(47, 143, 224, .35);
}

.isef26-errpage {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

body.isef26 a.isef26-btn-link {
  display: inline-block;
  margin-top: 24px;
  padding: 13px 32px;
  border-radius: 100px;
  background: var(--fs-action);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  box-shadow: var(--fs-action-shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}

body.isef26 a.isef26-btn-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--fs-action-shadow-h);
  color: #fff;
}

@media (max-width: 575.98px) {
  .isef26-errcode { font-size: 68px; }
}

/* ---------- eyebrow pill ---------- */

.isef26-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, rgba(10,32,79,.90) 0%, rgba(24,60,120,.85) 100%);
  border: 1px solid rgba(201, 162, 74, .50);
  border-radius: 100px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 16px rgba(47,143,224,.25), inset 0 0 10px rgba(240,208,137,.14);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fs-gold-light);
}

.isef26-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--fs-gold-light);
  box-shadow: 0 0 8px var(--fs-gold-light);
  /* was opacity 1 -> .4 plus a scale change every 2s; now a soft fade only */
  animation: isef26-glow 4s ease-in-out infinite;
}

@keyframes isef26-glow {
  0%, 100% { opacity: 1; }
  50%      { opacity: .72; }
}

/* ---------- titles ---------- */

/* the KV sets "OPENING CEREMONY" in gold over a silvered subtitle; the page
   title borrows the silver, the eyebrow above it carries the gold */
.isef26-title {
  margin: 0 0 6px;
  font-family: var(--fs-font-display);
  font-weight: 900;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -.6px;
  background: linear-gradient(135deg, #ffffff 30%, var(--fs-blue-pale) 70%, var(--fs-blue-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .40);
}

.isef26-subtitle {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .3px;
  color: var(--fs-txt-sec);
}

/* ==========================================================================
   The light card
   Everything from here down runs on the light surface, so it is written
   dark-on-light: ink for copy, royal blue for labels and focus, gold only
   as the hairline that ties the card back to the KV.
   ========================================================================== */

.isef26-card {
  position: relative;
  padding: 30px 28px 28px;
  background: linear-gradient(180deg, var(--fs-card) 0%, #f7fbff 100%);
  border: 1px solid var(--fs-card-line);
  border-radius: 24px;
  color: var(--fs-ink);
  box-shadow: var(--fs-card-shadow);
  overflow: hidden;
}

/* the KV's gold ornament band, reduced to a hairline along the card's top */
.isef26-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, transparent 0%, var(--fs-gold) 22%, var(--fs-gold-light) 50%, var(--fs-gold) 78%, transparent 100%);
}

.isef26-card p { color: var(--fs-ink); }

body.isef26 .isef26-card a { color: #14539e; text-decoration: underline; }
body.isef26 .isef26-card a:hover { color: #0d3b75; }

/* ---------- event banner (inside the card) ---------- */

.isef26-event {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 26px;
  background: var(--fs-card-2);
  border: 1px solid rgba(13, 52, 110, .12);
  border-left: 3px solid var(--fs-gold);
  border-radius: 14px;
  box-shadow: none;
}

.isef26-event-icon {
  flex: 0 0 auto;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--fs-gold-light) 0%, var(--fs-gold) 55%, #9a7423 100%);
  box-shadow: 0 2px 10px rgba(201, 162, 74, .40);
  color: #24170a;
  font-size: 18px;
}

.isef26-event-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--fs-ink-label);
}

.isef26-event-title {
  margin: 2px 0 4px;
  font-family: var(--fs-font-display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.3;
  letter-spacing: .2px;
  color: var(--fs-ink);
}

.isef26-event-meta {
  margin: 0;
  font-size: 13px;
  color: var(--fs-ink-soft);
}

/* ---------- section divider ---------- */

.isef26-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 30px 0 20px;
}

.isef26-section-head h4 {
  margin: 0;
  font-family: var(--fs-font-display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: .2px;
  color: var(--fs-ink);
  white-space: nowrap;
}

.isef26-section-head::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, rgba(13, 52, 110, .22), transparent);
}

/* ---------- form controls ---------- */

.isef26 .form-group { margin-bottom: 18px; }

.isef26 .form-group > label,
.isef26 label.label {
  display: block;
  margin-bottom: 7px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--fs-ink-label);
}

.isef26 .form-control {
  height: auto;
  width: 100%;
  padding: 12px 20px;
  background-color: var(--fs-field);
  border: 1px solid var(--fs-field-line);
  border-radius: 100px;
  color: var(--fs-ink);
  font-family: var(--fs-font);
  font-size: 14px;
  line-height: 1.4;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.isef26 textarea.form-control { border-radius: 18px; }

.isef26 .form-control::placeholder { color: var(--fs-field-ph); opacity: 1; }

.isef26 .form-control:focus {
  background-color: #fff;
  border-color: var(--fs-focus);
  box-shadow: 0 0 0 3px rgba(28, 102, 204, .20);
  color: var(--fs-ink);
  outline: none;
}

.isef26 .form-control[readonly],
.isef26 .form-control[disabled] {
  background-color: #eaf0f8;
  border-color: rgba(13, 52, 110, .18);
  color: var(--fs-ink-soft);
  cursor: default;
}

/* native selects */
.isef26 select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%231a4e9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 14px;
}

.isef26 select.form-control option {
  background: #fff;
  color: var(--fs-ink);
}

/* read-only value shown as plain text (category field) */
.isef26-static-value {
  padding: 12px 20px;
  background-color: #eaf0f8;
  border: 1px solid rgba(13, 52, 110, .18);
  border-radius: 100px;
  font-size: 14px;
  color: var(--fs-ink-soft);
}

/* required marker */
.isef26 .form-group sup,
.isef26 .req { color: var(--fs-danger); font-weight: 800; }

/* password field + visibility toggle */
.isef26 .isef26-password-wrap { position: relative; }

.isef26 .isef26-password-wrap .form-control { padding-right: 52px; }

.isef26 .eye-of-dajjal,
.isef26 .eye-of-human {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  cursor: pointer;
  opacity: .75;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 20px 20px;
  transition: opacity .2s ease;
}

.isef26 .eye-of-dajjal:hover,
.isef26 .eye-of-human:hover { opacity: 1; }

.isef26 .eye-of-dajjal {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a4e9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
}

.isef26 .eye-of-human {
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a4e9b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cpath d='M1 1l22 22'/%3E%3C/svg%3E");
}

/* helper text under a field */
.isef26-help {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--fs-ink-soft);
}

/* AJAX fragment slots collapse until they are filled */
.isef26 .form-group:empty { margin-bottom: 0; }

/* ---------- buttons ---------- */

.isef26 .btn-isef {
  display: block;
  width: 100%;
  padding: 15px 24px;
  border: 0;
  border-radius: 100px;
  background: var(--fs-action);
  color: #fff;
  font-family: var(--fs-font);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  box-shadow: var(--fs-action-shadow);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
  cursor: pointer;
}

.isef26 .btn-isef:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--fs-action-shadow-h);
  color: #fff;
}

/* on a wide card a full-bleed action bar looks stretched; the code page
   pairs a wide input with a compact centred button, as the reference does */
.isef26-form-actions { text-align: center; }

.isef26 .btn-isef.isef26-btn-auto {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 240px;
  padding-left: 48px;
  padding-right: 48px;
}

@media (max-width: 575.98px) {
  .isef26 .btn-isef.isef26-btn-auto { display: block; width: 100%; min-width: 0; }
}

.isef26 .btn-isef:disabled {
  opacity: .45;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(.4);
}

/* ---------- alerts ---------- */

/* alerts on the public pages sit OUTSIDE the card, on the night sky, so they
   keep a dark glass treatment; inside the card they flip light (below) */
.isef26 .alert {
  padding: 18px 20px;
  border-radius: 16px;
  border: 1px solid var(--fs-line);
  background: var(--fs-surface-deep);
  color: var(--fs-txt-main);
  font-size: 14.5px;
  backdrop-filter: blur(var(--fs-blur));
  -webkit-backdrop-filter: blur(var(--fs-blur));
}

.isef26 .alert-success {
  border-color: rgba(47, 190, 150, .45);
  box-shadow: inset 0 0 16px rgba(47, 190, 150, .10);
}

.isef26 .alert-danger {
  border-color: rgba(240, 90, 90, .45);
  box-shadow: inset 0 0 16px rgba(240, 90, 90, .10);
}

.isef26 .isef26-card .alert {
  background: var(--fs-card-2);
  border-color: rgba(13, 52, 110, .16);
  color: var(--fs-ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* 5.9:1 and 5.7:1 against their own tints */
.isef26 .isef26-card .alert-success {
  background: #e9f7f2;
  border-color: rgba(11, 107, 82, .30);
  color: #0b6b52;
  box-shadow: none;
}

.isef26 .isef26-card .alert-danger {
  background: #fdecea;
  border-color: rgba(179, 38, 30, .28);
  color: #b3261e;
  box-shadow: none;
}

/* ---------- status icon (result pages) ---------- */

.isef26-status-icon {
  width: 74px; height: 74px;
  margin: 0 auto 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  font-size: 32px;
  color: #fff;
}

.isef26-status-ok {
  background: linear-gradient(135deg, #1a8f6e 0%, #0b6b52 100%);
  box-shadow: 0 6px 20px rgba(11, 107, 82, .35);
}

.isef26-status-warn {
  background: linear-gradient(135deg, var(--fs-gold-light) 0%, var(--fs-gold) 100%);
  box-shadow: 0 6px 20px rgba(201, 162, 74, .40);
  color: #24170a;
}

.isef26-status-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--fs-ink);
}

.isef26-status-text .sub {
  display: block;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(13, 52, 110, .14);
  font-size: 14px;
  color: var(--fs-ink-soft);
}

/* ---------- footer ---------- */

.isef26-footer {
  position: relative;
  z-index: 2;
  padding: 26px 16px 34px;
  text-align: center;
  font-size: 12.5px;
  letter-spacing: .3px;
  /* the horizon glow brightens the foot of the page, so the footer needs more
     weight here than it did over a flat near-black */
  color: rgba(223, 240, 253, .82);
  text-shadow: 0 1px 6px rgba(4, 16, 40, .55);
}

.isef26-footer a { color: #cfeaf9; }

/* ==========================================================================
   Third-party widget theming
   The card is light, so the widgets that render inside it are light too.
   The app's top bar keeps its own dark select2 (see isef26-member.css).
   ========================================================================== */

/* select2 ------------------------------------------------------------- */

.isef26 .select2-container { width: 100% !important; }

.isef26 .select2-container--default .select2-selection--single {
  height: auto;
  padding: 12px 20px;
  background-color: var(--fs-field);
  border: 1px solid var(--fs-field-line);
  border-radius: 100px;
}

.isef26 .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 0;
  line-height: 1.4;
  font-size: 14px;
  color: var(--fs-ink);
}

.isef26 .select2-container--default .select2-selection--single .select2-selection__placeholder { color: var(--fs-field-ph); }

.isef26 .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 50%;
  right: 14px;
  height: 20px;
  margin-top: -10px;
}

.isef26 .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--fs-ink-label) transparent transparent transparent;
}

.isef26 .select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--fs-focus);
  box-shadow: 0 0 0 3px rgba(28, 102, 204, .20);
}

.isef26 .select2-container--default .select2-selection--multiple {
  min-height: 0;
  padding: 7px 14px;
  background-color: var(--fs-field);
  border: 1px solid var(--fs-field-line);
  border-radius: 22px;
}

.isef26 .select2-container--default .select2-selection--multiple .select2-selection__rendered {
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* 4.0 puts the remove control inline before the label; 4.1 makes it a button
   the stock CSS pins to the chip's left edge. Reserve the gutter and pin it
   ourselves so both markups lay out the same and the x never sits on the text. */
.isef26 .select2-container--default .select2-selection--multiple .select2-selection__choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 4px 13px 4px 26px;
  background: #e3eefc;
  border: 1px solid rgba(23, 80, 181, .35);
  border-radius: 100px;
  color: #14539e;
  font-size: 12.5px;
  line-height: 1.6;
}

.isef26 .select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: #14539e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.isef26 .select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
  background: transparent;
  color: #0d3b75;
}

.isef26 .select2-container--default .select2-search--inline .select2-search__field {
  margin: 3px 0 0;
  color: var(--fs-ink);
  font-family: var(--fs-font);
  font-size: 14px;
}

.isef26 .select2-container--default.select2-container--focus .select2-selection--multiple {
  border-color: var(--fs-focus);
  box-shadow: 0 0 0 3px rgba(28, 102, 204, .20);
}

/* dropdown panel is portalled to <body>, so it is scoped globally */
.select2-container--default .select2-dropdown {
  background: #fff;
  border: 1px solid rgba(13, 52, 110, .22);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 38px rgba(6, 21, 52, .28);
}

.select2-container--default .select2-search--dropdown { padding: 10px; }

.select2-container--default .select2-search--dropdown .select2-search__field {
  padding: 9px 14px;
  background: var(--fs-field, #f6faff);
  border: 1px solid var(--fs-field-line, #6b93c6);
  border-radius: 100px;
  color: #0d2447;
  font-size: 14px;
  outline: none;
}

.select2-container--default .select2-results__option {
  padding: 10px 16px;
  font-size: 14px;
  color: #0d2447;
  background: transparent;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--highlighted {
  background: #e3eefc !important;
  color: #0d2447;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background: #d4e6fb;
  color: #0d2447;
}

.select2-container--default .select2-results > .select2-results__options {
  max-height: 260px;
  scrollbar-color: rgba(23, 80, 181, .45) transparent;
}

/* rejected on submit ---------------------------------------------------
   The browser's own bubble ("Please fill out this field") points at one
   control at a time; isef26-invalid-fields.js rings every control that failed,
   so nothing that still needs filling in can hide further down a long form. */

.isef26 .form-control.isef26-invalid,
.isef26 .form-control.isef26-invalid:focus,
.isef26 .select2-container--default .select2-selection--single.isef26-invalid,
.isef26 .select2-container--default.select2-container--open .select2-selection--single.isef26-invalid,
.isef26 .select2-container--default .select2-selection--multiple.isef26-invalid {
  background-color: #fff6f5;
  border-color: var(--fs-danger);
  box-shadow: 0 0 0 3px rgba(193, 55, 43, .18);
}

/* the note the script drops under a rejected field */
.isef26 .isef26-invalid-note {
  display: block;
  margin: 6px 0 0 20px;
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: .2px;
  color: var(--fs-danger);
}

.isef26 textarea.form-control.isef26-invalid + .isef26-invalid-note { margin-left: 18px; }

/* intl-tel-input (v24 markup: .iti__country-container / .iti__selected-country
   / .iti__dropdown-content) ------------------------------------------- */

.isef26 .iti { width: 100%; display: block; }

.isef26 .iti__selected-country {
  background: transparent;
  border: 0;
  border-radius: 100px 0 0 100px;
  padding-left: 8px;
  outline: none;
}

.isef26 .iti__selected-country:hover,
.isef26 .iti__selected-country:focus { background: rgba(23, 80, 181, .08); }

.isef26 .iti__arrow        { border-top-color: var(--fs-ink-label); }
.isef26 .iti__arrow--up    { border-bottom-color: var(--fs-ink-label); }

/* the dropdown panel is appended to <body>, so it is scoped globally */
.iti__dropdown-content {
  background-color: #fff;
  border: 1px solid rgba(13, 52, 110, .22);
  border-radius: 14px;
  overflow: hidden;
  color: #0d2447;
  box-shadow: 0 16px 38px rgba(6, 21, 52, .28);
}

.iti__search-input {
  padding: 11px 16px;
  background-color: #f6faff;
  border: 0;
  border-bottom: 1px solid rgba(13, 52, 110, .16);
  color: #0d2447;
  font-size: 14px;
  outline: none;
}

.iti__search-input::placeholder { color: #66809f; opacity: 1; }

.iti__country-list { background-color: transparent; }

.iti__country {
  padding: 9px 14px;
  color: #0d2447;
}

.iti__country.iti__highlight,
.iti__country:hover { background-color: #e3eefc; }

.iti__country-name  { color: #0d2447; }
.iti__dial-code     { color: #55708f; }
.iti__divider       { border-bottom-color: rgba(13, 52, 110, .14); }

/* mobile full-screen variant */
.iti--fullscreen-popup .iti__dropdown-content {
  background-color: #fff;
  border-radius: 0;
}

/* reCAPTCHA ----------------------------------------------------------- */

.isef26-recaptcha {
  display: flex;
  justify-content: center;
  margin: 26px 0 22px;
}

/* ==========================================================================
   Tabs (Konfirmasi / Petunjuk / Kontak Kami)
   The strip sits on the night sky above the card, so it is written
   light-on-dark; the active pill borrows the card's own light surface so it
   reads as the sheet that is currently open.
   ========================================================================== */

.isef26-tabs {
  display: flex;
  gap: 6px;
  padding: 6px;
  margin-bottom: 16px;
  background: var(--fs-surface);
  border: 1px solid var(--fs-border);
  border-radius: 100px;
  backdrop-filter: blur(var(--fs-blur));
  -webkit-backdrop-filter: blur(var(--fs-blur));
  box-shadow: var(--fs-shadow);
}

.isef26-tab {
  flex: 1 1 0;
  min-width: 0;
  padding: 11px 12px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: var(--fs-txt-sec);
  font-family: var(--fs-font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}

.isef26-tab:hover { color: var(--fs-txt-main); background: rgba(255, 255, 255, .06); }

.isef26-tab:focus-visible {
  outline: 2px solid var(--fs-blue-soft);
  outline-offset: 2px;
}

.isef26-tab.is-active {
  background: linear-gradient(180deg, #ffffff 0%, #eaf3ff 100%);
  color: #0d2447;
  box-shadow: 0 4px 14px rgba(2, 10, 30, .35), inset 0 0 0 1px rgba(201, 162, 74, .55);
}

.isef26-tab .count {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 100px;
  background: rgba(47, 143, 224, .22);
  font-size: 10.5px;
  font-weight: 800;
}

.isef26-tab.is-active .count { background: rgba(23, 80, 181, .12); color: #14539e; }

.isef26-tabpanel { display: none; }
.isef26-tabpanel.is-active { display: block; }

/* ---------- invitation-code field ---------- */

/* the code is 8 characters printed on the invitation - set it wide and
   monospaced so guests can check what they typed against the card */
.isef26 .form-control.isef26-code-input {
  padding: 16px 22px;
  font-family: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 5px;
  text-align: center;
  text-transform: none;
}

.isef26 .form-control.isef26-code-input::placeholder {
  letter-spacing: 3px;
  font-size: 15px;
  font-weight: 500;
}

/* ---------- numbered steps (Petunjuk) ---------- */

.isef26-steps {
  /* the card is wide; the prose inside it should not be */
  max-width: 68ch;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: isef26-step;
}

.isef26-steps > li {
  position: relative;
  counter-increment: isef26-step;
  padding: 0 0 18px 46px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fs-ink);
}

.isef26-steps > li:last-child { padding-bottom: 0; }

.isef26-steps > li::before {
  content: counter(isef26-step);
  position: absolute;
  top: 0; left: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fs-gold-light) 0%, var(--fs-gold) 100%);
  box-shadow: 0 2px 8px rgba(201, 162, 74, .35);
  color: #24170a;
  font-size: 13px;
  font-weight: 800;
}

/* the rail that links one step to the next */
.isef26-steps > li::after {
  content: '';
  position: absolute;
  top: 34px; bottom: 8px; left: 14.5px;
  width: 1px;
  background: linear-gradient(to bottom, rgba(201, 162, 74, .55), rgba(13, 52, 110, .10));
}

.isef26-steps > li:last-child::after { display: none; }

.isef26-steps strong { color: var(--fs-ink-label); }

.isef26-note {
  margin: 22px 0 0;
  padding: 14px 16px;
  background: var(--fs-card-2);
  border: 1px solid rgba(13, 52, 110, .12);
  border-left: 3px solid var(--fs-gold);
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fs-ink-soft);
}

.isef26-note strong { color: var(--fs-ink); }

/* ---------- attendance status buttons ----------
   A three-way choice reads better as buttons than as a dropdown: the guest
   sees every option at once and commits in one tap. The hidden #status input
   still carries the ref_status id, so the POST is unchanged. */

.isef26-status-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

/* a fourth option would wrap rather than squeeze */
@supports (grid-template-columns: repeat(auto-fit, minmax(150px, 1fr))) {
  .isef26-status-group { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
}

.isef26 .isef26-status-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--fs-field-line);
  border-radius: 14px;
  background: var(--fs-field);
  color: var(--fs-ink-soft);
  font-family: var(--fs-font);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .6px;
  line-height: 1.3;
  text-align: left;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              box-shadow .18s ease, transform .18s ease;
}

.isef26 .isef26-status-btn .tx { min-width: 0; }

.isef26 .isef26-status-btn .ic {
  flex: 0 0 auto;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  background: rgba(13, 52, 110, .07);
  font-size: 14px;
  line-height: 1;
  transition: background .18s ease, color .18s ease;
}

.isef26 .isef26-status-btn:hover {
  transform: translateY(-1px);
  border-color: var(--fs-focus);
  color: var(--fs-ink);
}

/* a click leaves focus on the button; only keyboard users need the ring */
.isef26 .isef26-status-btn:focus { outline: none; }

.isef26 .isef26-status-btn:focus-visible {
  outline: 2px solid var(--fs-focus);
  outline-offset: 2px;
}

/* per-option accent; only the selected button fills in */
.isef26 .isef26-status-btn.is-yes:hover      { border-color: #0b6b52; color: #0b6b52; }
.isef26 .isef26-status-btn.is-delegate:hover { border-color: #9a7423; color: #8a6415; }
.isef26 .isef26-status-btn.is-no:hover       { border-color: #b3261e; color: #b3261e; }

.isef26 .isef26-status-btn.is-selected {
  color: #fff;
  border-color: transparent;
  transform: none;
}

.isef26 .isef26-status-btn.is-selected .ic {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.isef26 .isef26-status-btn.is-yes.is-selected {
  background: linear-gradient(135deg, #1a8f6e 0%, #0b6b52 100%);
  box-shadow: 0 6px 18px rgba(11, 107, 82, .34);
}

.isef26 .isef26-status-btn.is-delegate.is-selected {
  background: linear-gradient(135deg, var(--fs-gold-light) 0%, var(--fs-gold) 100%);
  color: #24170a;
  box-shadow: 0 6px 18px rgba(201, 162, 74, .38);
}

.isef26 .isef26-status-btn.is-delegate.is-selected .ic {
  background: rgba(36, 23, 10, .16);
  color: #24170a;
}

.isef26 .isef26-status-btn.is-no.is-selected {
  background: linear-gradient(135deg, #cf4339 0%, #b3261e 100%);
  box-shadow: 0 6px 18px rgba(179, 38, 30, .34);
}

/* the chosen status, echoed back with the guest's own name */
.isef26-status-summary {
  display: none;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  margin-bottom: 14px;
  border: 1px solid rgba(13, 52, 110, .14);
  border-left: 3px solid var(--fs-field-line);
  border-radius: 14px;
  background: var(--fs-card-2);
}

.isef26-status-summary.is-shown { display: flex; }

.isef26-status-summary[data-variant="yes"]      { border-left-color: #0b6b52; background: #e9f7f2; }
.isef26-status-summary[data-variant="delegate"] { border-left-color: var(--fs-gold); background: #fdf5e4; }
.isef26-status-summary[data-variant="no"]       { border-left-color: #b3261e; background: #fdecea; }

.isef26-status-summary-ic {
  flex: 0 0 auto;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 8px rgba(6, 21, 52, .12);
  font-size: 16px;
  color: var(--fs-ink);
}

.isef26-status-summary[data-variant="yes"] .isef26-status-summary-ic      { color: #0b6b52; }
.isef26-status-summary[data-variant="delegate"] .isef26-status-summary-ic { color: #8a6415; }
.isef26-status-summary[data-variant="no"] .isef26-status-summary-ic       { color: #b3261e; }

.isef26-status-summary-body { min-width: 0; }

.isef26-status-summary-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--fs-ink-label);
}

.isef26-status-summary[data-variant="yes"] .isef26-status-summary-label      { color: #0b6b52; }
.isef26-status-summary[data-variant="delegate"] .isef26-status-summary-label { color: #8a6415; }
.isef26-status-summary[data-variant="no"] .isef26-status-summary-label       { color: #b3261e; }

.isef26-status-summary-name {
  margin-top: 2px;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fs-ink);
}

.isef26-status-summary-role {
  font-size: 12px;
  line-height: 1.4;
  color: var(--fs-ink-soft);
}

.isef26 #status-hint.is-error {
  font-weight: 600;
  color: var(--fs-danger);
}

/* ---------- PIC cards (Kontak Kami) ---------- */

.isef26-pic-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.isef26-pic {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 12px;
  background: var(--fs-card-2);
  border: 1px solid rgba(13, 52, 110, .12);
  border-radius: 14px;
}

.isef26-pic-list > .isef26-pic { margin-bottom: 0; }

.isef26-pic:last-child { margin-bottom: 0; }

.isef26-pic-avatar {
  flex: 0 0 auto;
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1750b5 0%, #2172c4 100%);
  box-shadow: 0 2px 10px rgba(23, 80, 181, .30);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .5px;
}

.isef26-pic-body { min-width: 0; flex: 1 1 auto; }

.isef26-pic-name {
  margin: 0 0 2px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fs-ink);
}

.isef26-pic-role {
  margin: 0 0 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--fs-ink-soft);
}

.isef26-pic-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.isef26 .isef26-card a.isef26-pic-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 7px 14px;
  border: 1px solid rgba(23, 80, 181, .28);
  border-radius: 100px;
  background: #fff;
  color: #14539e;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  word-break: break-all;
  transition: background .2s ease, border-color .2s ease, color .2s ease;
}

body.isef26 .isef26-card a.isef26-pic-link:hover {
  background: #eaf3ff;
  border-color: rgba(23, 80, 181, .55);
  color: #0d3b75;
}

.isef26-pic-link .ic { font-size: 13px; line-height: 1; }

.isef26-empty {
  padding: 26px 18px;
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fs-ink-soft);
}

/* ---------- responsive ---------- */

@media (max-width: 575.98px) {
  .isef26-main   { padding: 20px 14px 32px; }
  .isef26-card   { padding: 24px 18px 22px; border-radius: 20px; }
  .isef26-title  { font-size: 24px; }
  .isef26-header-inner { padding: 9px 20px; }
  .isef26-header-inner img { height: 30px; }
  .isef26-event  { flex-direction: column; gap: 12px; }
  .isef26-recaptcha { transform: scale(.88); transform-origin: center; }

  /* three labels no longer fit one pill row at phone width */
  .isef26-tabs   { border-radius: 18px; flex-wrap: wrap; }
  .isef26-tab    { flex: 1 1 auto; padding: 10px 10px; font-size: 11.5px; letter-spacing: .2px; }
  .isef26-pic    { flex-direction: column; gap: 10px; }
  .isef26 .form-control.isef26-code-input { font-size: 17px; letter-spacing: 3px; padding: 15px 14px; }

  /* three status buttons side by side leave no room for their labels */
  .isef26-status-group { grid-template-columns: 1fr; }
  @supports (grid-template-columns: repeat(auto-fit, minmax(150px, 1fr))) {
    .isef26-status-group { grid-template-columns: 1fr; }
  }
}
