.ejrg-booking {
  --ejrg-ink: #24312b;
  --ejrg-muted: #657169;
  --ejrg-line: #ded8cc;
  --ejrg-soft: #f7f3eb;
  --ejrg-surface: #ffffff;
  --ejrg-green: #2f6b4f;
  --ejrg-green-dark: #22523b;
  --ejrg-terracotta: #b8613f;
  --ejrg-danger: #b42318;
  --ejrg-success: #177245;
  box-sizing: border-box;
  position: relative;
  left: 50%;
  right: 50%;
  width: 100vw;
  max-width: none !important;
  margin: clamp(-82px, -4.6vw, -44px) -50vw 48px;
  transform: none;
  color: var(--ejrg-ink);
  background: #fbfaf7;
  border-bottom: 1px solid #eee7dc;
  border-radius: 0;
  padding: 0 0 clamp(30px, 4vw, 52px);
  overflow-x: hidden;
}

.ejrg-booking *,
.ejrg-booking *::before,
.ejrg-booking *::after {
  box-sizing: border-box;
}

.ejrg-booking [hidden] {
  display: none !important;
}

.ejrg-booking .ejrg-is-hidden {
  display: none !important;
}

.ejrg-hidden-page-title {
  display: none !important;
}

.ejrg-shell {
  display: block;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.ejrg-banner {
  position: relative;
  width: 100%;
  min-height: clamp(250px, 24vw, 390px);
  display: flex;
  align-items: center;
  margin: 0 0 clamp(26px, 4vw, 54px);
  background-color: #e9e2d4;
  background-position: center 42%;
  background-size: cover;
  overflow: hidden;
}

.ejrg-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 24, 20, 0.72), rgba(15, 24, 20, 0.28) 48%, rgba(15, 24, 20, 0.12));
}

.ejrg-banner-inner {
  position: relative;
  z-index: 1;
  width: min(1320px, calc(100% - 32px));
  margin: 0 auto;
}

.ejrg-banner h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(44px, 6vw, 82px);
  font-weight: 850;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.ejrg-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  margin: 0 0 16px;
  padding: 0 2px;
  border-radius: 8px;
  background: transparent;
  color: var(--ejrg-ink);
}

.ejrg-kicker {
  flex: 0 0 auto;
  margin: 0;
  color: var(--ejrg-terracotta);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.ejrg-hero h2 {
  margin: 0 0 10px;
  color: var(--ejrg-ink);
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.12;
}

.ejrg-hero p {
  margin: 0;
  max-width: 760px;
  color: var(--ejrg-muted);
  font-size: 15px;
  line-height: 1.5;
  text-align: right;
}

.ejrg-form {
  background: var(--ejrg-surface);
  border: 1px solid var(--ejrg-line);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(35, 49, 43, 0.08);
  padding: clamp(22px, 3vw, 36px);
  overflow: hidden;
}

.ejrg-progress {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.ejrg-progress span {
  position: relative;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ejrg-line);
  border-radius: 6px;
  color: var(--ejrg-muted);
  background: #fbfaf7;
  font-size: 13px;
  font-weight: 700;
}

.ejrg-progress span.is-active,
.ejrg-progress span.is-complete {
  border-color: var(--ejrg-green);
  background: #edf5ef;
  color: var(--ejrg-green-dark);
}

.ejrg-step {
  display: none;
}

.ejrg-step.is-active {
  display: block;
}

.ejrg-step-header {
  display: grid;
  grid-template-columns: minmax(230px, 0.36fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}

.ejrg-step-header h3 {
  margin: 0 0 6px;
  color: var(--ejrg-ink);
  font-size: clamp(23px, 1.8vw, 30px);
  line-height: 1.2;
}

.ejrg-step-header p {
  margin: 0;
  color: var(--ejrg-muted);
  font-size: 16px;
  line-height: 1.5;
}

.ejrg-choice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(180px, 1fr));
  gap: 16px;
}

.ejrg-choice-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ejrg-choice-card {
  display: grid;
  min-height: 132px;
  align-content: start;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--ejrg-line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ejrg-choice-card:hover {
  border-color: #a9b8ad;
  box-shadow: 0 10px 24px rgba(35, 49, 43, 0.08);
  transform: translateY(-1px);
}

.ejrg-choice-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ejrg-choice-card:has(input:checked) {
  border-color: var(--ejrg-green);
  box-shadow: inset 0 0 0 1px var(--ejrg-green);
  background: #f2f8f4;
}

.ejrg-choice-title {
  color: var(--ejrg-ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.25;
}

.ejrg-choice-copy {
  color: var(--ejrg-muted);
  font-size: 14px;
  line-height: 1.45;
}

.ejrg-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 18px;
}

.ejrg-fields label {
  display: grid;
  gap: 8px;
  color: var(--ejrg-ink);
  font-size: 14px;
  font-weight: 800;
}

.ejrg-field-full {
  grid-column: 1 / -1;
}

.ejrg-fields input,
.ejrg-fields select,
.ejrg-fields textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--ejrg-line);
  border-radius: 8px;
  color: var(--ejrg-ink);
  background: #fff;
  padding: 10px 12px;
  font: inherit;
  font-weight: 500;
}

.ejrg-fields textarea {
  min-height: 112px;
  resize: vertical;
}

.ejrg-fields input:focus,
.ejrg-fields select:focus,
.ejrg-fields textarea:focus {
  outline: 3px solid rgba(47, 107, 79, 0.16);
  border-color: var(--ejrg-green);
}

.ejrg-fields .has-error,
.ejrg-choice-grid .has-error {
  border-color: var(--ejrg-danger);
}

.ejrg-error {
  display: block;
  margin-top: 7px;
  color: var(--ejrg-danger);
  font-size: 13px;
  font-weight: 700;
}

.ejrg-hours-warning {
  border: 1px solid rgba(180, 97, 63, 0.28);
  border-radius: 8px;
  background: #fff6ed;
  color: #8a3f1f;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.45;
}

.ejrg-menu-note {
  border: 1px solid #d9e5dc;
  border-radius: 8px;
  background: #f2f8f4;
  color: var(--ejrg-ink);
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.55;
}

.ejrg-menu-note strong {
  color: var(--ejrg-green-dark);
}

.ejrg-total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 18px 20px;
  border: 1px solid #d9e5dc;
  border-radius: 8px;
  background: #f2f8f4;
}

.ejrg-total span {
  color: var(--ejrg-muted);
  font-size: 14px;
  font-weight: 800;
}

.ejrg-total strong {
  color: var(--ejrg-green-dark);
  font-size: 24px;
}

.ejrg-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(170px, 1fr));
  gap: 12px;
}

.ejrg-summary div {
  min-height: 70px;
  display: grid;
  align-content: center;
  gap: 5px;
  border: 1px solid var(--ejrg-line);
  border-radius: 8px;
  padding: 14px;
  background: #fbfaf7;
}

.ejrg-summary span {
  color: var(--ejrg-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.ejrg-summary strong {
  color: var(--ejrg-ink);
  font-size: 15px;
  line-height: 1.35;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.ejrg-summary .ejrg-summary-wide {
  grid-column: 1 / -1;
}

.ejrg-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 28px;
}

.ejrg-button {
  min-height: 46px;
  border: 1px solid var(--ejrg-green);
  border-radius: 8px;
  background: var(--ejrg-green);
  color: #fff;
  padding: 11px 18px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
}

.ejrg-button:hover,
.ejrg-button:focus {
  background: var(--ejrg-green-dark);
  border-color: var(--ejrg-green-dark);
}

.ejrg-button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.ejrg-button--ghost {
  background: #fff;
  color: var(--ejrg-green);
}

.ejrg-button--ghost:hover,
.ejrg-button--ghost:focus {
  background: #edf5ef;
  color: var(--ejrg-green-dark);
}

.ejrg-inline-button {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  margin-top: 10px;
  border: 1px solid var(--ejrg-green);
  border-radius: 8px;
  background: #fff;
  color: var(--ejrg-green);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.ejrg-inline-button:hover,
.ejrg-inline-button:focus {
  background: #edf5ef;
}

.ejrg-agency-status {
  margin-bottom: 18px;
  border: 1px solid rgba(23, 114, 69, 0.28);
  border-radius: 8px;
  background: #edf8f1;
  color: var(--ejrg-success);
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
}

.ejrg-alert,
.ejrg-done,
.ejrg-redirect {
  margin-top: 16px;
  border-radius: 8px;
  padding: 14px 16px;
  font-weight: 800;
}

.ejrg-alert.is-success,
.ejrg-done {
  border: 1px solid rgba(23, 114, 69, 0.28);
  background: #edf8f1;
  color: var(--ejrg-success);
}

.ejrg-redirect {
  border: 1px solid #d9e5dc;
  background: #fbfaf7;
  color: var(--ejrg-muted);
}

.ejrg-alert.is-error {
  border: 1px solid rgba(180, 35, 24, 0.24);
  background: #fff1ef;
  color: var(--ejrg-danger);
}

.ejrg-modal[hidden] {
  display: none;
}

.ejrg-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ejrg-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 30, 26, 0.58);
  backdrop-filter: blur(4px);
}

.ejrg-modal-card {
  position: relative;
  width: min(460px, 100%);
  border: 1px solid #d9e5dc;
  border-radius: 8px;
  background: #fff;
  padding: 28px;
  box-shadow: 0 24px 70px rgba(20, 30, 26, 0.24);
  text-align: center;
}

.ejrg-modal-icon {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: #edf8f1;
  color: var(--ejrg-success);
  font-size: 30px;
  font-weight: 900;
}

.ejrg-modal-card h3 {
  margin: 0 0 8px;
  color: var(--ejrg-ink);
  font-size: 26px;
  line-height: 1.2;
}

.ejrg-modal-card p {
  margin: 0;
  color: var(--ejrg-muted);
  font-size: 15px;
  line-height: 1.5;
}

.ejrg-modal-code {
  margin-top: 16px;
  border: 1px solid rgba(23, 114, 69, 0.22);
  border-radius: 8px;
  background: #edf8f1;
  color: var(--ejrg-success);
  padding: 12px;
  font-size: 18px;
  font-weight: 900;
}

.ejrg-modal-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 18px;
}

.ejrg-agency-login {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  text-align: left;
}

.ejrg-agency-login label {
  display: grid;
  gap: 7px;
  color: var(--ejrg-ink);
  font-size: 14px;
  font-weight: 800;
}

.ejrg-agency-login input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--ejrg-line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.ejrg-modal-open {
  overflow: hidden;
}

@supports not selector(:has(*)) {
  .ejrg-choice-card input:checked + .ejrg-choice-title {
    color: var(--ejrg-green-dark);
  }
}

@media (max-width: 820px) {
  .ejrg-booking {
    width: 100vw;
    max-width: none !important;
    margin: -28px -50vw 38px;
    transform: none;
    padding: 0 0 30px;
    overflow-x: hidden;
  }

  .ejrg-shell {
    width: calc(100% - 24px);
    max-width: 100%;
  }

  .ejrg-banner {
    min-height: clamp(200px, 44vw, 300px);
    margin: 0 0 24px;
    background-position: center 42%;
  }

  .ejrg-banner::before {
    background: linear-gradient(90deg, rgba(15, 24, 20, 0.72), rgba(15, 24, 20, 0.3));
  }

  .ejrg-banner-inner {
    width: calc(100% - 32px);
  }

  .ejrg-banner h1 {
    font-size: clamp(38px, 10vw, 58px);
    line-height: 1;
  }

  .ejrg-hero {
    display: block;
    padding: 0;
  }

  .ejrg-hero p {
    margin-top: 6px;
    text-align: left;
    font-size: 14px;
  }

  .ejrg-hero h2 {
    font-size: 28px;
  }

  .ejrg-form {
    width: 100%;
    padding: 18px;
  }

  .ejrg-step-header,
  .ejrg-choice-grid,
  .ejrg-choice-grid--two,
  .ejrg-fields,
  .ejrg-summary {
    grid-template-columns: 1fr;
  }

  .ejrg-choice-card {
    min-height: 116px;
  }

  .ejrg-actions {
    margin-top: 22px;
  }

  .ejrg-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .ejrg-button {
    width: 100%;
  }

  .ejrg-modal-card {
    padding: 22px 18px;
  }

  .ejrg-modal-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .ejrg-booking {
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: -18px;
  }

  .ejrg-banner {
    min-height: 190px;
    margin-bottom: 22px;
  }

  .ejrg-banner h1 {
    font-size: clamp(36px, 12vw, 50px);
  }

  .ejrg-step-header h3 {
    font-size: 24px;
  }

  .ejrg-choice-card {
    min-height: auto;
    padding: 16px;
  }

  .ejrg-summary div {
    min-height: auto;
  }
}
