.ced-app,
.ced-app * {
  box-sizing: border-box;
}

.ced-app {
  --ced-ink: #171923;
  --ced-muted: #6c7280;
  --ced-line: #e4e6eb;
  --ced-surface: #ffffff;
  --ced-soft: #f5f6f8;
  --ced-accent: #e8782e;
  --ced-accent-dark: #c85c17;
  --ced-green: #177c55;
  --ced-green-soft: #e8f6ef;
  --ced-amber: #9a5b00;
  --ced-amber-soft: #fff3dc;
  --ced-red: #ae2f37;
  --ced-red-soft: #fbeaec;
  width: 100%;
  max-width: 1240px;
  margin: 32px auto;
  color: var(--ced-ink);
  font-family: inherit;
  line-height: 1.5;
}

.ced-app [hidden] {
  display: none !important;
}

.ced-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 68px);
  border-radius: 26px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(232, 120, 46, 0.35), transparent 30%),
    radial-gradient(circle at 12% 100%, rgba(125, 82, 188, 0.25), transparent 35%),
    linear-gradient(135deg, #171722 0%, #252238 100%);
  box-shadow: 0 24px 60px rgba(16, 17, 25, 0.18);
}

.ced-hero::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -95px;
  width: 240px;
  height: 240px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, 0.035), 0 0 0 68px rgba(255, 255, 255, 0.025);
  pointer-events: none;
}

.ced-eyebrow,
.ced-modal-kicker {
  margin: 0 0 10px;
  color: #ffb47f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.ced-hero h2 {
  max-width: 760px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: clamp(34px, 5vw, 62px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.ced-subtitle {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(16px, 2vw, 20px);
}

.ced-capacity-summary {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.ced-capacity-summary > div {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 230px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.ced-capacity-summary strong {
  color: #ffb47f;
  font-size: 28px;
  line-height: 1;
}

.ced-capacity-summary span {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.ced-live-note {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin: 22px 4px 14px;
  color: var(--ced-muted);
  font-size: 13px;
}

.ced-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24a66d;
  box-shadow: 0 0 0 4px rgba(36, 166, 109, 0.13);
}

.ced-weekend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ced-weekend-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--ced-line);
  border-radius: 20px;
  background: var(--ced-surface);
  box-shadow: 0 10px 28px rgba(24, 27, 38, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ced-weekend-card:hover {
  transform: translateY(-3px);
  border-color: #d5d8de;
  box-shadow: 0 17px 38px rgba(24, 27, 38, 0.11);
}

.ced-card-topline {
  display: flex;
  min-height: 27px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ced-card-number {
  color: var(--ced-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
}

.ced-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ced-green);
  background: var(--ced-green-soft);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.ced-weekend-card.is-sold-out .ced-status-badge,
.ced-weekend-card.is-closed .ced-status-badge {
  color: var(--ced-red);
  background: var(--ced-red-soft);
}

.ced-weekend-card.is-low .ced-status-badge {
  color: var(--ced-amber);
  background: var(--ced-amber-soft);
}

.ced-weekend-card h3 {
  margin: 16px 0 0;
  padding: 0;
  color: var(--ced-ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.ced-card-year {
  margin: 2px 0 17px;
  color: var(--ced-muted);
  font-size: 13px;
}

.ced-days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  margin-bottom: 18px;
  border: 1px solid var(--ced-line);
  border-radius: 14px;
  background: var(--ced-soft);
}

.ced-days > div {
  padding: 10px 5px;
  text-align: center;
}

.ced-days > div + div {
  border-left: 1px solid var(--ced-line);
}

.ced-days span,
.ced-days strong {
  display: block;
}

.ced-days span {
  margin-bottom: 1px;
  color: var(--ced-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.ced-days strong {
  color: var(--ced-ink);
  font-size: 21px;
  line-height: 1.15;
}

.ced-availability-list {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.ced-availability-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 1px 8px;
  align-items: center;
}

.ced-space-icon {
  grid-row: 1 / span 2;
  color: var(--ced-accent);
  font-size: 18px;
  line-height: 1;
}

.ced-space-icon.is-outline {
  font-size: 22px;
}

.ced-space-name {
  overflow: hidden;
  color: var(--ced-muted);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ced-availability-row strong {
  color: var(--ced-ink);
  font-size: 12px;
  line-height: 1.25;
}

.ced-app .ced-reserve-button,
.ced-app .ced-submit-button {
  display: inline-flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  color: #fff !important;
  background: var(--ced-accent);
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.ced-app .ced-reserve-button:hover,
.ced-app .ced-submit-button:hover {
  color: #fff !important;
  background: var(--ced-accent-dark);
  box-shadow: 0 9px 20px rgba(200, 92, 23, 0.22);
  transform: translateY(-1px);
}

.ced-app .ced-reserve-button:focus-visible,
.ced-app .ced-submit-button:focus-visible,
.ced-app .ced-modal-close:focus-visible,
.ced-app input:focus-visible,
.ced-app select:focus-visible {
  outline: 3px solid rgba(232, 120, 46, 0.28);
  outline-offset: 2px;
}

.ced-app .ced-reserve-button:disabled,
.ced-app .ced-submit-button:disabled {
  color: #8b909a !important;
  background: #e7e8eb;
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

.ced-weekend-card.is-closed {
  opacity: 0.72;
  box-shadow: none;
}

.ced-weekend-card.is-closed:hover {
  transform: none;
}

body.ced-modal-open {
  overflow: hidden;
}

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

.ced-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 12, 17, 0.76);
  backdrop-filter: blur(5px);
}

.ced-modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: clamp(26px, 5vw, 44px);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  animation: ced-modal-in 180ms ease-out;
}

@keyframes ced-modal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ced-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #5e6370;
  background: var(--ced-soft);
  font: inherit;
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
}

.ced-modal-kicker {
  color: var(--ced-accent-dark);
}

.ced-modal-panel h2 {
  margin: 0;
  padding: 0;
  color: var(--ced-ink);
  font-size: clamp(26px, 5vw, 38px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.ced-selected-weekend {
  margin: 10px 0 26px;
  color: var(--ced-muted);
  font-size: 15px;
  font-weight: 600;
}

.ced-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ced-field {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  color: var(--ced-ink);
  font-size: 13px;
  font-weight: 700;
}

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

.ced-app .ced-field input[type="text"],
.ced-app .ced-field input[type="tel"],
.ced-app .ced-field select {
  width: 100%;
  min-height: 47px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #d9dce2;
  border-radius: 10px;
  color: var(--ced-ink);
  background: #fff;
  box-shadow: none;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
}

.ced-app .ced-field input:focus,
.ced-app .ced-field select:focus {
  border-color: var(--ced-accent);
  outline: 0;
}

.ced-field small {
  color: var(--ced-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.ced-radio-field {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.ced-radio-field legend {
  margin-bottom: 8px;
  color: var(--ced-ink);
  font-size: 13px;
  font-weight: 700;
}

.ced-radio-options {
  display: flex;
  gap: 10px;
}

.ced-radio-options label {
  display: flex;
  min-width: 110px;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border: 1px solid #d9dce2;
  border-radius: 10px;
  color: var(--ced-ink);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.ced-app .ced-radio-options input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--ced-accent);
}

.ced-privacy-note {
  margin: 20px 0 10px;
  color: var(--ced-muted);
  font-size: 11px;
  line-height: 1.45;
}

.ced-form-message {
  min-height: 0;
  margin-bottom: 10px;
  padding: 0;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
}

.ced-form-message.is-error,
.ced-form-message.is-success {
  padding: 10px 12px;
}

.ced-form-message.is-error {
  color: var(--ced-red);
  background: var(--ced-red-soft);
}

.ced-form-message.is-success {
  color: var(--ced-green);
  background: var(--ced-green-soft);
}

.ced-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.ced-submit-button.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  margin-right: 9px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: ced-spin 700ms linear infinite;
}

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

.ced-success-view {
  padding: 8px 0 0;
  text-align: center;
}

.ced-success-check {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #fff;
  background: var(--ced-green);
  box-shadow: 0 0 0 9px var(--ced-green-soft);
  font-size: 37px;
  font-weight: 700;
  line-height: 1;
}

.ced-success-view .ced-modal-kicker {
  margin-top: 8px;
}

.ced-success-view > p:not(.ced-modal-kicker):not(.ced-success-note) {
  margin: 12px 0 22px;
  color: var(--ced-muted);
  font-size: 16px;
}

.ced-folio-box {
  display: inline-flex;
  min-width: min(100%, 360px);
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border: 1px dashed #c7cad1;
  border-radius: 12px;
  background: var(--ced-soft);
}

.ced-folio-box span {
  color: var(--ced-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ced-folio-box strong {
  color: var(--ced-ink);
  font-size: clamp(15px, 4vw, 20px);
  letter-spacing: 0.025em;
  overflow-wrap: anywhere;
}

.ced-success-note {
  margin: 14px 0 24px;
  color: var(--ced-muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .ced-weekend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .ced-app {
    margin: 20px auto;
  }

  .ced-hero {
    padding: 30px 22px;
    border-radius: 19px;
  }

  .ced-capacity-summary {
    flex-direction: column;
  }

  .ced-capacity-summary > div {
    width: 100%;
    min-width: 0;
  }

  .ced-live-note {
    justify-content: flex-start;
    margin-left: 4px;
  }

  .ced-weekend-grid {
    grid-template-columns: 1fr;
  }

  .ced-weekend-card {
    padding: 20px;
  }

  .ced-modal {
    align-items: end;
    padding: 0;
  }

  .ced-modal-panel {
    width: 100%;
    max-height: 92vh;
    padding: 30px 20px 24px;
    border-radius: 20px 20px 0 0;
  }

  .ced-form-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .ced-field-full {
    grid-column: auto;
  }

  .ced-radio-options label {
    flex: 1;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ced-weekend-card,
  .ced-app .ced-reserve-button,
  .ced-app .ced-submit-button,
  .ced-modal-panel {
    animation: none;
    transition: none;
  }
}
