:root {
  --lldikti-navy: #14537d;
  --lldikti-blue: #25a9e0;
  --lldikti-green: #168fbd;
  --lldikti-ink: #164463;
  --lldikti-muted: #64748b;
  --lldikti-soft: #eefaff;
  --lldikti-border: #cfeaf6;
}

html {
  scroll-behavior: smooth;
}

body.public-landing {
  background: #f7fafc;
  color: var(--lldikti-ink);
  font-family: "Lato", sans-serif;
}

.public-navbar {
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(18, 59, 102, 0.1);
  box-shadow: 0 4px 20px rgba(18, 59, 102, 0.06);
  padding: 0.8rem 0;
}

.public-brand {
  align-items: center;
  color: var(--lldikti-navy) !important;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.public-brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--lldikti-blue), var(--lldikti-green));
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  font-size: 0.76rem;
  height: 42px;
  justify-content: center;
  margin-right: 0.7rem;
  width: 42px;
}

.public-brand-logo {
  height: 62px;
  object-fit: contain;
  width: auto;
  max-width: 245px;
}

.registration-only {
  min-height: calc(100vh - 112px);
  padding-top: 8rem;
}

.public-brand small {
  color: var(--lldikti-muted);
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 0.2rem;
}

.public-navbar .nav-link {
  color: var(--lldikti-ink) !important;
  font-weight: 700;
  margin: 0 0.2rem;
}

.btn-lldikti {
  background: linear-gradient(135deg, var(--lldikti-blue), var(--lldikti-green));
  border: 0;
  border-radius: 999px;
  box-shadow: 0 8px 20px rgba(8, 127, 189, 0.2);
  color: #fff !important;
  font-weight: 800;
  padding: 0.7rem 1.3rem;
}

.btn-lldikti:hover,
.btn-lldikti:focus {
  box-shadow: 0 10px 24px rgba(8, 127, 189, 0.3);
  color: #fff;
  transform: translateY(-1px);
}

.public-login-modal .modal-dialog {
  max-width: 430px;
}

.public-login-modal .modal-content {
  border: 0;
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(14, 57, 86, 0.35);
  overflow: hidden;
}

.public-login-modal .modal-header {
  padding: 0.85rem 1rem 0;
}

.public-login-modal .modal-header .close {
  align-items: center;
  background: var(--lldikti-soft);
  border-radius: 50%;
  color: var(--lldikti-navy);
  display: inline-flex;
  height: 36px;
  justify-content: center;
  margin: 0 0 0 auto;
  opacity: 1;
  padding: 0;
  width: 36px;
}

.public-login-modal .modal-body {
  padding: 0 2rem 2rem;
}

.public-login-logo {
  height: 78px;
  max-width: 100%;
  object-fit: contain;
  width: 280px;
}

.public-login-title {
  color: var(--lldikti-navy);
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
  text-align: center;
}

.public-login-copy {
  color: var(--lldikti-muted);
  margin-bottom: 1.5rem;
  text-align: center;
}

.public-login-modal label {
  color: var(--lldikti-ink);
  font-weight: 800;
}

.public-login-modal .input-group-text {
  background: var(--lldikti-soft);
  border-color: var(--lldikti-border);
  color: var(--lldikti-navy);
}

.public-login-modal .form-control {
  border-color: var(--lldikti-border);
  min-height: 44px;
}

.public-login-links {
  border-top: 1px solid var(--lldikti-border);
  margin-top: 1.5rem;
  padding-top: 1rem;
  text-align: center;
}

.public-login-links a {
  color: var(--lldikti-navy);
  font-weight: 800;
}

.searchable-combo {
  position: relative;
}

.searchable-select-native {
  height: 1px !important;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  width: 1px !important;
}

.searchable-combo-input {
  background-image: linear-gradient(45deg, transparent 50%, var(--lldikti-navy) 50%), linear-gradient(135deg, var(--lldikti-navy) 50%, transparent 50%);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
  padding-right: 2.5rem;
}

.searchable-combo-menu {
  background: #fff;
  border: 1px solid var(--lldikti-border);
  border-radius: 10px;
  box-shadow: 0 16px 35px rgba(18, 59, 102, 0.16);
  display: none;
  left: 0;
  max-height: 240px;
  overflow-y: auto;
  padding: 0.4rem;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 1050;
}

.searchable-combo.is-open .searchable-combo-menu {
  display: block;
}

.searchable-combo-option {
  background: transparent;
  border: 0;
  border-radius: 7px;
  color: var(--lldikti-ink);
  cursor: pointer;
  display: block;
  padding: 0.65rem 0.75rem;
  text-align: left;
  width: 100%;
}

.searchable-combo-option:hover,
.searchable-combo-option:focus {
  background: var(--lldikti-soft);
  color: var(--lldikti-navy);
  outline: 0;
}

.searchable-combo-empty {
  color: var(--lldikti-muted);
  padding: 0.75rem;
  text-align: center;
}

.participant-total {
  align-items: center;
  background: linear-gradient(135deg, var(--lldikti-blue), var(--lldikti-green));
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(8, 127, 189, 0.2);
  color: #fff;
  display: flex;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.participant-total span {
  font-size: 0.88rem;
  font-weight: 700;
}

.participant-total strong {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.participant-chart {
  background: #fff;
  border: 1px solid var(--lldikti-border);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(18, 59, 102, 0.08);
  padding: 1.5rem;
}

.participant-row {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(230px, 1.3fr) minmax(200px, 2fr) 95px;
  padding: 0.9rem 0;
}

.participant-row + .participant-row {
  border-top: 1px solid #e7f2f8;
}

.participant-label strong,
.participant-label small {
  display: block;
}

.participant-label strong {
  color: var(--lldikti-ink);
  font-size: 0.95rem;
}

.participant-label small {
  color: var(--lldikti-muted);
  margin-top: 0.25rem;
}

.participant-bar-track {
  background: #e2f3fa;
  border-radius: 999px;
  height: 18px;
  overflow: hidden;
}

.participant-bar {
  background: linear-gradient(90deg, var(--lldikti-blue), var(--lldikti-green));
  border-radius: inherit;
  display: block;
  height: 100%;
  min-width: 0;
}

.participant-value {
  color: var(--lldikti-navy);
  font-size: 1.25rem;
  font-weight: 900;
  text-align: right;
}

.participant-value small {
  color: var(--lldikti-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.attendance-qr-card {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, var(--lldikti-soft) 100%);
  border: 1px solid var(--lldikti-border);
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(18, 59, 102, 0.08);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: 1.75rem 2rem;
}

.attendance-qr-copy h3 {
  color: var(--lldikti-navy);
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 0.55rem;
}

.attendance-qr-copy p {
  color: var(--lldikti-muted);
  margin-bottom: 1.25rem;
}

.attendance-qr-image {
  background: #fff;
  border: 1px solid #d9edf7;
  border-radius: 16px;
  box-shadow: 0 10px 26px rgba(18, 59, 102, 0.12);
  display: block;
  flex: 0 0 auto;
  padding: 0.65rem;
}

.attendance-qr-image img {
  display: block;
  height: 190px;
  width: 190px;
}

@media (max-width: 767.98px) {
  .participant-row {
    gap: 0.6rem;
    grid-template-columns: 1fr auto;
  }

  .participant-bar-track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .attendance-qr-card {
    align-items: stretch;
    flex-direction: column;
    padding: 1.5rem;
    text-align: center;
  }

  .attendance-qr-image {
    align-self: center;
  }
}

.public-hero {
  background:
    radial-gradient(circle at 88% 14%, rgba(255, 255, 255, 0.34), transparent 28%),
    radial-gradient(circle at 12% 86%, rgba(255, 255, 255, 0.2), transparent 32%),
    linear-gradient(135deg, #178fc7 0%, #40b9e8 58%, #78cef0 100%);
  color: #fff;
  padding: 7.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.public-hero::after {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  height: 380px;
  position: absolute;
  right: -150px;
  top: 40px;
  width: 380px;
}

.hero-kicker {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  padding: 0.55rem 0.9rem;
  text-transform: uppercase;
}

.public-hero h1 {
  color: #fff;
  font-size: 2.75rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.13;
  margin-bottom: 1.25rem;
}

.public-hero .lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 700px;
}

.hero-flow {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  backdrop-filter: blur(8px);
  padding: 1.5rem;
}

.flow-item {
  align-items: center;
  display: flex;
  padding: 0.8rem 0;
}

.flow-item + .flow-item {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.flow-number {
  align-items: center;
  background: #fff;
  border-radius: 50%;
  color: var(--lldikti-navy);
  display: inline-flex;
  flex: 0 0 38px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  margin-right: 0.9rem;
}

.section-space {
  padding: 5rem 0;
}

.section-soft {
  background: var(--lldikti-soft);
}

.section-eyebrow {
  color: var(--lldikti-green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  color: var(--lldikti-navy);
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-copy {
  color: var(--lldikti-muted);
  line-height: 1.75;
}

.activity-card,
.info-card,
.registration-card {
  background: #fff;
  border: 1px solid var(--lldikti-border);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(18, 59, 102, 0.07);
}

.activity-card {
  height: 100%;
  padding: 1.5rem;
}

.activity-date {
  align-items: center;
  background: #eaf6fb;
  border-radius: 12px;
  color: var(--lldikti-blue);
  display: inline-flex;
  font-weight: 900;
  margin-bottom: 1rem;
  padding: 0.6rem 0.8rem;
}

.activity-card h3 {
  color: var(--lldikti-navy);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.45;
}

.activity-meta {
  color: var(--lldikti-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.test-badge {
  background: #eef7f1;
  border-radius: 999px;
  color: var(--lldikti-green);
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 900;
  margin: 0.25rem 0.25rem 0 0;
  padding: 0.45rem 0.7rem;
}

.registration-card {
  overflow: hidden;
}

.registration-head {
  background: linear-gradient(135deg, #178fc7, #55c1ec);
  color: #fff;
  padding: 1.75rem 2rem;
}

.registration-head h2 {
  color: #fff;
  font-size: 1.55rem;
  font-weight: 900;
  margin-bottom: 0.4rem;
}

.registration-body {
  padding: 2rem;
}

.registration-body label {
  color: var(--lldikti-ink);
  font-weight: 800;
}

.registration-body .form-control {
  border-color: var(--lldikti-border);
  border-radius: 10px;
  min-height: 46px;
}

.registration-body .form-control:focus {
  border-color: var(--lldikti-blue);
  box-shadow: 0 0 0 0.2rem rgba(8, 127, 189, 0.12);
}

.required-mark {
  color: #d14343;
}

.info-card {
  padding: 1.5rem;
}

.info-card h3 {
  color: var(--lldikti-navy);
  font-size: 1.05rem;
  font-weight: 900;
}

.info-card p,
.info-card li {
  color: var(--lldikti-muted);
  line-height: 1.65;
}

.privacy-note {
  background: #f0f8fc;
  border-left: 4px solid var(--lldikti-blue);
  border-radius: 8px;
  color: #41627e;
  font-size: 0.88rem;
  line-height: 1.6;
  padding: 0.9rem 1rem;
}

.public-footer {
  background: #14537d;
  color: rgba(255, 255, 255, 0.75);
  padding: 2rem 0;
}

.public-footer strong {
  color: #fff;
}

.login-modal .modal-content {
  border: 0;
  border-radius: 18px;
  box-shadow: 0 24px 80px rgba(12, 41, 71, 0.24);
}

.login-modal .modal-header {
  border-bottom: 0;
  padding: 1.5rem 1.5rem 0;
}

.login-modal .modal-body {
  padding: 1rem 1.5rem 1.75rem;
}

.login-modal .modal-title {
  color: var(--lldikti-navy);
  font-weight: 900;
}

.login-modal .input-group-text {
  background: #f4f8fb;
  border-color: var(--lldikti-border);
  color: var(--lldikti-blue);
}

.login-modal .form-control {
  border-color: var(--lldikti-border);
  min-height: 48px;
}

.page-alert {
  left: 50%;
  max-width: 760px;
  position: fixed;
  top: 82px;
  transform: translateX(-50%);
  width: calc(100% - 30px);
  z-index: 1080;
}

@media (max-width: 991.98px) {
  .public-navbar .navbar-collapse {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(18, 59, 102, 0.12);
    margin-top: 0.75rem;
    padding: 0.75rem;
  }

  .public-hero {
    padding-top: 6.5rem;
  }

  .public-hero h1 {
    font-size: 2.25rem;
  }

  .hero-flow {
    margin-top: 2rem;
  }
}

@media (max-width: 575.98px) {
  .public-brand-logo {
    height: 52px;
    max-width: 190px;
  }

  .public-brand small {
    display: none;
  }

  .public-hero h1 {
    font-size: 1.9rem;
  }

  .section-space {
    padding: 3.5rem 0;
  }

  .section-title {
    font-size: 1.65rem;
  }

  .registration-body,
  .registration-head {
    padding: 1.35rem;
  }
}
