/*
 * Chesswood VCA PBNA - exam search / selection flow
 * Depends on cw-pbna-ui.css.
 * Scope: .cw-pbna-exam-search inside .cw-pbna-ui.
 */

.cw-pbna-exam-search {
  padding: 1rem 0 3rem;
}

.cw-pbna-exam-search__hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: clamp(1.25rem, 4vw, 2.75rem);
  align-items: center;
  margin: 0 0 1.2rem;
  padding: clamp(1.35rem, 4.2vw, 2.8rem);
  border: 1px solid var(--cw-pbna-green-border);
  border-radius: var(--cw-pbna-radius-xl);
  background:
    radial-gradient(circle at 88% 12%, rgba(21, 128, 61, 0.17), transparent 28%),
    radial-gradient(circle at 8% 18%, rgba(15, 23, 42, 0.055), transparent 24%),
    linear-gradient(135deg, #ffffff 0%, #f0fdf4 54%, #ecfdf5 100%);
  box-shadow: var(--cw-pbna-shadow-lg);
}

.cw-pbna-exam-search__hero::after {
  content: "";
  position: absolute;
  right: -5rem;
  bottom: -5rem;
  width: 14rem;
  height: 14rem;
  border: 1.35rem solid rgba(21, 128, 61, 0.075);
  border-radius: 999px;
  pointer-events: none;
}

.cw-pbna-exam-search__hero-copy,
.cw-pbna-exam-search__hero-aside {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.cw-pbna-exam-search__hero-aside {
  padding: 1.15rem;
  border: 1px solid var(--cw-pbna-green-border-soft);
  border-radius: var(--cw-pbna-radius-lg);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 1rem 2.5rem rgba(15, 23, 42, 0.08);
}

.cw-pbna-exam-search__hero-aside-title {
  margin: 0 0 0.55rem;
  font-size: 1.28rem;
  line-height: 1.15;
}

.cw-pbna-exam-search__hero-aside p {
  margin: 0;
  color: var(--cw-pbna-text-body);
}

.cw-pbna-exam-search__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.15rem 0 0;
  padding: 0;
  list-style: none;
}

.cw-pbna-exam-search__fact {
  padding: 0.82rem 0.9rem;
  border: 1px solid var(--cw-pbna-green-border-soft);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--cw-pbna-shadow-sm);
}

.cw-pbna-exam-search__fact strong,
.cw-pbna-exam-search__fact span {
  display: block;
}

.cw-pbna-exam-search__fact strong {
  color: var(--cw-pbna-green);
  font-size: 1.2rem;
  line-height: 1.05;
}

.cw-pbna-exam-search__fact span {
  margin-top: 0.2rem;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
}

.cw-pbna-exam-search__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0 0 1.2rem;
  padding: 0.8rem;
  border: 1px solid var(--cw-pbna-border);
  border-radius: var(--cw-pbna-radius-md);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--cw-pbna-shadow-sm);
}

.cw-pbna-exam-search__step {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.72rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 1rem;
  color: var(--cw-pbna-text-muted);
  background: #f8fafc;
}

.cw-pbna-exam-search__step-number {
  display: grid;
  place-items: center;
  flex: 0 0 1.75rem;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 900;
}

.cw-pbna-exam-search__step-label {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cw-pbna-exam-search__step.is-active {
  border-color: var(--cw-pbna-green-border-soft);
  background: var(--cw-pbna-surface-green);
  color: var(--cw-pbna-text);
}

.cw-pbna-exam-search__step.is-active .cw-pbna-exam-search__step-number,
.cw-pbna-exam-search__step.is-complete .cw-pbna-exam-search__step-number {
  background: var(--cw-pbna-green);
  color: #ffffff;
}

.cw-pbna-exam-search__step.is-complete {
  color: var(--cw-pbna-green-dark);
}

.cw-pbna-exam-search__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(1rem, 3vw, 1.5rem);
  align-items: start;
}

.cw-pbna-exam-search__main {
  min-width: 0;
}

.cw-pbna-exam-search__filters {
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

.cw-pbna-exam-search__section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.cw-pbna-exam-search__section-title {
  margin: 0;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.cw-pbna-exam-search__reset {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0.3rem 0;
  background: transparent;
  color: var(--cw-pbna-green-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  cursor: pointer;
}

.cw-pbna-exam-search__filter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.cw-pbna-exam-search__results {
  margin-top: 1rem;
}

.cw-pbna-exam-search__results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 0.85rem;
}

.cw-pbna-exam-search__results-title {
  margin: 0;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  line-height: 1.15;
}

.cw-pbna-exam-search__results-count {
  color: var(--cw-pbna-text-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.cw-pbna-exam-search__list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cw-pbna-exam-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(150px, 0.7fr) minmax(0, 1.7fr) auto;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid var(--cw-pbna-border);
  border-radius: var(--cw-pbna-radius-md);
  background: #ffffff;
  box-shadow: var(--cw-pbna-shadow-sm);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.cw-pbna-exam-card:hover {
  transform: translateY(-1px);
  border-color: rgba(21, 128, 61, 0.28);
  box-shadow: var(--cw-pbna-shadow-md);
}

.cw-pbna-exam-card.is-selected {
  border-color: rgba(21, 128, 61, 0.56);
  background: linear-gradient(135deg, #ffffff 0%, #f0fdf4 100%);
  box-shadow: 0 0 0 3px rgba(21, 128, 61, 0.08), var(--cw-pbna-shadow-md);
}

.cw-pbna-exam-card__date {
  min-width: 0;
}

.cw-pbna-exam-card__day {
  display: block;
  color: var(--cw-pbna-green);
  font-size: 1.05rem;
  font-weight: 900;
}

.cw-pbna-exam-card__time {
  display: block;
  margin-top: 0.18rem;
  color: var(--cw-pbna-text);
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.15;
}

.cw-pbna-exam-card__details {
  min-width: 0;
}

.cw-pbna-exam-card__city {
  margin: 0;
  color: var(--cw-pbna-text);
  font-size: 1.12rem;
  line-height: 1.2;
}

.cw-pbna-exam-card__venue,
.cw-pbna-exam-card__address {
  margin: 0.22rem 0 0;
  color: #475569;
  line-height: 1.4;
}

.cw-pbna-exam-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.62rem;
}

.cw-pbna-exam-card__chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.75rem;
  padding: 0.26rem 0.6rem;
  border: 1px solid var(--cw-pbna-green-border-soft);
  border-radius: 999px;
  background: var(--cw-pbna-surface-green);
  color: var(--cw-pbna-green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.1;
}

.cw-pbna-exam-card__availability {
  white-space: nowrap;
}

.cw-pbna-exam-card__actions {
  display: grid;
  justify-items: end;
  gap: 0.5rem;
}

.cw-pbna-exam-card__selection-label {
  color: var(--cw-pbna-green-dark);
  font-size: 0.8rem;
  font-weight: 900;
}

.cw-pbna-exam-search__sidebar {
  position: sticky;
  top: 1.5rem;
  padding: 1rem;
}

.cw-pbna-exam-search__summary-title {
  margin: 0 0 0.8rem;
  font-size: 1.18rem;
  line-height: 1.15;
}

.cw-pbna-exam-search__summary-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.cw-pbna-exam-search__summary-row {
  display: grid;
  gap: 0.15rem;
  padding: 0.72rem 0;
  border-top: 1px solid var(--cw-pbna-border);
}

.cw-pbna-exam-search__summary-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.cw-pbna-exam-search__summary-row dt {
  color: var(--cw-pbna-text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cw-pbna-exam-search__summary-row dd {
  margin: 0;
  color: var(--cw-pbna-text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.cw-pbna-exam-search__summary-note {
  margin: 0.8rem 0 0;
  padding: 0.72rem 0.8rem;
  border-radius: 0.9rem;
  background: #f8fafc;
  color: var(--cw-pbna-text-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.cw-pbna-exam-search__summary-actions {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.cw-pbna-exam-search__summary-actions .cw-pbna-ui__button {
  width: 100%;
}

.cw-pbna-exam-search__empty,
.cw-pbna-exam-search__error,
.cw-pbna-exam-search__loading {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px dashed #cbd5e1;
  border-radius: var(--cw-pbna-radius-md);
  background: #ffffff;
  text-align: center;
}

.cw-pbna-exam-search__empty h3,
.cw-pbna-exam-search__error h3,
.cw-pbna-exam-search__loading h3 {
  margin: 0;
  font-size: 1.15rem;
}

.cw-pbna-exam-search__empty p,
.cw-pbna-exam-search__error p,
.cw-pbna-exam-search__loading p {
  max-width: 620px;
  margin: 0.45rem auto 0;
  color: var(--cw-pbna-text-muted);
}

.cw-pbna-exam-search__error {
  border-style: solid;
  border-color: #fecaca;
  background: var(--cw-pbna-danger-bg);
}

.cw-pbna-exam-search__spinner {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.6rem;
  border: 3px solid #dcfce7;
  border-top-color: var(--cw-pbna-green);
  border-radius: 999px;
  animation: cw-pbna-spin 720ms linear infinite;
}

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

.cw-pbna-exam-search__mobile-bar {
  display: none;
}

@media (max-width: 980px) {
  .cw-pbna-exam-search__hero,
  .cw-pbna-exam-search__workspace {
    grid-template-columns: 1fr;
  }

  .cw-pbna-exam-search__hero-aside {
    display: none;
  }

  .cw-pbna-exam-search__sidebar {
    position: static;
  }

  .cw-pbna-exam-search__filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cw-pbna-exam-search__filter-grid > :last-child {
    grid-column: 1 / -1;
  }

  .cw-pbna-exam-card {
    grid-template-columns: minmax(130px, 0.65fr) minmax(0, 1.5fr) auto;
  }
}

@media (max-width: 760px) {
  .cw-pbna-exam-search {
    padding-top: 0.5rem;
  }

  .cw-pbna-exam-search__hero {
    padding: 1.15rem;
    border-radius: 1.35rem;
  }

  .cw-pbna-exam-search__facts {
    grid-template-columns: 1fr;
  }

  .cw-pbna-exam-search__steps {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.65rem;
    scrollbar-width: thin;
  }

  .cw-pbna-exam-search__step {
    flex: 0 0 auto;
    min-width: 8.7rem;
  }

  .cw-pbna-exam-search__filter-grid {
    grid-template-columns: 1fr;
  }

  .cw-pbna-exam-search__filter-grid > :last-child {
    grid-column: auto;
  }

  .cw-pbna-exam-search__section-head,
  .cw-pbna-exam-search__results-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.45rem;
  }

  .cw-pbna-exam-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .cw-pbna-exam-card__date {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.55rem;
  }

  .cw-pbna-exam-card__time {
    margin: 0;
  }

  .cw-pbna-exam-card__actions {
    width: 100%;
    justify-items: stretch;
  }

  .cw-pbna-exam-card__actions .cw-pbna-ui__button {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .cw-pbna-exam-search__filters,
  .cw-pbna-exam-search__sidebar,
  .cw-pbna-exam-card {
    border-radius: 1.05rem;
  }

  .cw-pbna-exam-search__sidebar {
    padding-bottom: 5.5rem;
  }

  .cw-pbna-exam-search__mobile-bar {
    position: fixed;
    z-index: 40;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem max(0.75rem, env(safe-area-inset-right)) calc(0.75rem + env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
    border-top: 1px solid var(--cw-pbna-border);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -0.7rem 2rem rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(10px);
  }

  .cw-pbna-exam-search__mobile-summary {
    min-width: 0;
  }

  .cw-pbna-exam-search__mobile-summary strong,
  .cw-pbna-exam-search__mobile-summary span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .cw-pbna-exam-search__mobile-summary strong {
    color: var(--cw-pbna-text);
    font-size: 0.88rem;
  }

  .cw-pbna-exam-search__mobile-summary span {
    color: var(--cw-pbna-text-muted);
    font-size: 0.76rem;
  }
}

@media (max-width: 380px) {
  .cw-pbna-exam-search__steps {
    margin-right: -0.25rem;
    margin-left: -0.25rem;
  }

  .cw-pbna-exam-search__step {
    min-width: 8.2rem;
  }

  .cw-pbna-exam-search__mobile-bar {
    grid-template-columns: 1fr;
  }

  .cw-pbna-exam-search__mobile-bar .cw-pbna-ui__button {
    width: 100%;
  }
}

/* Brief 7 live-data states. */
.cw-pbna-exam-card__venue,
.cw-pbna-exam-card__address,
.cw-pbna-exam-card__availability {
  display: block;
}

.cw-pbna-exam-card__availability {
  color: var(--cw-pbna-text-muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.cw-pbna-exam-search__loading {
  border-color: var(--cw-pbna-green-border-soft);
  background: var(--cw-pbna-surface-green);
}

.cw-pbna-exam-search__reset:disabled {
  opacity: 0.45;
  cursor: default;
}

/* Brief 8 transactional states. */
.cw-pbna-exam-search__candidate {
  margin-top: 1rem;
}

.cw-pbna-exam-search__candidate[hidden] {
  display: none;
}

.cw-pbna-exam-search__candidate-intro {
  margin: -0.25rem 0 1rem;
  color: var(--cw-pbna-text-muted);
}

.cw-pbna-exam-search__candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.cw-pbna-exam-search__candidate-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.cw-pbna-exam-search__transaction-status {
  min-height: 1.5rem;
  margin-top: 0.85rem;
  color: var(--cw-pbna-text-muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.cw-pbna-exam-search__transaction-status.is-success {
  color: var(--cw-pbna-green-deep);
}

.cw-pbna-exam-search__transaction-status.is-error {
  color: #9f1239;
}

@media (max-width: 760px) {
  .cw-pbna-exam-search__candidate-grid {
    grid-template-columns: 1fr;
  }

  .cw-pbna-exam-search__candidate-actions,
  .cw-pbna-exam-search__candidate-actions .cw-pbna-ui__button {
    width: 100%;
  }
}

/* Premium city selection: portal menu (not native OS <option> styling). */
.cw-pbna-exam-search .cw-pbna-city-picker__native { display: none !important; }
.cw-pbna-city-picker { min-width: 0; width: 100%; }
.cw-pbna-city-picker__trigger {
  width: 100%; min-height: 3rem; display: flex; align-items: center;
  justify-content: space-between; gap: 0.7rem; padding: 0.72rem 0.9rem;
  border: 1px solid #bad7c5; border-radius: 12px; background: #fff;
  color: #12243b; cursor: pointer; text-align: left;
  font: inherit; font-weight: 700; box-shadow: 0 2px 8px rgba(16,64,43,.04);
  transition: border-color .18s, box-shadow .18s;
}
.cw-pbna-city-picker__trigger:hover:not(:disabled),
.cw-pbna-city-picker.is-open .cw-pbna-city-picker__trigger { border-color: #15803d; box-shadow: 0 0 0 4px rgba(21,128,61,.12); }
.cw-pbna-city-picker__trigger:focus-visible { outline: 2px solid #15803d; outline-offset: 3px; }
.cw-pbna-city-picker__trigger:disabled { background: #f8fafc; color: #94a3b8; cursor: not-allowed; }
.cw-pbna-city-picker__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cw-pbna-city-picker__value.is-placeholder { color: #60758d; font-weight: 500; }
.cw-pbna-city-picker__chevron { flex-shrink: 0; font-size: 1.4rem; line-height: 1; color: #15803d; transition: transform .2s; }
.cw-pbna-city-picker.is-open .cw-pbna-city-picker__chevron { transform: rotate(180deg); }
.cw-pbna-city-picker__panel {
  position: fixed; z-index: 2147483000; padding: 7px; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border: 1px solid #d4e6d9; border-radius: 16px;
  box-shadow: 0 24px 60px rgba(16,35,52,.22), 0 4px 14px rgba(16,35,52,.08);
  scrollbar-width: thin; scrollbar-color: #acc9b7 transparent;
}
.cw-pbna-city-picker__panel[hidden] { display: none !important; }
.cw-pbna-city-picker__list { display: grid; gap: 3px; }
.cw-pbna-city-picker__option {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 13px; border-radius: 10px; color: #102339; background: transparent;
  cursor: pointer; font-family: inherit; line-height: 1.3;
}
.cw-pbna-city-picker__option:hover, .cw-pbna-city-picker__option.is-active {
  background: #edf8f1; color: #116534;
}
.cw-pbna-city-picker__option[aria-selected="true"] { box-shadow: inset 3px 0 #198449; }
.cw-pbna-city-picker__city { font-size: .94rem; font-weight: 750; min-width: 0; }
.cw-pbna-city-picker__date {
  flex: 0 0 auto; color: #17673c; background: #e5f5e9; border: 1px solid #cce9d4;
  border-radius: 8px; padding: 5px 8px; font-size: .8rem; font-weight: 750;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.cw-pbna-city-picker__option.is-active .cw-pbna-city-picker__date { background: #d5eddb; }
@media (max-width: 420px) {
  .cw-pbna-city-picker__option { flex-wrap: wrap; gap: 5px; padding: 10px; }
  .cw-pbna-city-picker__date { font-size: .76rem; }
}
@media (prefers-reduced-motion: reduce) {
  .cw-pbna-city-picker__trigger, .cw-pbna-city-picker__chevron { transition: none; }
}

/* Minimal booking-flow redesign: compact overall, simplified hero, lighter desktop/mobile. */
.cw-pbna-exam-search {
  padding: 0.35rem 0 1.25rem;
}

.cw-pbna-exam-search__hero {
  display: block;
  margin: 0 0 0.9rem;
  padding: 0 0 0.55rem;
  border: 0;
  border-bottom: 1px solid var(--cw-pbna-border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cw-pbna-exam-search__hero::after,
.cw-pbna-exam-search__facts,
.cw-pbna-exam-search__hero-aside,
.cw-pbna-exam-search__results-count,
.cw-pbna-exam-search__summary-note {
  display: none !important;
}

.cw-pbna-exam-search__hero-copy {
  max-width: 760px;
}

.cw-pbna-exam-search .cw-pbna-ui__eyebrow {
  margin-bottom: 0.55rem;
  padding: 0;
  min-height: 0;
  border: 0;
  background: transparent;
  color: var(--cw-pbna-green-deep);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
}

.cw-pbna-exam-search .cw-pbna-ui__title {
  font-size: clamp(2rem, 4vw, 3.65rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.cw-pbna-exam-search .cw-pbna-ui__lead {
  margin-top: 0.65rem;
  max-width: 640px;
  font-size: 1rem;
  line-height: 1.55;
}

.cw-pbna-exam-search__steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.1rem 0 0.2rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cw-pbna-exam-search__step {
  position: relative;
  display: grid;
  grid-template-columns: 1.95rem minmax(0, 1fr);
  gap: 0.7rem;
  align-items: center;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #64748b;
}

.cw-pbna-exam-search__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(50% - 0.5px);
  left: calc(1.95rem + 0.7rem);
  right: -0.5rem;
  height: 1px;
  background: #d9e3ec;
}

.cw-pbna-exam-search__step-number {
  position: relative;
  z-index: 1;
  width: 1.95rem;
  height: 1.95rem;
  flex-basis: 1.95rem;
  background: #eef2f7;
  color: #42536a;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: 0 0 0 6px #fff;
}

.cw-pbna-exam-search__step-label {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding-right: 0.4rem;
  background: #fff;
  color: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  white-space: nowrap;
}

.cw-pbna-exam-search__step.is-active,
.cw-pbna-exam-search__step.is-complete {
  background: transparent;
  border: 0;
}

.cw-pbna-exam-search__step.is-active,
.cw-pbna-exam-search__step.is-active .cw-pbna-exam-search__step-label,
.cw-pbna-exam-search__step.is-complete,
.cw-pbna-exam-search__step.is-complete .cw-pbna-exam-search__step-label {
  color: var(--cw-pbna-green-deep);
}

.cw-pbna-exam-search__step.is-active .cw-pbna-exam-search__step-number,
.cw-pbna-exam-search__step.is-complete .cw-pbna-exam-search__step-number {
  background: var(--cw-pbna-green);
  color: #fff;
}

.cw-pbna-exam-search__workspace {
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 1rem;
}

.cw-pbna-exam-search__filters {
  padding: 1.15rem 1.15rem 1rem;
  border-radius: 1.25rem;
  box-shadow: none;
}

.cw-pbna-exam-search__section-head {
  margin-bottom: 0.8rem;
}

.cw-pbna-exam-search__section-title {
  font-size: clamp(1.05rem, 2.1vw, 1.4rem);
  line-height: 1.15;
}

.cw-pbna-exam-search__filter-grid {
  gap: 1rem;
}

.cw-pbna-exam-search .cw-pbna-ui__label {
  font-size: 0.95rem;
}

.cw-pbna-exam-search .cw-pbna-ui__select,
.cw-pbna-exam-search .cw-pbna-ui__input,
.cw-pbna-city-picker__trigger {
  min-height: 3.2rem;
  border-radius: 1rem;
  box-shadow: none;
}

.cw-pbna-exam-search__results {
  margin-top: 1rem;
}

.cw-pbna-exam-search__results-head {
  margin-bottom: 0.75rem;
}

.cw-pbna-exam-search__results-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.05;
}

.cw-pbna-exam-search__empty,
.cw-pbna-exam-search__loading,
.cw-pbna-exam-search__error {
  position: relative;
  min-height: 14rem;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  border-style: dashed;
  border-width: 1px;
  border-color: #d6dee8;
  border-radius: 1.25rem;
  box-shadow: none;
  background: #fff;
}

.cw-pbna-exam-search__empty::before,
.cw-pbna-exam-search__loading::before,
.cw-pbna-exam-search__error::before {
  content: "";
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  background: radial-gradient(circle at center, rgba(21,128,61,0.14) 0%, rgba(21,128,61,0.14) 60%, transparent 61%);
  display: block;
}

.cw-pbna-exam-search__empty h3,
.cw-pbna-exam-search__loading h3,
.cw-pbna-exam-search__error h3 {
  font-size: 1.15rem;
}

.cw-pbna-exam-search__empty p,
.cw-pbna-exam-search__loading p,
.cw-pbna-exam-search__error p {
  margin-top: 0.5rem;
  max-width: 34rem;
}

.cw-pbna-exam-card {
  gap: 0.9rem;
  padding: 1rem;
  border-radius: 1.1rem;
  box-shadow: none;
}

.cw-pbna-exam-search__sidebar {
  top: 1rem;
  padding: 1.15rem;
  border-radius: 1.15rem;
  box-shadow: none;
  background: linear-gradient(180deg, #fcfffd 0%, #f7fcf9 100%);
}

.cw-pbna-exam-search__summary-title {
  margin-bottom: 0.65rem;
  font-size: 1.7rem;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.cw-pbna-exam-search__summary-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0;
}

.cw-pbna-exam-search__summary-row dt {
  font-size: 0.98rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
}

.cw-pbna-exam-search__summary-row dd {
  text-align: right;
  font-size: 1rem;
  font-weight: 800;
}

.cw-pbna-exam-search__summary-actions {
  margin-top: 1rem;
}

.cw-pbna-exam-search__summary-actions .cw-pbna-ui__button {
  min-height: 3.2rem;
}

.cw-pbna-exam-search__candidate {
  margin-top: 1rem;
  border-radius: 1.2rem;
  box-shadow: none;
}

@media (max-width: 980px) {
  .cw-pbna-exam-search__workspace {
    grid-template-columns: 1fr;
  }

  .cw-pbna-exam-search__sidebar {
    position: static;
    order: 3;
  }
}

@media (max-width: 760px) {
  .cw-pbna-exam-search {
    padding-top: 0.15rem;
  }

  .cw-pbna-exam-search__hero {
    margin-bottom: 0.7rem;
    padding-bottom: 0.45rem;
  }

  .cw-pbna-exam-search .cw-pbna-ui__title {
    font-size: clamp(2.2rem, 8vw, 3rem);
  }

  .cw-pbna-exam-search .cw-pbna-ui__lead {
    margin-top: 0.45rem;
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .cw-pbna-exam-search__steps {
    gap: 0.8rem;
    padding: 0.1rem 0 0.15rem;
    overflow: visible;
  }

  .cw-pbna-exam-search__step {
    min-width: 0;
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: 0.5rem;
  }

  .cw-pbna-exam-search__step:not(:last-child)::after {
    left: calc(1.8rem + 0.5rem);
    right: -0.4rem;
  }

  .cw-pbna-exam-search__step-number {
    width: 1.8rem;
    height: 1.8rem;
    flex-basis: 1.8rem;
    box-shadow: 0 0 0 4px #fff;
  }

  .cw-pbna-exam-search__step-label {
    font-size: 0.84rem;
  }

  .cw-pbna-exam-search__filters,
  .cw-pbna-exam-search__sidebar,
  .cw-pbna-exam-search__candidate,
  .cw-pbna-exam-card {
    border-radius: 1rem;
  }

  .cw-pbna-exam-search__filters {
    padding: 1rem;
  }

  .cw-pbna-exam-search__section-head {
    margin-bottom: 0.7rem;
  }

  .cw-pbna-exam-search__results-title {
    font-size: clamp(1.25rem, 7vw, 1.9rem);
  }

  .cw-pbna-exam-search__empty,
  .cw-pbna-exam-search__loading,
  .cw-pbna-exam-search__error {
    min-height: 11.5rem;
    padding: 1.5rem 1rem;
  }

  .cw-pbna-exam-search__empty::before,
  .cw-pbna-exam-search__loading::before,
  .cw-pbna-exam-search__error::before {
    width: 3.3rem;
    height: 3.3rem;
    margin-bottom: 0.8rem;
  }

  .cw-pbna-exam-search__summary-title {
    font-size: 1.35rem;
  }

  .cw-pbna-exam-search__summary-row dt,
  .cw-pbna-exam-search__summary-row dd {
    font-size: 0.98rem;
  }
}

@media (max-width: 460px) {
  .cw-pbna-exam-search .cw-pbna-ui__lead {
    display: none;
  }

  .cw-pbna-exam-search__steps {
    gap: 0.45rem;
  }

  .cw-pbna-exam-search__step {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 0.35rem;
  }

  .cw-pbna-exam-search__step:not(:last-child)::after {
    top: 0.9rem;
    left: calc(50% + 1rem);
    right: calc(-50% + 1rem);
  }

  .cw-pbna-exam-search__step-label {
    padding-right: 0;
    white-space: normal;
    line-height: 1.15;
    font-size: 0.76rem;
  }

  .cw-pbna-exam-search__summary-actions .cw-pbna-ui__button,
  .cw-pbna-exam-search__candidate-actions .cw-pbna-ui__button {
    width: 100%;
  }
}

/* Stronger emphasis for location picker so users clearly see where to click. */
.cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-ui__label {
  color: var(--cw-pbna-green-deep);
}

.cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-city-picker {
  position: relative;
}

.cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-city-picker__trigger {
  min-height: 3.35rem;
  border: 2px solid #8fd1a7;
  background: linear-gradient(180deg, #ffffff 0%, #f6fdf9 100%);
  box-shadow: 0 0 0 4px rgba(21,128,61,.08);
}

.cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-city-picker__value.is-placeholder {
  color: #3f5d73;
  font-weight: 700;
}

.cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-city-picker__chevron {
  display: inline-grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  background: #e9f8ef;
  color: #14803c;
  font-size: 1.5rem;
  font-weight: 900;
}

.cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-city-picker.is-attention::after {
  content: "";
  position: absolute;
  right: 0.9rem;
  top: -0.3rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22,163,74,.16);
}

.cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-city-picker.is-attention .cw-pbna-city-picker__trigger,
.cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-city-picker__trigger:hover:not(:disabled),
.cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-city-picker.is-open .cw-pbna-city-picker__trigger {
  border-color: #15803d;
  box-shadow: 0 0 0 5px rgba(21,128,61,.15), 0 10px 24px rgba(21,128,61,.14);
}

.cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-city-picker.is-attention .cw-pbna-city-picker__trigger {
  animation: cw-pbna-city-cta-pulse 1.9s ease-in-out infinite;
}

@keyframes cw-pbna-city-cta-pulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 4px rgba(21,128,61,.10), 0 0 0 0 rgba(21,128,61,.12); }
  50% { transform: translateY(-1px); box-shadow: 0 0 0 6px rgba(21,128,61,.16), 0 0 0 12px rgba(21,128,61,.05); }
}

@media (max-width: 760px) {
  .cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-city-picker__trigger {
    min-height: 3.65rem;
    padding: 0.85rem 1rem;
    border-width: 2px;
    box-shadow: 0 0 0 5px rgba(21,128,61,.10);
  }

  .cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-city-picker__value {
    font-size: 1.04rem;
  }

  .cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-city-picker__chevron {
    width: 2.1rem;
    height: 2.1rem;
    font-size: 1.6rem;
  }

}

@media (prefers-reduced-motion: reduce) {
  .cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-city-picker.is-attention .cw-pbna-city-picker__trigger {
    animation: none;
  }
}

/* Premium Soft refinement - booking surface only; no flow logic changes. */
.cw-pbna-exam-search .cw-pbna-ui__title {
  font-size: clamp(2rem, 3.3vw, 3.15rem);
  font-weight: 700;
  letter-spacing: -.042em;
  line-height: 1.08;
}
.cw-pbna-exam-search .cw-pbna-ui__lead {
  color: #657589;
  font-size: .92rem;
  line-height: 1.5;
  margin-top: .4rem;
}
.cw-pbna-exam-search .cw-pbna-ui__eyebrow {
  color: #23744d;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .065em;
  margin-bottom: .4rem;
}
.cw-pbna-exam-search__hero { margin-bottom: .75rem; padding-bottom: .75rem; }
.cw-pbna-exam-search__steps { margin-bottom: .85rem; }
.cw-pbna-exam-search__step-label { font-size: .84rem; font-weight: 650; }
.cw-pbna-exam-search__section-title {
  font-size: clamp(1.35rem, 2.3vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.15;
}
.cw-pbna-exam-search__results-title {
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.cw-pbna-exam-search__summary-title {
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -.022em;
  line-height: 1.2;
}
.cw-pbna-exam-search .cw-pbna-ui__label {
  color: #526477;
  font-size: .83rem;
  font-weight: 650;
}
.cw-pbna-exam-search .cw-pbna-ui__field--city .cw-pbna-ui__label { color: #236f48; }
.cw-pbna-exam-search__summary-row dt {
  color: #64758a;
  font-size: .82rem;
  font-weight: 600;
}
.cw-pbna-exam-search__summary-row dd { font-size: .91rem; font-weight: 700; }
.cw-pbna-exam-search__summary-row { padding: .72rem 0; }
.cw-pbna-exam-search__sidebar { background: #fbfdfc; border-color: #e2ebe6; }
.cw-pbna-exam-search__filters { border-color: #e2e8ee; }
.cw-pbna-exam-search__empty,
.cw-pbna-exam-search__loading,
.cw-pbna-exam-search__error { min-height: 9rem; padding: 1.25rem; }
.cw-pbna-exam-search__empty::before,
.cw-pbna-exam-search__loading::before,
.cw-pbna-exam-search__error::before { width: 2.4rem; height: 2.4rem; margin-bottom: .35rem; }
.cw-pbna-exam-search__empty h3,
.cw-pbna-exam-search__loading h3,
.cw-pbna-exam-search__error h3 { font-size: 1rem; font-weight: 700; }
.cw-pbna-exam-search__empty p,
.cw-pbna-exam-search__loading p,
.cw-pbna-exam-search__error p { color: #6b7b8d; font-size: .88rem; }
@media (max-width: 760px) {
  .cw-pbna-exam-search .cw-pbna-ui__title { font-size: clamp(1.9rem, 7vw, 2.5rem); }
  .cw-pbna-exam-search__section-title { font-size: 1.5rem; }
  .cw-pbna-exam-search__results-title { font-size: 1.3rem; }
  .cw-pbna-exam-search__summary-title { font-size: 1.2rem; }
  .cw-pbna-exam-search__step-label { font-size: .75rem; }
}

/* Hotfix: clearly visible, read-only retry inside the error state. */
.cw-pbna-exam-search .cw-pbna-exam-search__error .cw-pbna-exam-search__retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1rem auto 0;
  padding: .65rem 1.25rem;
  border: 1px solid #15803d;
  border-radius: 999px;
  background: #ffffff;
  color: #166534;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  min-height: 42px;
}
.cw-pbna-exam-search .cw-pbna-exam-search__error .cw-pbna-exam-search__retry:hover,
.cw-pbna-exam-search .cw-pbna-exam-search__error .cw-pbna-exam-search__retry:focus-visible {
  background: #ecfdf5;
  outline-offset: 3px;
}

/* HOTFIX: show an actual activity indicator while PBNA catalogues load.
   Loading state is set/cleared by the existing request lifecycle in JS. */
.cw-pbna-exam-search__loading::before {
  box-sizing: border-box;
  width: 2.7rem;
  height: 2.7rem;
  border: 4px solid #dcefe3;
  border-top-color: #087c43;
  border-right-color: #159357;
  border-radius: 50%;
  background: transparent;
  animation: cw-pbna-spin 750ms linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .cw-pbna-exam-search__loading::before {
    animation: none;
    border-top-color: #087c43;
    border-right-color: #087c43;
  }
}

/* HOME / ACCESS PBNA booking: show a real selected exam and language clearly,
   including when the select is temporarily locked by the booking workflow.
   Unselected placeholders retain their original subdued appearance. */
.cw-pbna-exam-search select.cw-pbna-ui__select[data-field="exam"]:has(option:checked:not([value=""])),
.cw-pbna-exam-search select.cw-pbna-ui__select[data-field="language"]:has(option:checked:not([value=""])) {
  color: #243447;
  -webkit-text-fill-color: #243447;
  font-weight: 750;
  opacity: 1;
}
.cw-pbna-exam-search select.cw-pbna-ui__select[data-field="exam"]:disabled:has(option:checked:not([value=""])),
.cw-pbna-exam-search select.cw-pbna-ui__select[data-field="language"]:disabled:has(option:checked:not([value=""])) {
  color: #243447;
  -webkit-text-fill-color: #243447;
  opacity: 1;
}
