.ammp-events {
  --ammp-red: #ed1c24;
  --ammp-red-dark: #c9131a;
  --ammp-text: #222;
  --ammp-muted: #6f6f6f;
  --ammp-border: #e3e3e3;
  --ammp-soft: #f7f7f7;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  color: var(--ammp-text);
  font-family: inherit;
}

.ammp-events *, .ammp-message { box-sizing: border-box; }
.ammp-single-event { max-width: 860px; }
.ammp-single-event .ammp-form-panel { width: 100%; }
.ammp-events h2, .ammp-events h3, .ammp-events p,
.ammp-events label, .ammp-events input, .ammp-events select,
.ammp-events button, .ammp-events a { font-family: inherit; }

.ammp-events-layout {
  display: grid;
  grid-template-columns: minmax(270px, .78fr) minmax(0, 1.72fr);
  gap: 34px;
  align-items: stretch;
}

.ammp-events-column { padding: 8px 0; }
.ammp-events-column > h2 {
  margin: 0 0 24px;
  color: var(--ammp-red);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.2;
}

.ammp-event-list { display: grid; gap: 16px; }
.ammp-event-card {
  position: relative;
  border: 1px solid var(--ammp-border);
  border-left: 4px solid transparent;
  padding: 22px;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ammp-event-card:hover, .ammp-event-card.is-selected {
  border-left-color: var(--ammp-red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .07);
}
.ammp-event-card h3 { margin: 0 0 15px; font-size: 1.2rem; line-height: 1.35; }
.ammp-event-card p { margin: 7px 0; color: var(--ammp-muted); line-height: 1.55; }
.ammp-event-card strong { color: var(--ammp-text); }

.ammp-button {
  display: inline-block;
  border: 1px solid var(--ammp-red);
  border-radius: 3px;
  margin-top: 13px;
  padding: 11px 20px;
  background: var(--ammp-red);
  color: #fff !important;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.ammp-button:hover, .ammp-button:focus { background: var(--ammp-red-dark); border-color: var(--ammp-red-dark); }
.ammp-button-secondary { background: #fff; color: var(--ammp-red) !important; }
.ammp-button-secondary:hover, .ammp-button-secondary:focus { background: var(--ammp-red); color: #fff !important; }

.ammp-form-panel {
  min-width: 0;
  padding: clamp(24px, 4vw, 48px);
  background: var(--ammp-soft);
  border-top: 5px solid var(--ammp-red);
  font-size: 14px;
  line-height: 1.45;
}
.ammp-form-empty {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--ammp-muted);
}
.ammp-form-empty-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border: 2px solid var(--ammp-red);
  border-radius: 50%;
  color: var(--ammp-red);
  font-size: 26px;
}
.ammp-form-empty h2, .ammp-registration > h2 { margin: 0 0 10px; color: var(--ammp-red); font-size: 22px; line-height: 1.25; }
.ammp-form-empty p { max-width: 480px; }
.ammp-form-eyebrow { margin: 0 0 6px; color: var(--ammp-red); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ammp-event-summary { margin: 0 0 25px; color: var(--ammp-muted); }
.ammp-event-notes { margin: -10px 0 25px; padding: 12px 14px; border-left: 3px solid var(--ammp-red); background: #fff; color: var(--ammp-text); }
.ammp-event-notes > :first-child { margin-top: 0; }
.ammp-event-notes > :last-child { margin-bottom: 0; }
.ammp-event-notes a { color: var(--ammp-red); }
.ammp-member-absence-note { display: block; margin-top: 10px; padding: 9px 11px; border-left: 3px solid var(--ammp-red); background: #fff1f1; color: #7a1d1d; font-weight: 700; }

.ammp-registration fieldset {
  min-width: 0;
  margin: 0 0 22px;
  padding: 22px;
  border: 1px solid var(--ammp-border);
  background: #fff;
}
.ammp-registration legend { padding: 0 8px; color: var(--ammp-red); font-size: 14px; font-weight: 700; }
.ammp-registration fieldset > p { margin-top: 0; color: var(--ammp-muted); }
.ammp-registration .ammp-inline-error { padding: 10px 12px; border-left: 3px solid var(--ammp-red); background: #fff1f1; color: #7a1d1d; }
.ammp-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ammp-form-grid [hidden] { display: none !important; }
.ammp-form-grid label { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 600; line-height: 1.4; }
.ammp-form-grid input, .ammp-form-grid select {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 1px solid #b9b9b9;
  border-radius: 2px;
  background: #fff;
  color: var(--ammp-text);
  font: inherit;
  font-size: 14px;
}
.ammp-form-grid input:focus, .ammp-form-grid select:focus { outline: 2px solid rgba(237, 28, 36, .2); border-color: var(--ammp-red); }
.ammp-form-grid input:disabled { background: #f1f1f1; color: #555; }
.ammp-companion { margin: 0 0 20px; padding: 0 0 20px; border-bottom: 1px solid var(--ammp-border); }
.ammp-modality-choice { margin-top: 18px; }
.ammp-modality-choice > span { display: block; margin-bottom: 9px; color: var(--ammp-text); font-weight: 600; }
.ammp-checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.ammp-checkbox-grid label { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 400; }
.ammp-checkbox-grid input { width: auto; min-height: 0; margin: 0; accent-color: var(--ammp-red); }
.ammp-modality-choice small { display: block; margin-top: 9px; color: var(--ammp-muted); }
.ammp-modality-notes { margin: 12px 0 0; padding: 10px 12px; border-left: 3px solid var(--ammp-red); background: var(--ammp-soft); color: var(--ammp-text); font-size: 13px; }
.ammp-modality-notes > :first-child { margin-top: 0; }
.ammp-modality-notes > :last-child { margin-bottom: 0; }
.ammp-hotel-question { margin: 0 0 16px; padding: 13px 14px; border: 1px solid #f1b9bb; background: #fff7f7; }
.ammp-hotel-question > span { display: block; margin-bottom: 9px; color: var(--ammp-red); font-weight: 700; }
.ammp-hotel-question > div { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.ammp-hotel-question label { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.ammp-hotel-question input { width: auto; min-height: 0; margin: 0; accent-color: var(--ammp-red); }
.ammp-checkbox-grid input[data-ammp-requires-hotel]:disabled { opacity: .45; }
.ammp-celebration-choice { margin-top: 16px; padding: 13px 14px; border: 1px solid #f1b9bb; background: #fff7f7; }
.ammp-celebration-choice > span { display: block; margin-bottom: 9px; color: var(--ammp-red); font-weight: 700; }
.ammp-celebration-choice > div { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.ammp-celebration-choice label { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; }
.ammp-celebration-choice input { width: auto; min-height: 0; margin: 0; accent-color: var(--ammp-red); }
.ammp-remove { border: 0; padding: 9px 0 0; background: transparent; color: var(--ammp-red); text-decoration: underline; cursor: pointer; font: inherit; }
.ammp-registration .ammp-button { font-size: 12px; }
.ammp-cancel-form { display: inline-block; margin: 12px 0 0 16px; }
.ammp-cancel-button {
  border: 0;
  padding: 8px 0;
  background: transparent;
  color: #777;
  font: inherit;
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.ammp-cancel-button:hover, .ammp-cancel-button:focus { color: var(--ammp-red); }
.ammp-message { max-width: 1240px; margin: 0 auto 20px; padding: 13px 17px; border-left: 4px solid #198754; background: #eef8f2; font-family: inherit; }
.ammp-message.ammp-error { border-color: #ed1c24; background: #fff1f1; }
.ammp-popup-open { overflow: hidden; }
.ammp-success-popup { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ammp-success-popup[hidden] { display: none; }
.ammp-success-popup-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .58); }
.ammp-success-popup-dialog { position: relative; width: min(100%, 460px); padding: 38px 30px 30px; border-top: 4px solid var(--ammp-red); background: #fff; box-shadow: 0 18px 55px rgba(0, 0, 0, .28); text-align: center; }
.ammp-success-popup-dialog h2 { margin: 12px 0 24px; color: var(--ammp-text); font-size: 24px; line-height: 1.3; }
.ammp-success-popup-icon { display: inline-flex; width: 58px; height: 58px; align-items: center; justify-content: center; border-radius: 50%; background: #198754; color: #fff; font-size: 34px; font-weight: 700; line-height: 1; }
.ammp-success-popup-x { position: absolute; top: 8px; right: 12px; border: 0; background: transparent; color: #666; cursor: pointer; font-size: 28px; line-height: 1; }
.ammp-success-popup-x:hover, .ammp-success-popup-x:focus { color: var(--ammp-red); }

@media (max-width: 900px) {
  .ammp-events-layout { grid-template-columns: 1fr; gap: 24px; }
  .ammp-form-panel { scroll-margin-top: 24px; }
}
@media (max-width: 600px) {
  .ammp-form-panel { padding: 22px 16px; }
  .ammp-registration fieldset { padding: 18px 14px; }
  .ammp-form-grid { grid-template-columns: 1fr; }
  .ammp-checkbox-grid { grid-template-columns: 1fr; }
}
