/* ================================================================
   GEW Uganda 2026 event page + registration form
   Loaded only on the 2026 program page. Uses the site's Blocksy
   palette tokens so it follows the Customizer colours.
   ================================================================ */

.gew26 {
  --gew-blue: var(--theme-palette-color-1);
  --gew-yellow: var(--theme-palette-color-6);
  --gew-ink: var(--theme-palette-color-4);
  --gew-line: var(--theme-palette-color-5);
  --gew-soft: var(--theme-palette-color-7);
  --gew-white: var(--theme-palette-color-8);
}

.gew26 a {
  text-underline-offset: 3px;
}

/* ---- Generic section rhythm ---- */
.gew26-section {
  padding: clamp(56px, 8vw, 112px) 0;
}

.gew26-section:nth-of-type(even) {
  background: var(--gew-soft);
}

.gew26-lead {
  font-size: clamp(19px, 1.8vw, 26px) !important;
  line-height: 1.4 !important;
  max-width: 62ch;
  font-weight: 300 !important;
}

.gew26-small {
  font-size: 14px !important;
  opacity: 0.7;
  margin-top: 24px;
}

.gew26-cta-row {
  margin-top: 40px;
}

/* ---- Countdown ---- */
.gew26-countdown {
  background: var(--gew-blue);
  color: var(--gew-white);
  padding: clamp(40px, 6vw, 72px) 0;
  text-align: center;
}

.gew26-countdown__label {
  font-size: 12px !important;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 24px;
  opacity: 0.85;
}

.gew26-countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 2vw, 24px);
  max-width: 760px;
  margin: 0 auto;
}

.gew26-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(14px, 2.4vw, 28px) 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 16px;
}

.gew26-unit__num {
  font-size: clamp(32px, 7vw, 72px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.gew26-unit__lbl {
  margin-top: 10px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.8;
}

.gew26-countdown__state {
  font-size: clamp(28px, 5vw, 56px) !important;
  font-weight: 300 !important;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--gew-yellow);
}

.gew26-countdown__note {
  margin: 24px 0 0;
  font-size: 14px !important;
  opacity: 0.75;
}

/* ---- Overview ---- */
.gew26-overview__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.gew26-overview__text p {
  margin: 0 0 20px;
  max-width: 62ch;
}

.gew26-facts {
  background: var(--gew-soft);
  border: 1px solid var(--gew-line);
  border-radius: 20px;
  padding: clamp(24px, 3vw, 40px);
}

.gew26-facts dl {
  margin: 0;
}

.gew26-facts dl > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--gew-line);
}

.gew26-facts dl > div:first-child {
  padding-top: 0;
}

.gew26-facts dl > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gew26-facts dt {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0 0 6px;
}

.gew26-facts dd {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
}

/* ---- Programme table ---- */
.gew26-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 40px;
  background: transparent;
}

.gew26-table th,
.gew26-table td {
  text-align: left;
  padding: 20px 16px 20px 0;
  border-bottom: 1px solid var(--gew-line);
  font-size: clamp(16px, 1.3vw, 19px);
  vertical-align: top;
}

.gew26-table thead th {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
  opacity: 0.65;
  border-bottom: 1px solid var(--gew-ink);
}

/* ---- Topics chips ---- */
.gew26-chips {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.gew26-chips li {
  padding: 12px 22px;
  border: 1px solid var(--gew-ink);
  border-radius: 999px;
  font-size: 16px !important;
  line-height: 1.2 !important;
}

/* ---- Speakers / partners / highlights ---- */
.gew26-speakers__grid,
.gew26-highlights__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  margin-top: 32px;
}

.gew26-speaker__img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  margin-bottom: 16px;
}

.gew26-logos {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 48px;
  align-items: center;
}

.gew26-logos img {
  height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
}

/* ---- Final CTA ---- */
.gew26-final-cta {
  background: var(--gew-blue);
  color: var(--gew-white);
  padding: clamp(56px, 8vw, 96px) 0;
}

.gew26-final-cta .sp-container {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.gew26-final-cta .sp-h2 {
  color: var(--gew-white) !important;
  margin: 0;
}

.gew26-final-cta .sp-fade {
  color: rgba(255, 255, 255, 0.4);
}

.gew26-final-cta .eu-btn {
  justify-self: end;
}

/* ---- Registration ---- */
.gew26-register {
  scroll-margin-top: 96px;
  background: var(--gew-soft) !important;
}

#register {
  scroll-margin-top: 96px;
}

.gew26-register__inner {
  max-width: 860px;
}

.gew26-register .sp-h2 {
  font-size: clamp(26px, 3vw, 44px);
  margin-bottom: 16px;
}

.gew26-form-wrap {
  margin-top: 40px;
  background: var(--gew-white);
  border: 1px solid var(--gew-line);
  border-radius: 24px;
  padding: clamp(20px, 4vw, 48px);
}

.gew26-form .gform_wrapper {
  margin: 0;
}

.gew26-form .gfield_label,
.gew26-form legend.gfield_label {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 8px;
}

.gew26-form input[type="text"],
.gew26-form input[type="email"],
.gew26-form input[type="tel"],
.gew26-form select {
  width: 100%;
  min-height: 52px;
  padding: 12px 18px;
  font-size: 16px; /* 16px stops iOS zooming into the field */
  border: 1px solid rgba(10, 10, 10, 0.3);
  border-radius: 12px;
  background: var(--gew-white);
}

.gew26-form input:focus,
.gew26-form select:focus {
  outline: 2px solid var(--gew-blue);
  outline-offset: 1px;
}

.gew26-form .gfield_radio,
.gew26-form .gfield_checkbox {
  display: grid;
  gap: 10px;
}

.gew26-form .gchoice {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 44px; /* comfortable tap target */
}

.gew26-form .gchoice label {
  font-size: 16px;
  cursor: pointer;
}

/* "All three days" toggle — styled as a chip */
.gew26-form .gfield-choice-toggle-all {
  margin-top: 8px;
}

.gew26-form .gfield_choice_all_toggle {
  padding: 10px 20px;
  font-size: 15px;
  border: 1px solid var(--gew-ink);
  border-radius: 999px;
  background: transparent;
  color: var(--gew-ink);
  cursor: pointer;
}

.gew26-form .gfield_choice_all_toggle:hover {
  background: var(--gew-ink);
  color: var(--gew-white);
}

.gew26-form .gfield_error input,
.gew26-form .gfield_error select {
  border-color: #b42318;
}

.gew26-form .gfield_validation_message,
.gew26-form .validation_message {
  color: #b42318;
  font-size: 14px;
  margin-top: 6px;
}

.gew26-form .gform_validation_errors {
  border: 1px solid #b42318;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 24px;
}

.gew26-form .gform_footer,
.gew26-form .gform-footer {
  margin-top: 32px;
  padding: 0;
  flex-direction: column;
  align-items: flex-start;
}

.gew26-form .gform_button.button,
.gew26-form input[type="submit"] {
  background: var(--gew-yellow);
  color: var(--gew-ink);
  border: 1px solid var(--gew-yellow);
  border-radius: 999px;
  padding: 16px 36px;
  font-size: 16px;
  min-height: 54px;
  cursor: pointer;
  width: 100%;
}

@media (min-width: 640px) {
  .gew26-form .gform_button.button,
  .gew26-form input[type="submit"] {
    width: auto;
  }
}

.gew26-form .gform_button.button:hover,
.gew26-form input[type="submit"]:hover {
  background: #e5c306;
}

.gew26-form .gform_button.button[disabled],
.gew26-form input[type="submit"][disabled] {
  opacity: 0.6;
  cursor: progress;
}

.gew26-privacy {
  margin: 20px 0 0;
  font-size: 14px !important;
  line-height: 1.5 !important;
  opacity: 0.8;
}

.gew26-todo {
  background: #fff6cc;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

/* ---- Confirmation (inline) ---- */
.gew26 .gew26-confirm h3 {
  margin-top: 0;
  color: var(--gew-ink);
  font-size: clamp(26px, 3vw, 40px);
}

.gew26-ref {
  font-size: 1.25em;
  letter-spacing: 0.06em;
  padding: 2px 10px;
  background: var(--gew-yellow);
  border-radius: 8px;
}

.gew26-cal {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gew26-cal[hidden] {
  display: none;
}

.gew26-cal__day {
  width: 100%;
  font-size: 14px;
  opacity: 0.7;
  margin-top: 8px;
}

.gew26-cal a {
  font-size: 14px;
  padding: 10px 16px;
  border: 1px solid var(--gew-ink);
  border-radius: 999px;
  text-decoration: none;
  color: var(--gew-ink);
}

/* ---- Tablet / phone ---- */
@media (max-width: 900px) {
  .gew26-overview__grid,
  .gew26-final-cta .sp-container {
    grid-template-columns: 1fr;
  }

  .gew26-final-cta .eu-btn {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .gew26-table thead {
    position: absolute;
    left: -9999px;
  }

  .gew26-table,
  .gew26-table tbody,
  .gew26-table tr,
  .gew26-table td {
    display: block;
    width: 100%;
  }

  .gew26-table tr {
    padding: 16px 0;
    border-bottom: 1px solid var(--gew-line);
  }

  .gew26-table td {
    border: 0;
    padding: 4px 0;
  }

  .gew26-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    opacity: 0.6;
  }

  .gew26-unit {
    border-radius: 12px;
  }

  .gew26-unit__lbl {
    font-size: 10px;
    letter-spacing: 0.08em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
}
