/* Event registration — isolated, high-specificity so theme CSS cannot break the form */

.er-hero {
  --er-navy: #15203f;
  --er-saffron: #e26d1a;
  position: relative;
  color: #fff;
  min-height: 260px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: linear-gradient(135deg, #15203f 0%, #243562 55%, #8a3b12 100%);
}
.er-hero--has-cover { min-height: clamp(280px, 40vw, 420px); }
.er-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}
.er-hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12,18,36,.2) 0%, rgba(12,18,36,.7) 50%, rgba(12,18,36,.92) 100%),
    linear-gradient(90deg, rgba(21,32,63,.5), transparent 60%);
}
.er-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 32px 0 40px;
}
.er-breadcrumb {
  display: flex;
  gap: .45rem;
  align-items: center;
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  margin-bottom: .75rem;
}
.er-breadcrumb a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.4);
}
.er-kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .72rem;
  font-weight: 700;
  color: #ffc48a;
  margin: 0 0 .5rem;
}
.er-hero h1 {
  color: #fff !important;
  font-family: Raleway, sans-serif;
  font-weight: 700;
  font-size: clamp(1.55rem, 3.2vw, 2.4rem);
  line-height: 1.22;
  max-width: 16ch;
  margin: 0 0 .85rem;
}
.er-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .85rem;
  align-items: center;
  color: rgba(255,255,255,.92);
  font-size: .94rem;
}
.er-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  padding: .28rem .7rem;
  font-size: .76rem;
  font-weight: 600;
}

.er-page {
  background:
    radial-gradient(900px 320px at 0% 0%, rgba(226,109,26,.07), transparent 55%),
    #f2f3f6;
  padding: 28px 0 70px;
}
.er-page .container.er-shell,
.er-shell {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.er-intro {
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  color: #3a435c;
  line-height: 1.55;
}
.er-intro p { margin: 0; }

.er-card {
  background: #fff;
  border: 1px solid #e5e8ef;
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(21,32,63,.07);
  padding: clamp(1.25rem, 3vw, 2rem);
}

.er-progress {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0 0 1.15rem;
  border-bottom: 1px solid #eef0f4;
  list-style: none;
}
.er-progress-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: #8a93a8;
  font-size: .86rem;
  font-weight: 600;
}
.er-progress-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef0f4;
  color: #6b7280;
  font-size: .78rem;
}
.er-progress-item.is-active { color: #15203f; }
.er-progress-item.is-active .er-progress-num {
  background: #15203f;
  color: #fff;
}

.er-block {
  display: block;
  padding: 0 0 1.5rem;
  margin: 0 0 1.25rem;
  border-bottom: 1px solid #eef0f4;
}
.er-block:last-of-type {
  border-bottom: 0;
  margin-bottom: 0;
}
.er-block-head { margin: 0 0 1rem; }
.er-block-head h2 {
  margin: 0;
  font-family: Raleway, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #15203f;
}
.er-block-head p {
  margin: .35rem 0 0;
  color: #6b7280;
  font-size: .9rem;
}

/* ---- Form grid: forced, theme-proof ---- */
.er-page .er-grid,
.er-form .er-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 1.1rem 1.15rem !important;
  width: 100%;
  margin: 0;
  padding: 0;
  align-items: start;
}

.er-page .er-field,
.er-form .er-field {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: .4rem !important;
  min-width: 0;
  width: 100%;
  float: none !important;
  margin: 0 !important;
}

.er-page .er-field--full,
.er-form .er-field--full {
  grid-column: 1 / -1 !important;
}

.er-page .er-label,
.er-form .er-label {
  display: block !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  position: static !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: .86rem;
  font-weight: 600;
  color: #24304d;
  line-height: 1.3;
}

.er-req { color: #c62828; margin-left: .15rem; }
.er-hint {
  color: #8a93a8;
  font-weight: 500;
  font-size: .78rem;
  margin-left: .3rem;
}

.er-page .er-input,
.er-form .er-input,
.er-page input.er-input,
.er-page select.er-input,
.er-page textarea.er-input {
  display: block !important;
  float: none !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px;
  margin: 0 !important;
  border: 1.5px solid #d0d5e2 !important;
  border-radius: 12px !important;
  background: #fff !important;
  padding: .75rem .95rem !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
  color: #15203f !important;
  appearance: none;
  -webkit-appearance: none;
}
.er-page select.er-input {
  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 fill='%236b7280' d='M1.4 0L6 4.6 10.6 0 12 1.4 6 7.4 0 1.4z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 2.4rem !important;
}
.er-page .er-input:focus,
.er-form .er-input:focus {
  outline: none !important;
  border-color: #e26d1a !important;
  box-shadow: 0 0 0 4px rgba(226,109,26,.15) !important;
}
.er-page textarea.er-input,
.er-page .er-textarea {
  min-height: 100px !important;
  resize: vertical;
}
.er-error {
  display: block;
  color: #c62828;
  font-size: .82rem;
  margin-top: .15rem;
}

/* ---- Address bundle ---- */
.er-page .er-address,
.er-form .er-address {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background: #fffaf5;
  border: 1px solid #efd5bb;
  border-radius: 16px;
  padding: 1.15rem 1.2rem 1.25rem;
}
.er-address-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.er-address-kicker {
  margin: 0 0 .2rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .66rem;
  font-weight: 700;
  color: #e26d1a;
}
.er-address-title {
  margin: 0;
  font-size: 1.05rem;
  color: #15203f;
  font-weight: 700;
}
.er-pill {
  display: inline-flex;
  align-items: center;
  background: #15203f;
  color: #fff;
  border-radius: 999px;
  padding: .35rem .75rem;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}

.er-page .er-address-grid,
.er-form .er-address-grid {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
  gap: .9rem 1rem !important;
  width: 100%;
}
.er-page .er-address-grid > .er-af,
.er-form .er-address-grid > .er-af {
  display: flex !important;
  flex-direction: column !important;
  gap: .35rem !important;
  min-width: 0;
  width: 100%;
  margin: 0 !important;
  float: none !important;
}
.er-page .er-af--line { grid-column: 1 / -1 !important; }
.er-page .er-af--city,
.er-page .er-af--state,
.er-page .er-af--postal { grid-column: span 2 !important; }
.er-page .er-af--country { grid-column: span 2 !important; }

.er-switch {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  color: #15203f;
}
.er-switch input { position: absolute; opacity: 0; pointer-events: none; }
.er-switch-ui {
  width: 44px;
  height: 26px;
  border-radius: 999px;
  background: #d7dbe6;
  position: relative;
  flex: 0 0 auto;
}
.er-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,.18);
  transition: .2s ease;
}
.er-switch input:checked + .er-switch-ui { background: #e26d1a; }
.er-switch input:checked + .er-switch-ui::after { transform: translateX(18px); }

.er-nested {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: #f7f8fb;
  border: 1px dashed #d5dae6;
}
.er-guest-list { margin-top: 1rem; display: grid; gap: 1rem; }
.er-guest-card {
  border: 1px solid #e6e8ef;
  border-radius: 14px;
  padding: 1rem 1.1rem;
  background: #fafbfd;
}
.er-guest-card-head h3 {
  margin: 0 0 .85rem;
  font-size: 1rem;
  color: #15203f;
}

.er-pay-box {
  border: 1px solid #d5dae6;
  border-radius: 12px;
  padding: 1rem;
  background: #fff;
}
.er-card-element { min-height: 24px; }

.er-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .5rem;
  padding-top: 1.15rem;
  border-top: 1px solid #eef0f4;
}
.er-footer-note {
  display: flex;
  align-items: center;
  gap: .45rem;
  color: #6b7280;
  font-size: .88rem;
}
.er-footer-note .bi { color: #2f9e6f; font-size: 1.15rem; }
.er-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #e26d1a, #c45310);
  color: #fff !important;
  font-weight: 700;
  font-size: 1rem;
  padding: .9rem 1.4rem;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(226,109,26,.28);
  cursor: pointer;
}
.er-submit:hover {
  color: #fff !important;
  filter: brightness(1.04);
}
.er-submit:disabled { opacity: .7; cursor: wait; }
.er-check {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: #24304d;
}
.er-thanks-icon {
  font-size: 2.6rem;
  color: #2f9e6f;
  margin-bottom: .75rem;
  line-height: 1;
}

.event-card-cover-flyer {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  object-position: center top;
}

@media (max-width: 767px) {
  .er-hero--has-cover { min-height: 240px; }
  .er-hero h1 { max-width: none; }
  .er-page .er-grid,
  .er-form .er-grid {
    grid-template-columns: 1fr !important;
  }
  .er-page .er-address-grid,
  .er-form .er-address-grid {
    grid-template-columns: 1fr !important;
  }
  .er-page .er-af--city,
  .er-page .er-af--state,
  .er-page .er-af--postal,
  .er-page .er-af--country {
    grid-column: 1 / -1 !important;
  }
  .er-submit { width: 100%; }
}
