/* addtix design system — replicated from cognitix-angular */

:root {
  --cgx-primary: #00C0FF;
  --cgx-primary-light: #00C0FF12;
  --cgx-primary-inverse: #ffffff;
  --cgx-text: #222222;
  --cgx-text-secondary: #717171;
  --cgx-text-caption: #616161;
  --cgx-border: #BCC2C2;
  --cgx-error: #E6353D;
  --cgx-date-blue: #2175E4;
  --cgx-surface: #F6F8FA;
  --cgx-white: #ffffff;
  --cgx-shadow: 0px 2px 16px rgba(0, 0, 0, 0.05);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  letter-spacing: -0.02em;
  color: var(--cgx-text);
  background: var(--cgx-surface);
  padding-top: 97px;
  margin: 0;
}

@media (max-width: 767px) {
  body { padding-top: 56px; }
}

/* ---------- navbar ---------- */
.cx-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--cgx-white);
  box-shadow: var(--cgx-shadow);
  height: 97px;
  display: flex;
  align-items: center;
}

.cx-navbar .container-xl {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 24px;
}

.cx-navbar .navbar-brand img {
  height: 80px;
  width: 80px;
  object-fit: contain;
  display: block;
}

@media (max-width: 767px) {
  .cx-navbar { height: 56px; }
}

/* ---------- hero ---------- */
.cx-hero {
  background: var(--cgx-white);
  border-bottom: 1px solid #eeeeee;
}

.cx-hero-banner {
  width: 100%;
  aspect-ratio: 16 / 5;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #c2c2c2;
}


/* ---------- page title ---------- */
.cx-page-title {
  background: var(--cgx-white);
  border-bottom: 1px solid #eeeeee;
  padding: 32px 0 24px;
}

.cx-page-title h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--cgx-text);
  margin: 0 0 8px;
}

.cx-page-title p {
  font-size: 13px;
  color: var(--cgx-text-secondary);
  margin: 0;
}

/* ---------- main content ---------- */
.cx-main {
  padding: 40px 0 64px;
}

/* ---------- section title (matches .title-orn) ---------- */
.cx-section-title {
  font-weight: 600;
  font-size: 18px;
  line-height: 120%;
  letter-spacing: -0.02em;
  color: var(--cgx-text);
  margin-bottom: 24px;
}

/* ---------- event card (matches .cx-card + event-card component) ---------- */
.cx-card {
  background: var(--cgx-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--cgx-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.cx-card .event-poster {
  width: 100%;
  aspect-ratio: 100 / 42;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, contain;
  background-color: #c2c2c2;
}

.cx-card .event-body {
  padding: 16px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-date {
  font-weight: 500;
  font-size: 13px;
  color: var(--cgx-date-blue);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.event-title {
  font-weight: 600;
  font-size: 20px;
  line-height: 110%;
  letter-spacing: -0.02em;
  color: #000;
  margin-bottom: 8px;
  text-decoration: none;
  display: block;
}

.event-venue {
  font-weight: 500;
  font-size: 13px;
  color: var(--cgx-text-secondary);
  margin-bottom: 0;
}

.cx-card .event-venue { flex: 1; }

.event-divider {
  border-top: 1.5px dashed var(--cgx-border);
  margin: 20px 0;
}

/* ---------- modal overlay ---------- */
.cx-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cx-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* The modal card mirrors cx-card exactly */
.cx-modal-card {
  background: var(--cgx-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0px 8px 40px rgba(0, 0, 0, 0.18);
  width: 100%;
  max-width: 420px;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.22s ease, opacity 0.22s ease;
  opacity: 0;
}

.cx-modal-overlay.open .cx-modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-poster {
  width: 100%;
  aspect-ratio: 100 / 42;
  background-repeat: no-repeat, no-repeat;
  background-position: center, center;
  background-size: cover, contain;
  background-color: #c2c2c2;
}

.modal-body {
  padding: 16px 24px 24px;
  position: relative;
}

/* Nudge the date right so it clears the close button */
.modal-body .event-date {
  padding-right: 32px;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--cgx-border);
  font-size: 16px;
  line-height: 1;
  padding: 4px;
  transition: color 0.15s;
}

.modal-close:hover { color: var(--cgx-text); }

.form-label {
  font-weight: 600;
  font-size: 12px;
  line-height: 150%;
  letter-spacing: -0.02em;
  color: var(--cgx-text);
  margin-bottom: 4px;
  display: block;
}

.form-label .required-star {
  color: var(--cgx-error);
  padding-left: 2px;
  font-weight: 600;
}

.form-control {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.02em;
  padding: 12px 16px;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  width: 100%;
  outline: none;
  background: var(--cgx-white);
  color: var(--cgx-text);
  transition: border-color 0.15s;
}

.form-control::placeholder {
  color: var(--cgx-text-caption);
}

.form-control:focus {
  border-color: var(--cgx-primary);
  box-shadow: 0 0 0 3px var(--cgx-primary-light);
}

/* ---------- buttons ---------- */
.btn {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.02em;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
}

.btn-primary {
  background: var(--cgx-primary);
  color: var(--cgx-primary-inverse);
  border-color: var(--cgx-primary);
}

.btn-primary:hover:not(:disabled) {
  background: #00aae8;
  border-color: #00aae8;
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.btn-outline-primary {
  background: var(--cgx-white);
  color: var(--cgx-primary);
  border-color: var(--cgx-primary);
}

.btn-outline-primary:hover:not(:disabled) {
  background: var(--cgx-primary);
  color: var(--cgx-primary-inverse);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 7px 14px;
  font-size: 12px;
}

/* ---------- inline feedback ---------- */
.cx-alert {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.02em;
  display: none;
}

.cx-alert.show { display: block; }

.cx-alert-error {
  background: #FFF0F0;
  color: var(--cgx-error);
  border: 1px solid #FFCDD2;
}

.cx-alert-success {
  background: #E8F9FF;
  color: #0077aa;
  border: 1px solid #b3e8f8;
}

/* ---------- loading spinner ---------- */
.cx-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

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

/* ---------- footer (matches addtix footer.component exactly) ---------- */
.cx-footer {
  position: relative;
  background: #FAFAFA;
  min-height: 500px;
  padding: 74px 100px 48px;
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-powered-by {
  font-size: 12px;
  color: #828282;
  margin: 0 0 8px;
}

.footer-logo {
  height: 40px;
  display: block;
  margin-bottom: 64px;
}

.footer-left {
  flex-shrink: 0;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.footer-link {
  display: flex;
  gap: 17px;
  align-items: flex-start;
  text-decoration: none;
  color: var(--cgx-text);
}

.footer-link img {
  width: 24px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-link-text {
  font-size: 16px;
  line-height: 1.5;
}

.footer-link-text p {
  margin: 0;
}

.footer-link-label {
  color: #828282;
}

.footer-center { flex: 1; }

.footer-right {
  flex: 0 0 250px;
}

.footer-right h3 {
  font-weight: 600;
  font-size: 18px;
  color: var(--cgx-text);
  margin-bottom: 55px;
}

.footer-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 18px;
  align-items: center;
}

.footer-brands img {
  height: 24px;
  width: auto;
}

.footer-copyright {
  position: absolute;
  left: 100px;
  bottom: 20px;
  font-size: 12px;
  color: var(--cgx-border);
  margin: 0;
}

@media (max-width: 767px) {
  .cx-footer {
    flex-wrap: wrap;
    min-height: auto;
    padding: 40px 16px 48px;
  }
  .footer-left { width: 100%; margin-bottom: 8px; }
  .footer-logo { margin-bottom: 40px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 24px 40px; }
  .footer-link-text { font-size: 12px; }
  .footer-center { display: none; }
  .footer-right { width: 100%; }
  .footer-right h3 { font-size: 16px; margin-bottom: 24px; }
  .footer-copyright { left: 16px; bottom: 10px; }
}

/* ---------- utilities ---------- */
.container-xl {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -12px;
}

.col {
  padding: 0 12px;
  flex: 1 0 0%;
  min-width: 0;
}

.col-md-6 {
  padding: 0 12px;
  width: 50%;
}

@media (max-width: 767px) {
  .col-md-6 { width: 100%; margin-bottom: 24px; }
  .col-md-6:last-child { margin-bottom: 0; }
  .cx-hero h1 { font-size: 22px; }
}

.g-4 { gap: 24px; }

.mb-0 { margin-bottom: 0 !important; }
.mb-3 { margin-bottom: 16px; }
.mt-3 { margin-top: 16px; }
.text-center { text-align: center; }
.d-flex { display: flex; }
.align-items-center { align-items: center; }
.gap-2 { gap: 8px; }
.w-100 { width: 100%; }
