@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --ebr-bg: #f6f7f9;
  --ebr-surface: #ffffff;
  --ebr-ink: #12141a;
  --ebr-muted: #5d6777;
  --ebr-line: #e2e6ee;
  --ebr-accent: #0f4c81;
  --ebr-accent-2: #0b365c;
  --ebr-sidebar: #1c2a59;
  --ebr-success: #dff4e6;
  --ebr-danger: #f7dede;
  --ebr-past: #eceff4;
  --ebr-shadow: 0 10px 28px rgba(15, 35, 60, 0.10);
}

.ebr-wrap {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--ebr-ink);
}

.ebr-title {
  font-family: inherit;
  font-weight: 700;
  letter-spacing: 0;
}

.ebr-card {
  background: var(--ebr-surface);
  border: 1px solid var(--ebr-line);
  border-radius: 14px;
  box-shadow: var(--ebr-shadow);
}

.ebr-chip {
  font-size: 12px;
  color: var(--ebr-muted);
  border: 1px solid var(--ebr-line);
  padding: 4px 10px;
  border-radius: 999px;
  background: #fafbff;
}

/* DJ Overview */
.ebr-dj-overview {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  background: var(--ebr-bg);
  border-radius: 16px;
  border: 1px solid var(--ebr-line);
}

.ebr-dj-overview .ebr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.ebr-overview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}

.ebr-dj-card {
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--ebr-line);
  background: var(--ebr-surface);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ebr-dj-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--ebr-shadow);
}

.ebr-dj-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.18s ease;
}

.ebr-dj-card:hover img {
  transform: scale(1.02);
}

.ebr-dj-card .ebr-card-body {
  padding: 12px 14px 16px;
}

.ebr-dj-card .ebr-name {
  margin: 0;
  font-weight: 600;
}

/* Detail page */
.ebr-resource-detail {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 16px;
}

.ebr-resource-detail .ebr-price {
  font-weight: 600;
  color: var(--ebr-accent);
}

.ebr-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 24px;
}

.ebr-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  aspect-ratio: 1 / 1;
}

/* Calendar */
.ebr-resource-calendar {
  border: 1px solid var(--ebr-line);
  border-radius: 14px;
  padding: 16px;
  background: var(--ebr-surface);
}

.ebr-resource-calendar .ebr-cal-weekdays,
.ebr-resource-calendar .ebr-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.ebr-resource-calendar .ebr-cal-wd {
  text-align: center;
  font-size: 12px;
  color: var(--ebr-muted);
}

.ebr-resource-calendar .ebr-cal-day {
  border: 1px solid var(--ebr-line);
  border-radius: 8px;
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.ebr-resource-calendar .ebr-cal-empty {
  border: none;
  background: transparent;
}

.ebr-resource-calendar .ebr-cal-available {
  background: var(--ebr-success);
  border-color: #cfeadb;
}

.ebr-resource-calendar .ebr-cal-unavailable {
  background: var(--ebr-danger);
  border-color: #efc6c6;
  color: #8b3333;
}

.ebr-resource-calendar .ebr-cal-request {
  background: #fff1cc;
  border-color: #f1d9a2;
  color: #8a6a1a;
}

.ebr-resource-calendar .ebr-cal-past {
  background: var(--ebr-past);
  border-color: var(--ebr-line);
  color: #8a8a8a;
}

.ebr-resource-calendar .ebr-cal-clickable {
  cursor: pointer;
}

.ebr-resource-calendar .ebr-cal-day.is-selected {
  outline: 2px solid var(--ebr-accent);
  outline-offset: -2px;
}

/* Booking wizard */
.ebr-wizard {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--ebr-shadow);
  border: 1px solid var(--ebr-line);
  background: var(--ebr-surface);
}

.ebr-wizard-sidebar {
  background: var(--ebr-sidebar);
  color: #fff;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.ebr-wizard-brand {
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 14px;
}

.ebr-wizard-title {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.ebr-wizard-sub {
  font-size: 13px;
  opacity: 0.9;
}

.ebr-wizard-meta {
  margin-top: 10px;
  display: grid;
  gap: 6px;
  font-size: 12px;
}

.ebr-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: rgba(255,255,255,0.85);
}

.ebr-meta-label {
  opacity: 0.75;
}

.ebr-meta-value {
  font-weight: 600;
  text-align: right;
}

.ebr-wizard-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ebr-step-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.ebr-step-indicator.is-active {
  background: rgba(255,255,255,0.18);
}

.ebr-step-label {
  font-weight: 600;
}

.ebr-step-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,0.5);
}

.ebr-step-indicator.is-active .ebr-step-dot {
  background: #2f6bff;
  border-color: #2f6bff;
}

.ebr-step-indicator.is-done .ebr-step-dot {
  background: #2abf6a;
  border-color: #2abf6a;
  position: relative;
}

.ebr-step-indicator.is-done .ebr-step-dot::after {
  content: "✓";
  color: #fff;
  font-size: 12px;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ebr-wizard-main {
  padding: 22px 24px;
  background: #fff;
}

.ebr-wizard-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ebr-line);
}

.ebr-price-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ebr-muted);
}

.ebr-vat-label {
  font-size: 12px;
  color: var(--ebr-muted);
}

.ebr-summary {
  border: 1px solid var(--ebr-line);
  border-radius: 14px;
  padding: 14px;
  background: #fbfcff;
}

.ebr-summary-meta {
  font-size: 13px;
  color: var(--ebr-muted);
  display: grid;
  gap: 4px;
  margin-bottom: 10px;
}

.ebr-summary-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--ebr-line);
  border-radius: 12px;
  overflow: hidden;
}

.ebr-summary-table thead th {
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--ebr-muted);
  padding: 10px 12px;
  background: #f6f8fb;
  border-bottom: 1px solid var(--ebr-line);
}

.ebr-summary-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--ebr-line);
  vertical-align: middle;
}

.ebr-summary-table tr:last-child td {
  border-bottom: none;
}

.ebr-summary-table tfoot td {
  border-top: 1px solid var(--ebr-line);
  font-weight: 700;
  background: #f9fafc;
}

.ebr-summary-total-label {
  text-align: left;
}

.ebr-summary-line {
  display: block;
}

.ebr-summary-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ebr-summary-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: #eef1f5;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.ebr-summary-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ebr-summary-desc {
  font-weight: 600;
  color: var(--ebr-ink);
}

.ebr-summary-price {
  text-align: right;
  white-space: nowrap;
}

.ebr-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--ebr-line);
  border-radius: 999px;
  background: #f2f5fa;
  gap: 4px;
  user-select: none;
}

.ebr-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ebr-toggle-option {
  position: relative;
  z-index: 2;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ebr-muted);
  cursor: pointer;
  transition: color 0.2s ease;
  white-space: nowrap;
}

.ebr-toggle-slider {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: calc(50% - 2px);
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(10, 20, 30, 0.08);
  transition: transform 0.2s ease;
  z-index: 1;
}

.ebr-toggle input[value="incl"]:checked ~ .ebr-toggle-slider {
  transform: translateX(100%);
}

.ebr-toggle input[value="excl"]:checked ~ label[for$="_excl"] {
  color: var(--ebr-ink);
}

.ebr-toggle input[value="incl"]:checked ~ label[for$="_incl"] {
  color: var(--ebr-ink);
}

.ebr-back {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--ebr-line);
  background: #fff;
  color: var(--ebr-ink);
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ebr-back:hover {
  border-color: var(--ebr-accent);
  color: var(--ebr-accent);
}

.ebr-date-panel {
  border: 1px solid var(--ebr-line);
  border-radius: 14px;
  padding: 18px;
  background: #fbfcff;
  box-shadow: 0 6px 20px rgba(16, 30, 50, 0.06);
  margin-bottom: 12px;
}

.ebr-date-panel-head {
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.ebr-date-panel-sub {
  color: var(--ebr-muted);
  font-size: 12px;
  margin-bottom: 14px;
}

.ebr-date-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ebr-time-grid {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 240px;
}

.ebr-time-label {
  font-size: 12px;
  color: var(--ebr-muted);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ebr-time-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
}

.ebr-time-option {
  border: 1px solid var(--ebr-line);
  background: #fff;
  border-radius: 10px;
  padding: 8px 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ebr-ink);
  cursor: pointer;
  transition: all 0.15s ease;
}

.ebr-time-option:hover {
  border-color: var(--ebr-accent);
  color: var(--ebr-accent);
}

.ebr-time-option.is-selected {
  background: var(--ebr-accent);
  border-color: var(--ebr-accent);
  color: #fff;
}

.ebr-form-grid {
  display: grid;
  gap: 12px;
  max-width: 620px;
}

.ebr-form-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  align-items: center;
}

.ebr-form-label {
  font-size: 13px;
  color: var(--ebr-muted);
  text-transform: none;
}

.ebr-form-field input {
  width: 100%;
}

.ebr-terms {
  margin: 14px 0;
  font-size: 12px;
  color: var(--ebr-muted);
}

.ebr-terms a {
  color: var(--ebr-muted);
  text-decoration: underline;
}

@media (max-width: 700px) {
  .ebr-form-row {
    grid-template-columns: 1fr;
  }
}

#ebr_msg.is-error {
  background: #fdecec;
  border-color: #f3c3c3;
  color: #9b2c2c;
}


.ebr-action-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.ebr-step-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--ebr-line);
}

@media (max-width: 900px) {
  .ebr-wizard {
    grid-template-columns: 1fr;
  }
  .ebr-wizard-sidebar {
    border-radius: 0;
  }
  .ebr-wizard-main {
    padding: 16px;
  }
  .ebr-wizard-steps {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }
  .ebr-step-indicator {
    flex: 1 1 auto;
  }
}

.ebr-extras-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.ebr-extra-card {
  border: 1px solid var(--ebr-line);
  border-radius: 12px;
  padding: 12px;
  background: #fcfdff;
}

.ebr-extra-card input {
  margin-right: 6px;
}

.ebr-extra-more {
  display: inline-block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--ebr-accent);
  border: 1px solid var(--ebr-accent);
  border-radius: 999px;
  padding: 6px 10px;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.ebr-extra-more:hover {
  background: var(--ebr-accent-2);
  border-color: var(--ebr-accent-2);
  transform: translateY(-1px);
}

.ebr-media {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f3f7;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.ebr-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ebr-img-fallback {
  font-size: 12px;
  color: var(--ebr-muted);
}

.ebr-carousel-prev,
.ebr-carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.ebr-carousel-prev { left: 6px; }
.ebr-carousel-next { right: 6px; }
.ebr-total {
  padding: 12px;
  background: #f7f9fc;
  border: 1px solid var(--ebr-line);
  border-radius: 12px;
}

.ebr-spinner {
  width: 14px;
  height: 14px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: ebr-spin 0.8s linear infinite;
  display: inline-block;
}

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

/* Form fields */
.ebr-wrap input[type="text"],
.ebr-wrap input[type="email"],
.ebr-wrap input[type="date"],
.ebr-wrap select {
  border: 1px solid var(--ebr-line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 14px;
  background: #fff;
}

.ebr-wrap .button.button-primary {
  background: var(--ebr-accent);
  border-color: var(--ebr-accent);
  color: #fff;
}

.ebr-wrap .button.button-primary:hover {
  background: var(--ebr-accent-2);
  border-color: var(--ebr-accent-2);
}

.ebr-wizard .button {
  border-radius: 10px;
  padding: 8px 14px;
  background: #f3f6fb;
  border-color: var(--ebr-line);
}

.ebr-wizard .button:hover {
  background: #e9eef8;
  border-color: var(--ebr-accent);
}

.ebr-cal-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ebr-cal-controls select {
  min-width: 130px;
  font-size: 13px;
  font-weight: 600;
}

.ebr-cal-nav {
  display: inline-flex;
  gap: 6px;
}

.ebr-cal-nav .ebr-cal-prev,
.ebr-cal-nav .ebr-cal-next {
  border: 1px solid var(--ebr-line);
  background: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ebr-cal-nav .ebr-cal-prev:hover,
.ebr-cal-nav .ebr-cal-next:hover {
  border-color: var(--ebr-accent);
  color: var(--ebr-accent);
}
