/* Event Registration additions on top of the QRTrust microsite styles (qrtrust.css). */
.qv-page-register .qv-hero, .qv-page-home .qv-hero { padding-top: 6px; }
.qv-page-register::before, .qv-page-home::before { height: 270px; }

/* event list */
.ev-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ev-list a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 14px 16px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm, 8px); color: var(--ink); font-weight: 700; text-decoration: none; }
.ev-list a:hover, .ev-list a:focus-visible { border-color: var(--accent); background: var(--surface-sunken, #F4F8FB); text-decoration: none; }
.ev-list svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--touch); }

/* form */
.ev-field { margin-bottom: 16px; }
.ev-field > label:not(.ev-check) { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink); }
.ev-field input:not([type=checkbox]), .ev-field select { width: 100%; height: 52px; padding: 0 16px; border: 1.5px solid var(--field-line, var(--line));
  border-radius: var(--radius-input, 8px); background: var(--field-bg, var(--surface-sunken, #F4F8FB)); font: inherit; font-size: 16px; color: var(--ink); }
.ev-field input:focus, .ev-field select:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: var(--ring-focus, 0 0 0 3px rgba(0,190,212,.40)); }
.ev-field.is-bad input:not([type=checkbox]), .ev-field.is-bad select { border-color: var(--bad); }
.ev-field select:disabled { color: var(--soft); background: var(--surface-sunken, #F4F8FB); }
.ev-field > label small { font-weight: 400; color: var(--soft); }
.qv .ev-error { margin: 6px 0 0; font-size: 13px; color: var(--bad); }
.qv .ev-hint { margin: 6px 0 0; font-size: 12.5px; color: var(--soft); }
.ev-check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; cursor: pointer; }
.ev-check input { width: 20px; height: 20px; flex: 0 0 auto; margin: 0; accent-color: var(--accent); }
.ev-notice { margin: 0 0 14px; padding: 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm, 8px); background: var(--surface-sunken, #F4F8FB); }
.ev-notice summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; list-style: none;
  cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--ink); } /* 44px tap target */
.ev-notice summary::-webkit-details-marker { display: none; }
.ev-notice summary::after { content: ""; width: 8px; height: 8px; margin: 0 3px 4px 0; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ev-notice[open] summary::after { margin-bottom: -4px; transform: rotate(225deg); }
.ev-notice summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.qv .ev-notice p { margin: 0; padding: 12px 0 14px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.6; }

/* registration card: white fields with a firmer border, consent set apart from the data fields */
.qv-page-register .qv-card { --field-bg: #fff; --field-line: var(--border-default, #B8D2E6); padding: 24px; border-radius: 16px; }
.qv-page-register .ev-field input::placeholder { color: #7A93AB; }
.qv-page-register .ev-notice { margin-top: 20px; }
/* banner across the top of the card, to its edges */
.ev-banner { display: block; width: calc(100% + 48px); max-width: none; height: auto; margin: -24px -24px 12px; border-radius: 16px 16px 0 0; }

/* participant ticket: the orange card is one image (Ticket_image) on a dark light-streak screen */
.qv.qv-page-qr { background: var(--navy); }
.qv.qv-page-qr::before { position: fixed; height: auto; bottom: 0; -webkit-mask-image: none; mask-image: none;
  background: linear-gradient(180deg, rgba(0,30,55,.92) 0%, rgba(0,30,55,.55) 100%), url("../img/bg-gradient.webp") center / cover no-repeat; }
.qv-page-qr .qv-top { justify-content: space-between; align-items: center; width: 100%; max-width: 460px; margin: 0 auto; gap: 12px; }
.qv-page-qr .tk-label { color: #fff; font-family: var(--font-display, inherit); font-size: 15px; font-weight: 500;
  letter-spacing: var(--tracking-label, .2em); text-transform: uppercase; }
.qv-page-qr .qv-brand img { height: 30px; }
.qv-page-qr .qv-wrap { padding-top: 6px; }
/* As wide as the screen allows while the save button stays in view (the card is 1080 x 1600). */
.tk-card { display: block; width: min(100%, max(250px, calc((100vh - 132px) * .675))); height: auto; margin: 0 auto 12px;
  border-radius: 6% / 4%; box-shadow: 0 14px 34px rgba(0,0,0,.35); }
.tk-save { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 56px; padding: 0 20px;
  border: 1px solid rgba(255,255,255,.28); border-radius: 18px; background: rgba(255,255,255,.16);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); color: #fff; font-size: 16px; font-weight: 700; }
.tk-save:hover { background: rgba(255,255,255,.24); color: #fff; text-decoration: none; }
.tk-save:focus-visible { outline: none; box-shadow: var(--ring-focus, 0 0 0 3px rgba(0,190,212,.40)); }
.tk-save svg { width: 22px; height: 22px; }
.qv .tk-hint { margin: 12px 4px 0; text-align: center; font-size: 13px; color: rgba(255,255,255,.82); }
.qv.qv-page-qr .qv-foot p { color: rgba(255,255,255,.6); }

.qv .ev-closed { margin-top: 20px; }
.qv .ev-closed h1 { font-size: 24px; }

/* Phones, also in landscape: a shorter header, so the whole form and the participant ticket fit higher. */
@media (max-width: 500px), (max-height: 500px) {
  .qv-page-register .qv-top, .qv-page-qr .qv-top { padding: 8px 16px 0; }
  .qv-page-register .qv-brand img { height: 30px; }
  .qv-page-register .qv-wrap { padding-top: 6px; }

  .qv-page-register::before { height: 220px; }
  .qv-page-register .qv-hero { padding: 4px 4px 14px; }
  .qv-page-register .qv-hero .qv-tag { margin-bottom: 8px; }
  .qv-page-register .qv-hero .qv-tagline { font-size: clamp(22px, 6.6vw, 28px); overflow-wrap: anywhere; }
  .qv-page-register .qv-card { padding: 20px 18px; }
  .qv-page-register .ev-banner { width: calc(100% + 36px); margin: -20px -18px 8px; }
  .qv-page-register .ev-field { margin-bottom: 12px; }
  .qv-page-register .ev-field input:not([type=checkbox]), .qv-page-register .ev-field select { height: 48px; }  .qv-page-register .ev-notice { margin: 16px 0 12px; }
}

/* a photo question: a field as high as the others, its button drawn like the small outlined pill buttons, and the
   picked photo under it */
.qv-page-register .ev-field input[type=file]:not([type=checkbox]) { padding: 7px 7px 0; font-size: 14px; color: var(--soft); cursor: pointer; }
.ev-field input[type=file]::file-selector-button { height: 36px; margin: 0 12px 0 0; padding: 0 18px; border: 1.5px solid var(--field-line, var(--line));
  border-radius: var(--radius-button, 999px); background: var(--surface-sunken, #F4F8FB); font: inherit; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink); cursor: pointer; }
.ev-field input[type=file]:hover::file-selector-button { border-color: var(--navy); }
.ev-preview { display: block; max-width: 100%; max-height: 220px; margin-top: 8px; border: 1px solid var(--line); border-radius: var(--radius-md, 12px); }
.ev-preview[hidden] { display: none; }
@media (max-width: 500px), (max-height: 500px) {
  .qv-page-register .ev-field input[type=file]:not([type=checkbox]) { padding-top: 5px; }
}
