/* CANA events: minimal registration page (glass on the PG blue pattern). */
:root {
  --ev-blue: #4a95ff;
  --ev-peach: #f5c27a;
  --ev-line: rgba(255, 255, 255, 0.22);
  --ev-soft: rgba(255, 255, 255, 0.72);
}

.ev-page {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: calc(100vh - 70px);
  display: flex; align-items: center;
  padding: 64px 5%;
  color: #fff;
}
.ev-page *, .ev-page *::before, .ev-page *::after { box-sizing: border-box; }
.ev-page::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: var(--ev-blue) url('../images/events/pg-pattern.webp') center / cover no-repeat;
}
.ev-page::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(120deg, rgba(11, 21, 40, 0.92) 0%, rgba(13, 30, 53, 0.78) 50%, rgba(20, 45, 78, 0.55) 100%);
}

.ev-glass {
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid var(--ev-line);
  border-radius: 22px;
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 24px 60px rgba(4, 12, 28, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ev-wrap {
  width: 100%; max-width: 1040px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}

.ev-wrap--solo { grid-template-columns: 1fr; max-width: 560px; }

.ev-flyer { display: block; padding: 12px; cursor: zoom-in; transition: transform 0.4s; }
.ev-flyer:hover { transform: translateY(-4px); }
.ev-flyer img { display: block; width: 100%; height: auto; border-radius: 14px; }

.ev-chip {
  display: inline-block; padding: 6px 14px; margin-bottom: 18px; border-radius: 50px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ev-peach); border: 1px solid rgba(245, 194, 122, 0.4); background: rgba(245, 194, 122, 0.1);
}
.ev-title {
  font-family: 'Cormorant Garamond', serif; font-weight: 700;
  font-size: clamp(40px, 5.5vw, 64px); line-height: 1; margin: 0 0 16px;
}
.ev-title em { font-style: italic; color: var(--ev-peach); }
.ev-meta { margin: 0 0 28px; font-size: 16px; line-height: 1.7; color: var(--ev-soft); }
.ev-meta a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 3px; }

.ev-card { padding: 28px; }
.ev-card[hidden] { display: none; }
.ev-card h2 { font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 700; margin: 0 0 8px; color: #fff; }
.ev-card > p { margin: 0 0 20px; color: var(--ev-soft); font-size: 15px; line-height: 1.6; }
.ev-card > p strong { color: var(--ev-peach); letter-spacing: 0.04em; }

.ev-field { margin-bottom: 14px; }
.ev-field label, .ev-label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, 0.85); }
.ev-field label i { font-style: normal; color: rgba(255, 255, 255, 0.45); font-weight: 400; margin-left: 4px; }
.ev-input {
  width: 100%; padding: 13px 15px; border-radius: 12px; outline: none;
  font: 400 15px 'DM Sans', sans-serif; color: #fff;
  background: rgba(8, 18, 36, 0.38); border: 1px solid rgba(255, 255, 255, 0.18);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ev-input::placeholder { color: rgba(255, 255, 255, 0.35); }
.ev-select { appearance: none; padding-right: 40px; cursor: pointer; 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 d='M1 1l5 5 5-5' fill='none' stroke='%23f5c27a' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.ev-select option { color: #142d4e; background: #fff; }
.ev-input:focus { border-color: var(--ev-peach); box-shadow: 0 0 0 4px rgba(245, 194, 122, 0.16); }
.has-error .ev-input { border-color: #ff8a8a; }
.ev-error { display: block; margin-top: 5px; font-size: 12.5px; color: #ffb4b4; }
.ev-error--confirm { margin: -6px 0 14px; }
.ev-alert { padding: 12px 14px; margin-bottom: 16px; border-radius: 12px; font-size: 14px; background: rgba(196, 68, 69, 0.22); border: 1px solid rgba(255, 138, 138, 0.45); }

.ev-segment { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ev-segment input { position: absolute; opacity: 0; pointer-events: none; }
.ev-segment label { margin: 0; padding: 11px; text-align: center; border-radius: 12px; cursor: pointer; font-size: 14px; background: rgba(8, 18, 36, 0.38); border: 1px solid rgba(255, 255, 255, 0.18); transition: all 0.2s; }
.ev-segment input:checked + label { color: var(--ev-peach); border-color: var(--ev-peach); background: rgba(245, 194, 122, 0.14); }
.ev-segment input:focus-visible + label { box-shadow: 0 0 0 4px rgba(245, 194, 122, 0.25); }

.ev-confirm { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; font-size: 14.5px; cursor: pointer; }
.ev-confirm input { width: 19px; height: 19px; margin: 0; accent-color: var(--crimson); }
.ev-confirm.has-error span { color: #ffb4b4; }

.ev-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px; border-radius: 50px; border: none; cursor: pointer;
  font: 600 15px/1 'DM Sans', sans-serif; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.ev-btn:hover { transform: translateY(-2px); }
.ev-btn--primary { color: #fff; background: linear-gradient(135deg, var(--crimson-light), var(--crimson)); box-shadow: 0 10px 26px rgba(161, 52, 53, 0.45); }
.ev-btn--ghost { color: #fff; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.28); }
.ev-btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.ev-btn--block { width: 100%; }
.ev-btn[disabled] { opacity: 0.7; cursor: wait; transform: none; }
.ev-spinner { display: none; width: 17px; height: 17px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.4); border-top-color: #fff; animation: ev-spin 0.8s linear infinite; }
.ev-btn[disabled] .ev-spinner { display: inline-block; }
@keyframes ev-spin { to { transform: rotate(360deg); } }

.ev-done { animation: ev-pop 0.5s cubic-bezier(.2, 1.3, .4, 1); }
@keyframes ev-pop { from { opacity: 0; transform: translateY(14px) scale(0.97); } }
.ev-check { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 14px; border-radius: 50%; background: rgba(94, 227, 154, 0.18); border: 1px solid rgba(94, 227, 154, 0.5); }
.ev-check svg { width: 22px; height: 22px; stroke: #9ff0c2; fill: none; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.ev-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ev-link { display: block; margin-top: 16px; padding: 0; border: none; background: none; font: 400 13.5px 'DM Sans', sans-serif; color: var(--ev-soft); text-decoration: underline; cursor: pointer; }
.ev-done + form { margin-top: 18px; }

.ev-lightbox { position: fixed; inset: 0; z-index: 2000; display: none; place-items: center; padding: 24px; background: rgba(4, 10, 22, 0.88); cursor: zoom-out; }
.ev-lightbox.is-open { display: grid; }
.ev-lightbox img { max-width: min(92vw, 720px); max-height: 88vh; border-radius: 16px; }

/* Events listing cards */
.ev-list-card .event-body { display: flex; flex-direction: column; }
.ev-list-card .ev-list-flyer { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy); }
.ev-list-card .ev-list-flyer img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.5s; }
.ev-list-card:hover .ev-list-flyer img { transform: scale(1.04); }
.ev-list-card .ev-list-cta { margin-top: 18px; align-self: flex-start; }
.events-grid--few { grid-template-columns: repeat(auto-fit, minmax(300px, 380px)); justify-content: center; }

@media (max-width: 860px) {
  .ev-page { padding: 36px 16px 56px; align-items: flex-start; }
  .ev-wrap { grid-template-columns: 1fr; gap: 28px; }
  .ev-flyer { order: 2; max-width: 360px; width: 100%; margin: 0 auto; }
  .ev-card { padding: 22px 18px; }
  .events-grid { grid-template-columns: 1fr; }
}
