/* Booking UI shared by rdv.html and account/rendezvous.php.
   The visual system follows the supplied MyScale mockups while keeping the
   existing booking logic and controls intact. */

:root {
  --booking-navy: #082650;
  --booking-navy-strong: #041d43;
  --booking-blue: #0875ef;
  --booking-blue-soft: #eaf4ff;
  --booking-ink: #071936;
  --booking-muted: #667b9f;
  --booking-border: #d7e2f0;
  --booking-surface: #ffffff;
  --booking-canvas: #f3f7fc;
  --booking-success: #12a765;
  --booking-radius: 14px;
  --booking-shadow: 0 16px 45px rgba(26, 59, 104, 0.08);
}

.booking-redesign {
  color: var(--booking-ink);
  background:
    radial-gradient(circle at 7% 12%, rgba(24, 124, 238, 0.08), transparent 24rem),
    radial-gradient(circle at 94% 88%, rgba(24, 124, 238, 0.07), transparent 28rem),
    var(--booking-canvas);
}

.booking-redesign button,
.booking-redesign input,
.booking-redesign textarea,
.booking-redesign select {
  font: inherit;
}

/* ---------- Public booking shell ---------- */

.booking-public .page {
  width: min(100%, 1240px);
  max-width: 1240px;
  padding: 0 28px 64px;
}

.booking-topbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  gap: 26px;
  margin-bottom: 16px;
  color: var(--booking-navy);
}

.booking-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--booking-navy);
  font-size: 31px;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.booking-brand-mark {
  position: relative;
  width: 34px;
  height: 30px;
  border: 7px solid var(--booking-blue);
  border-bottom-width: 9px;
  border-radius: 4px 4px 8px 8px;
  transform: rotate(0deg);
}

.booking-brand-mark::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: -1px;
  top: -14px;
  border-left: 7px solid var(--booking-navy);
  border-top: 7px solid var(--booking-navy);
  transform: rotate(45deg);
  border-radius: 3px 0 0;
}

.booking-tagline {
  padding-left: 26px;
  border-left: 1px solid #b9c8dc;
  font-size: 16px;
  font-weight: 650;
}

.booking-promise {
  margin-left: auto;
  color: #34577f;
  font-weight: 650;
}

.booking-public .back-btn {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  margin: 11px 0 0 -54px;
  border: 1px solid var(--booking-border);
  border-radius: 12px;
  color: var(--booking-navy);
  background: #fff;
  box-shadow: 0 8px 20px rgba(35, 70, 117, 0.08);
  font-size: 0;
}

.booking-public .back-btn::before {
  content: "←";
  font-size: 22px;
}

.booking-public .rdv-heading {
  margin: 8px 0 20px;
}

.booking-public .rdv-kicker,
.booking-panel-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--booking-blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.booking-public .rdv-kicker::before {
  display: none;
}

.booking-public .main-title {
  margin: 7px 0 6px;
  color: var(--booking-ink);
  font-size: clamp(31px, 4vw, 44px);
  line-height: 1.05;
}

.booking-public .rdv-intro {
  color: var(--booking-muted);
  font-size: 15px;
}

/* ---------- Steppers ---------- */

.booking-public .steps {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(22px, 1fr) auto minmax(22px, 1fr) auto minmax(22px, 1fr) auto minmax(22px, 1fr) auto minmax(22px, 1fr) auto;
  gap: 10px;
  margin: 0 0 22px;
  padding: 15px 18px;
  border: 1px solid var(--booking-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 9px 28px rgba(35, 70, 117, 0.055);
}

.booking-public .step {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 0;
  color: #5d7293;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  white-space: nowrap;
}

.booking-public .step-index {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  border-radius: 50%;
  color: #5b6f8f;
  background: #edf2f8;
  font-size: 12px;
  font-weight: 850;
}

.booking-public .step-label {
  font-size: 12px;
  font-weight: 700;
}

.booking-public .step.active {
  color: var(--booking-ink);
  background: transparent;
  box-shadow: none;
}

.booking-public .step.active .step-index {
  color: #fff;
  background: linear-gradient(145deg, var(--booking-navy), #0b3c75);
  box-shadow: 0 7px 16px rgba(8, 38, 80, 0.22);
}

.booking-public .line {
  height: 1px;
  min-width: 12px;
  background: #d9e3ef;
  opacity: 1;
}

/* ---------- Main two-column layout ---------- */

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.booking-stage {
  min-width: 0;
}

.booking-public .card,
.booking-public .card.step-panel.active {
  margin: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--booking-border);
  border-radius: 17px;
  color: var(--booking-ink);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--booking-shadow);
  backdrop-filter: none;
}

.booking-panel-head {
  margin-bottom: 25px;
}

.booking-panel-head h2 {
  margin: 5px 0 5px;
  color: var(--booking-ink);
  font-size: clamp(25px, 3.2vw, 35px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.booking-panel-head p {
  margin: 0;
  color: var(--booking-muted);
  font-size: 15px;
  line-height: 1.45;
}

.booking-public .label,
.booking-public .block-title {
  color: var(--booking-ink);
  font-size: 13px;
  font-weight: 800;
}

.booking-public .input,
.booking-public .date-native {
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #cbd9ea;
  border-radius: 10px;
  color: var(--booking-ink);
  background: #fff;
  box-shadow: inset 0 1px 2px rgba(18, 48, 87, 0.02);
}

.booking-public .input::placeholder {
  color: #8a9bb5;
}

.booking-public .input:focus {
  border-color: var(--booking-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 117, 239, 0.12);
  transform: none;
}

.booking-public textarea.input {
  min-height: 98px;
}

.booking-public .hint,
.booking-public .terms-hint {
  color: var(--booking-muted);
  font-size: 12px;
}

.booking-public .grid-2,
.booking-public .split {
  gap: 16px;
}

.booking-public .block {
  padding: 18px;
  border: 1px solid var(--booking-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
}

.booking-public .choice,
.booking-public .option-card,
.booking-public .selected-slot-card,
.booking-public .summary,
.booking-public .terms-box,
.booking-public .total-box,
.booking-public .code-toggle {
  border: 1px solid var(--booking-border) !important;
  border-radius: 11px !important;
  color: var(--booking-ink) !important;
  background: #fff !important;
  box-shadow: none !important;
}

.booking-public .choice {
  min-height: 56px;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.booking-public .choice:hover {
  border-color: #9bbce6 !important;
  background: #f8fbff !important;
  transform: translateY(-1px);
}

.booking-public .choice.selected,
.booking-public .choice:has(input:checked),
.booking-public .option-card.selected {
  border-color: var(--booking-blue) !important;
  background: var(--booking-blue-soft) !important;
  box-shadow: 0 0 0 2px rgba(8, 117, 239, 0.08) !important;
}

.booking-public .choice-main,
.booking-public .choice-price {
  color: var(--booking-ink);
}

.booking-public .choice-price {
  color: var(--booking-blue);
}

.booking-public .actions {
  margin-top: 25px;
  gap: 10px;
}

.booking-public .btn,
.booking-account .btn {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid #ccd9e8;
  border-radius: 10px;
  color: var(--booking-navy);
  background: #fff;
  box-shadow: none;
  font-weight: 800;
}

.booking-public .btn:hover,
.booking-account .btn:hover {
  border-color: #9ab3d0;
  background: #f7faff;
  box-shadow: none;
  transform: translateY(-1px);
}

.booking-public .btn.primary,
.booking-account .btn.primary {
  border-color: var(--booking-navy);
  color: #fff;
  background: linear-gradient(135deg, var(--booking-navy), #0a3a73);
  box-shadow: 0 10px 22px rgba(8, 38, 80, 0.17);
}

.booking-public .btn.primary::after,
.booking-account .rdv-actions .btn.primary:last-child::after {
  content: " →";
  margin-left: 7px;
}

.booking-public .btn.primary:hover,
.booking-account .btn.primary:hover {
  border-color: #0b4488;
  background: linear-gradient(135deg, #0a3266, #0c4a92);
  box-shadow: 0 13px 26px rgba(8, 38, 80, 0.2);
}

.booking-public .slot-chip-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
}

.booking-public .slot-chip-list li {
  min-height: 47px;
  border: 1px solid var(--booking-border) !important;
  border-radius: 9px !important;
  color: var(--booking-ink) !important;
  background: #fff !important;
}

.booking-public .slot-chip-list li.active {
  border-color: var(--booking-blue) !important;
  color: var(--booking-blue) !important;
  background: var(--booking-blue-soft) !important;
  box-shadow: inset 0 0 0 1px var(--booking-blue) !important;
}

.booking-public .pay-total {
  border: 1px solid #bdd8f7;
  border-radius: 12px;
  color: var(--booking-ink);
  background: var(--booking-blue-soft);
  box-shadow: none;
}

.booking-public .pay-total b,
.booking-public #finalTotal {
  color: var(--booking-blue);
}

/* ---------- Persistent summary ---------- */

.booking-summary {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 13px;
}

.booking-summary-card {
  padding: 18px 16px 10px;
  border: 1px solid var(--booking-border);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--booking-shadow);
}

.booking-summary-card h2 {
  margin: 0 4px 11px;
  color: var(--booking-ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.booking-summary-list {
  display: grid;
}

.booking-summary-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 65px;
  padding: 10px 3px;
  border-top: 1px solid #e5ecf4;
}

.booking-summary-icon {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: var(--booking-blue);
  background: var(--booking-blue-soft);
  font-size: 9px;
  font-weight: 900;
}

.booking-summary-item > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.booking-summary-item small {
  color: var(--booking-muted);
  font-size: 11px;
}

.booking-summary-item strong {
  overflow: hidden;
  color: var(--booking-ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.booking-summary-item button {
  appearance: none;
  padding: 2px;
  border: 0;
  color: var(--booking-blue);
  background: transparent;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  text-decoration: underline;
}

.booking-trust-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid #cde3fb;
  border-radius: 15px;
  background: linear-gradient(135deg, #edf7ff, #f6fbff);
}

.booking-trust-icon {
  width: 35px;
  height: 35px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 35px;
  border: 2px solid var(--booking-blue);
  border-radius: 12px 12px 15px 15px;
  color: var(--booking-blue);
  font-weight: 900;
}

.booking-trust-card > span:last-child {
  display: grid;
  gap: 3px;
}

.booking-trust-card strong {
  font-size: 12px;
  line-height: 1.25;
}

.booking-trust-card small {
  color: var(--booking-muted);
  font-size: 10px;
}

/* ---------- Account booking page ---------- */

.booking-account .app-main {
  background:
    radial-gradient(circle at 90% 0, rgba(8, 117, 239, 0.07), transparent 28rem),
    var(--booking-canvas);
}

.booking-account .app-topbar {
  border-bottom: 1px solid var(--booking-border);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 20px rgba(31, 65, 107, 0.04);
}

.booking-account .app-content {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 32px clamp(18px, 2.5vw, 38px) 64px;
}

.booking-account .app-header {
  margin-bottom: 21px;
}

.booking-account .app-header .app-section-title {
  margin: 5px 0 5px;
  color: var(--booking-ink);
  font-size: clamp(29px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.booking-account .app-header .app-section-subtitle {
  max-width: 720px;
  color: var(--booking-muted);
  font-size: 15px;
}

.booking-account .rdv-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 0 0 22px;
  padding: 15px 18px;
  border: 1px solid var(--booking-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 9px 28px rgba(35, 70, 117, 0.055);
}

.booking-account .rdv-step-circle {
  position: relative;
  display: flex;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--booking-muted);
  background: transparent;
}

.booking-account .rdv-step-circle::after {
  left: 36px;
  right: 12px;
  top: 15px;
  width: auto;
  height: 1px;
  background: #dbe4ef;
}

.booking-account .rdv-step-index {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  color: #647794;
  background: #edf2f8;
  font-size: 12px;
}

.booking-account .rdv-step-circle.active {
  color: var(--booking-ink);
  background: transparent;
}

.booking-account .rdv-step-circle.active .rdv-step-index {
  color: #fff;
  background: var(--booking-navy);
  box-shadow: 0 7px 16px rgba(8, 38, 80, 0.2);
}

.booking-account .rdv-step-label {
  padding-top: 7px;
  font-size: 12px;
  font-weight: 750;
}

.booking-account .rdv-panel.card,
.booking-account .rdv-success-card {
  margin-top: 0;
  padding: clamp(22px, 3.6vw, 36px);
  border: 1px solid var(--booking-border);
  border-radius: 17px;
  background: #fff;
  box-shadow: var(--booking-shadow);
}

.booking-account .rdv-panel .card-header {
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e3ebf4;
}

.booking-account .rdv-panel .card-title {
  color: var(--booking-ink);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.booking-account .rdv-panel .card-subtitle {
  margin-top: 5px;
  color: var(--booking-muted);
  font-size: 14px;
}

.booking-account .rdv-section-title,
.booking-account .label {
  color: var(--booking-ink);
  font-weight: 800;
}

.booking-account .input,
.booking-account .profile-input {
  min-height: 48px;
  border: 1px solid #cbd9ea;
  border-radius: 10px;
  color: var(--booking-ink);
  background: #fff;
}

.booking-account .input:focus,
.booking-account .profile-input:focus {
  border-color: var(--booking-blue);
  box-shadow: 0 0 0 3px rgba(8, 117, 239, 0.12);
  outline: none;
}

.booking-account .rdv-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.booking-account .rdv-choice-list .choice {
  min-height: 62px;
  border: 1px solid var(--booking-border);
  border-radius: 11px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(30, 65, 108, 0.035);
}

.booking-account .rdv-choice-list .choice:hover,
.booking-account .rdv-choice-list .choice:has(input:checked) {
  border-color: var(--booking-blue);
  background: var(--booking-blue-soft);
  box-shadow: 0 0 0 2px rgba(8, 117, 239, 0.07);
}

.booking-account .rdv-choice-list .choice input[type="radio"],
.booking-account .rdv-choice-list .choice input[type="checkbox"] {
  border-color: #9bb0c9;
}

.booking-account .rdv-choice-list .choice input[type="radio"]:checked,
.booking-account .rdv-choice-list .choice input[type="checkbox"]:checked {
  border-color: var(--booking-blue);
  background: var(--booking-blue);
}

.booking-account .rdv-total-box {
  padding: 16px 18px;
  border: 1px solid #c9ddf5;
  border-radius: 12px;
  background: #f2f8ff;
}

.booking-account .rdv-total-box strong {
  color: var(--booking-blue);
  font-size: 22px;
}

.booking-account .rdv-checkout-section {
  border: 1px solid var(--booking-border);
  border-radius: 13px;
  background: #fff;
  box-shadow: none;
}

.booking-account .rdv-checkout-section-number {
  color: #fff;
  background: var(--booking-blue);
}

.booking-account .rdv-time-chip-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(86px, 1fr));
}

.booking-account .rdv-time-chip-list li {
  border-radius: 9px;
  background: #fff;
}

.booking-account .rdv-time-chip-list li.active {
  border-color: var(--booking-blue);
  color: var(--booking-blue);
  background: var(--booking-blue-soft);
}

/* ---------- Responsive ---------- */

@media (max-width: 1050px) {
  .booking-public .page {
    padding-inline: 20px;
  }

  .booking-layout {
    grid-template-columns: minmax(0, 1fr) 285px;
    gap: 18px;
  }

  .booking-public .step-label {
    display: none;
  }
}

@media (max-width: 820px) {
  .booking-topbar {
    min-height: 70px;
    margin-bottom: 7px;
  }

  .booking-brand {
    font-size: 27px;
  }

  .booking-tagline,
  .booking-promise {
    display: none;
  }

  .booking-public .back-btn {
    position: static;
    width: 39px;
    height: 39px;
    margin: 0 0 12px;
  }

  .booking-layout {
    grid-template-columns: 1fr;
  }

  .booking-summary {
    position: static;
    order: 2;
  }

  .booking-summary-card {
    display: none;
  }

  .booking-account .rdv-choice-list {
    grid-template-columns: 1fr;
  }

  .booking-account .rdv-time-chip-list {
    grid-template-columns: repeat(2, minmax(86px, 1fr));
  }
}

@media (max-width: 600px) {
  .booking-public .page {
    padding: 0 12px 34px;
  }

  .booking-public .rdv-heading {
    margin-bottom: 16px;
  }

  .booking-public .main-title {
    font-size: 30px;
  }

  .booking-public .steps {
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
    padding: 10px 8px 18px;
    border-radius: 13px;
  }

  .booking-public .step {
    position: relative;
    justify-content: center;
  }

  .booking-public .step::after {
    content: "";
    position: absolute;
    left: calc(50% + 16px);
    right: calc(-50% + 16px);
    top: 15px;
    height: 2px;
    background: #dce5ef;
  }

  .booking-public .step:last-child::after {
    display: none;
  }

  .booking-public .step.active::after {
    background: linear-gradient(90deg, var(--booking-blue), #dce5ef);
  }

  .booking-public .step-index {
    position: relative;
    z-index: 1;
    width: 30px;
    height: 30px;
    flex-basis: 30px;
  }

  .booking-public .step-label,
  .booking-public .line {
    display: none;
  }

  .booking-public .step.active .step-label {
    position: absolute;
    top: 34px;
    left: 50%;
    display: block;
    max-width: 80px;
    color: var(--booking-navy);
    font-size: 9px;
    transform: translateX(-50%);
  }

  .booking-public .card,
  .booking-public .card.step-panel.active,
  .booking-account .rdv-panel.card {
    padding: 20px 15px;
    border-radius: 14px;
  }

  .booking-panel-head {
    margin-bottom: 20px;
  }

  .booking-panel-head h2 {
    font-size: 25px;
  }

  .booking-public .grid-2,
  .booking-public .split {
    grid-template-columns: 1fr;
  }

  .booking-public .actions,
  .booking-account .rdv-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .booking-public .actions .btn,
  .booking-account .rdv-actions .btn {
    width: 100%;
  }

  .booking-public .actions .btn.primary,
  .booking-account .rdv-actions .btn.primary {
    order: -1;
  }

  .booking-trust-card {
    padding: 13px;
  }

  .booking-account .app-content {
    padding: 22px 12px 42px;
  }

  .booking-account .rdv-steps {
    padding: 12px 9px;
  }

  .booking-account .rdv-step-circle {
    justify-content: center;
  }

  .booking-account .rdv-step-circle::after {
    left: calc(50% + 18px);
    right: calc(-50% + 18px);
  }

  .booking-account .rdv-step-label {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .booking-redesign *,
  .booking-redesign *::before,
  .booking-redesign *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =========================================================
   MyScale marketplace booking flow
   Six-step building-services journey shared by both pages.
   ========================================================= */

.marketplace-booking-mount { display: none; }

.booking-marketplace-ready .marketplace-booking-mount { display: block; }
.booking-public.booking-marketplace-ready > .page { display: none !important; }
.booking-account.booking-marketplace-ready .app-content > :not(#marketplaceBookingApp) { display: none !important; }

.marketplace-booking-shell {
  width: min(100%, 1240px);
  margin: 0 auto;
  padding: 0 28px 64px;
  color: var(--booking-ink);
}

.booking-account .marketplace-booking-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 50px;
}

.marketplace-topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 44px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(211, 224, 239, 0.75);
}

.booking-account .marketplace-topbar { display: none; }

.marketplace-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--booking-navy);
  text-decoration: none;
}

.marketplace-wordmark > span {
  position: relative;
  width: 34px;
  height: 28px;
  border: 7px solid var(--booking-blue);
  border-top: 0;
  border-radius: 3px 3px 7px 7px;
}

.marketplace-wordmark > span::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: -1px;
  top: -10px;
  border-left: 7px solid var(--booking-navy);
  border-top: 7px solid var(--booking-navy);
  border-radius: 3px 0 0;
  transform: rotate(45deg);
}

.marketplace-wordmark strong {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.marketplace-topbar nav {
  display: flex;
  gap: 30px;
}

.marketplace-topbar nav a {
  color: #263f63;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.marketplace-topbar nav a:hover { color: var(--booking-blue); }

.marketplace-topbar > p {
  margin: 0 0 0 auto;
  color: #34577f;
  font-size: 14px;
  font-weight: 650;
}

.marketplace-stepper {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 22px;
  padding: 14px 16px;
  border: 1px solid var(--booking-border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 10px 30px rgba(25, 61, 106, 0.05);
}

.marketplace-step {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  color: #627795;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.marketplace-step::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 38px;
  right: 9px;
  top: 16px;
  height: 1px;
  background: #dbe5f0;
}

.marketplace-step:last-child::after { display: none; }
.marketplace-step:disabled { cursor: default; }

.marketplace-step-dot {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  border-radius: 50%;
  color: #617692;
  background: #ecf1f7;
  font-size: 11px;
  font-weight: 900;
}

.marketplace-step > span:last-child {
  position: relative;
  z-index: 1;
  padding-right: 8px;
  background: #fff;
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}

.marketplace-step.is-active { color: var(--booking-ink); }
.marketplace-step.is-active .marketplace-step-dot,
.marketplace-step.is-complete .marketplace-step-dot {
  color: #fff;
  background: var(--booking-navy);
  box-shadow: 0 7px 18px rgba(8, 38, 80, 0.2);
}
.marketplace-step.is-complete::after { background: var(--booking-blue); }

.marketplace-booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 24px;
  align-items: start;
}

.marketplace-panel {
  min-width: 0;
  padding: clamp(24px, 3.2vw, 38px);
  border: 1px solid var(--booking-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--booking-shadow);
}

.marketplace-panel-head { margin-bottom: 24px; }
.marketplace-panel-head > span {
  display: none;
  color: var(--booking-blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.marketplace-panel-head h1 {
  margin: 0 0 5px;
  color: var(--booking-ink);
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.marketplace-panel-head p {
  margin: 0;
  color: var(--booking-muted);
  font-size: 15px;
}

.marketplace-search {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #cbd9e9;
  border-radius: 10px;
  color: #6a7f9c;
  background: #fff;
}
.marketplace-search:focus-within {
  border-color: var(--booking-blue);
  box-shadow: 0 0 0 3px rgba(8, 117, 239, 0.1);
}
.marketplace-search > .marketplace-ui-icon { width: 21px; height: 21px; flex: 0 0 21px; }
.marketplace-search input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--booking-ink);
  background: transparent;
}

.marketplace-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 25px 0 11px;
}
.marketplace-section-title h2,
.marketplace-upload h2,
.marketplace-section-divider h2 {
  margin: 0;
  color: var(--booking-ink);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.marketplace-section-title > span { color: var(--booking-blue); font-size: 12px; font-weight: 750; }
.marketplace-section-count { display: inline-flex; align-items: center; gap: 5px; }
.marketplace-section-count .marketplace-ui-icon { width: 17px; height: 17px; }
.marketplace-trade-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  max-height: 303px;
  overflow: auto;
  padding: 2px 4px 4px 2px;
  scrollbar-width: thin;
}

.marketplace-trade-card {
  position: relative;
  min-height: 94px;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 0 9px;
  padding: 14px;
  border: 1px solid var(--booking-border);
  border-radius: 11px;
  color: var(--booking-ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: 0.16s ease;
}
.marketplace-trade-card:hover { border-color: #9bbce4; transform: translateY(-1px); }
.marketplace-trade-card.is-selected {
  border-color: var(--booking-blue);
  background: var(--booking-blue-soft);
  box-shadow: inset 0 0 0 1px var(--booking-blue);
}
.marketplace-trade-icon {
  grid-row: 1 / 3;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #e0e9f3;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fbff, #eaf2fb);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.marketplace-trade-icon img {
  width: 92%;
  height: 92%;
  display: block;
  object-fit: contain;
  filter: saturate(.94) contrast(1.03);
}
.marketplace-trade-card:hover .marketplace-trade-icon { transform: scale(1.05); box-shadow: 0 7px 18px rgba(8, 70, 139, .11); }
.marketplace-trade-card.is-selected .marketplace-trade-icon { border-color: #bbdafb; background: #dcecff; }
.marketplace-all-trades-card {
  border-style: dashed;
  border-color: #a9c8ea;
  color: var(--booking-blue);
  background: linear-gradient(145deg, #f9fcff, #eef6ff);
}
.marketplace-all-trades-card:hover {
  border-color: var(--booking-blue);
  background: #eaf4ff;
}
.marketplace-all-trades-icon {
  color: var(--booking-blue);
  border-color: #c5def8;
  background: #fff;
}
.marketplace-all-trades-icon .marketplace-ui-icon { width: 29px; height: 29px; }
.marketplace-all-trades-card small { color: #54749b; }
.marketplace-trade-card strong { align-self: end; font-size: 12px; line-height: 1.25; }
.marketplace-trade-card small { align-self: start; color: var(--booking-muted); font-size: 10px; }
.marketplace-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 19px;
  height: 19px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--booking-blue);
  font-size: 10px;
}
.is-selected > .marketplace-check { display: inline-flex; }

.marketplace-services {
  margin-top: 22px;
  padding-top: 1px;
  border-top: 1px solid #e1e9f2;
}
.marketplace-services.is-empty > p { color: var(--booking-muted); font-size: 13px; }
.marketplace-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.marketplace-service-card {
  position: relative;
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--booking-border);
  border-radius: 10px;
  color: var(--booking-ink);
  background: #fff;
  cursor: pointer;
  text-align: left;
}
.marketplace-service-card:hover { border-color: #9bbce4; }
.marketplace-service-card.is-selected { border-color: var(--booking-blue); background: var(--booking-blue-soft); box-shadow: inset 0 0 0 1px var(--booking-blue); }
.marketplace-service-card > span:first-child { display: grid; gap: 3px; padding-right: 22px; }
.marketplace-service-card strong { font-size: 12px; }
.marketplace-service-card small { color: var(--booking-muted); font-size: 10px; }

.marketplace-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}
.marketplace-next,
.marketplace-back {
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 800;
}
.marketplace-next { min-width: 188px; border: 1px solid var(--booking-navy); color: #fff; background: linear-gradient(135deg, var(--booking-navy), #0a3b74); box-shadow: 0 10px 22px rgba(8,38,80,.15); }
.marketplace-next span { margin-left: 8px; }
.marketplace-next:disabled { border-color: #bdc8d7; color: #fff; background: #bdc8d7; box-shadow: none; cursor: not-allowed; }
.marketplace-back { border: 1px solid var(--booking-border); color: var(--booking-navy); background: #fff; }

.marketplace-summary { position: sticky; top: 18px; display: grid; gap: 13px; }
.marketplace-summary-card,
.marketplace-final-summary,
.marketplace-payment-card {
  padding: 18px 16px 10px;
  border: 1px solid var(--booking-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--booking-shadow);
}
.marketplace-summary-card > h2,
.marketplace-final-summary h2,
.marketplace-payment-card h2 {
  margin: 0 4px 10px;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.marketplace-summary-row {
  display: grid;
  grid-template-columns: 29px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  min-height: 58px;
  padding: 9px 3px;
  border-top: 1px solid #e5ecf4;
}
.marketplace-summary-row-icon { display: inline-flex; align-items: center; justify-content: center; color: var(--booking-blue); text-align: center; }
.marketplace-summary-row-icon .marketplace-ui-icon { width: 22px; height: 22px; }
.marketplace-summary-trade-image {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  background: #edf5fd;
}
.marketplace-summary-trade-image img { width: 94%; height: 94%; display: block; object-fit: contain; }
.marketplace-summary-copy { min-width: 0; display: grid; gap: 2px; }
.marketplace-summary-copy small { color: var(--booking-muted); font-size: 10px; }
.marketplace-summary-copy strong { overflow: hidden; font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.marketplace-summary-row > button,
.marketplace-final-summary header button { padding: 0; border: 0; color: var(--booking-blue); background: transparent; cursor: pointer; font-size: 10px; text-decoration: underline; }
.marketplace-assurance,
.marketplace-zone-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid #cde3fb;
  border-radius: 14px;
  background: linear-gradient(135deg, #edf7ff, #f8fcff);
}
.marketplace-assurance > .marketplace-ui-icon { width: 36px; height: 36px; flex: 0 0 36px; color: var(--booking-blue); }
.marketplace-assurance div,
.marketplace-zone-card div { display: grid; gap: 3px; }
.marketplace-assurance strong,
.marketplace-zone-card strong { font-size: 11px; line-height: 1.25; }
.marketplace-assurance small,
.marketplace-zone-card small { color: var(--booking-muted); font-size: 10px; }

.marketplace-form-stack { display: grid; gap: 14px; }
.marketplace-field { display: grid; gap: 6px; color: var(--booking-ink); font-size: 12px; font-weight: 750; }
.marketplace-field > span small { color: var(--booking-muted); font-weight: 500; }
.marketplace-field b { color: #dc4964; }
.marketplace-field input,
.marketplace-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cad8e8;
  border-radius: 9px;
  outline: none;
  color: var(--booking-ink);
  background: #fff;
}
.marketplace-field textarea { min-height: 96px; resize: vertical; }
.marketplace-field input:focus,
.marketplace-field textarea:focus { border-color: var(--booking-blue); box-shadow: 0 0 0 3px rgba(8,117,239,.1); }
.marketplace-inline-error {
  margin-top: 13px;
  padding: 11px 13px;
  border: 1px solid #f0c8ce;
  border-radius: 9px;
  color: #9d2940;
  background: #fff6f7;
  font-size: 11px;
  line-height: 1.45;
}
.marketplace-map-placeholder {
  position: relative;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 17px;
  border: 1px solid var(--booking-border);
  border-radius: 12px;
  color: var(--booking-navy);
  background: #edf4f9;
}
.marketplace-map-grid { position: absolute; inset: -30px; opacity: .55; background-image: linear-gradient(33deg, transparent 48%, #fff 49%, #fff 51%, transparent 52%), linear-gradient(117deg, transparent 48%, #fff 49%, #fff 51%, transparent 52%), repeating-linear-gradient(0deg, transparent 0 44px, rgba(142,177,196,.22) 45px 47px); background-size: 120px 100px, 140px 130px, 100% 47px; }
.marketplace-map-pin { position: relative; z-index: 1; width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; margin-right: 12px; border-radius: 50%; color: #fff; background: var(--booking-blue); box-shadow: 0 0 0 18px rgba(8,117,239,.12); }
.marketplace-map-pin .marketplace-ui-icon { width: 29px; height: 29px; }
.marketplace-map-placeholder > strong { position: relative; z-index: 1; max-width: 50%; padding: 8px 12px; border-radius: 8px; background: rgba(255,255,255,.9); font-size: 12px; }
.marketplace-zone-card { margin-top: 14px; }
.marketplace-zone-card > .marketplace-ui-icon { width: 29px; height: 29px; flex: 0 0 29px; color: var(--booking-blue); }

.marketplace-pro-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 48px auto; gap: 10px; align-items: center; }
.marketplace-pro-toolbar > span { color: var(--booking-muted); font-size: 11px; font-weight: 700; }
.marketplace-filter-button {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd9e9;
  border-radius: 10px;
  color: var(--booking-navy);
  background: #fff;
  cursor: pointer;
}
.marketplace-filter-button:hover { border-color: var(--booking-blue); color: var(--booking-blue); background: #f4f9ff; }
.marketplace-filter-button .marketplace-ui-icon { width: 22px; height: 22px; }
.marketplace-professionals { display: grid; gap: 11px; margin-top: 15px; }
.marketplace-pro-card {
  position: relative;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--booking-border);
  border-radius: 12px;
  background: #fff;
}
.marketplace-pro-card.is-selected { border-color: var(--booking-blue); background: #f2f8ff; box-shadow: inset 0 0 0 1px var(--booking-blue); }
.marketplace-pro-logo { width: 68px; height: 68px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #dce5ef; border-radius: 50%; color: var(--booking-navy); background: #eef4fa; font-weight: 900; }
.marketplace-pro-logo img { width: 100%; height: 100%; object-fit: cover; }
.marketplace-pro-info h3 { margin: 0 0 3px; font-size: 17px; }
.marketplace-rating { color: var(--booking-ink); font-size: 12px; font-weight: 800; }
.marketplace-rating > span { color: #ffb000; }
.marketplace-rating small,
.marketplace-pro-location { color: var(--booking-muted); font-size: 10px; font-weight: 600; }
.marketplace-pro-location { margin-top: 4px; display: flex; align-items: center; gap: 3px; }
.marketplace-pro-location .marketplace-ui-icon { width: 12px; height: 12px; color: var(--booking-blue); }
.marketplace-pro-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.marketplace-pro-tags span { padding: 4px 7px; border-radius: 999px; color: #486582; background: #edf3f9; font-size: 9px; }
.marketplace-pro-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; min-width: 190px; }
.marketplace-pro-actions a,
.marketplace-pro-actions button { min-height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 12px; border-radius: 8px; font-size: 11px; font-weight: 800; text-decoration: none; }
.marketplace-pro-actions a { border: 1px solid var(--booking-blue); color: var(--booking-blue); background: #fff; }
.marketplace-pro-actions button { border: 1px solid var(--booking-navy); color: #fff; background: var(--booking-navy); cursor: pointer; }
.marketplace-pro-selected { position: absolute; top: 9px; right: 9px; display: none; width: 20px; height: 20px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--booking-blue); font-size: 10px; }
.marketplace-pro-card.is-selected .marketplace-pro-selected { display: flex; }
.marketplace-loading,
.marketplace-empty { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 25px; border: 1px dashed #cbd9e8; border-radius: 12px; color: var(--booking-muted); background: #f8fbfe; text-align: center; }
.marketplace-empty strong { color: var(--booking-ink); }
.marketplace-empty span { font-size: 12px; }

.marketplace-schedule-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr); gap: 18px; padding: 18px; border: 1px solid var(--booking-border); border-radius: 13px; }
.marketplace-calendar { padding: 5px 12px 12px; border: 1px solid #e0e8f1; border-radius: 11px; }
.marketplace-calendar header { min-height: 52px; display: flex; align-items: center; justify-content: space-between; text-transform: capitalize; }
.marketplace-calendar header button { width: 36px; height: 36px; border: 0; border-radius: 50%; color: var(--booking-blue); background: transparent; cursor: pointer; font-size: 24px; }
.marketplace-calendar header button:hover:not(:disabled) { background: #edf6ff; }
.marketplace-calendar header button:disabled { color: #b8c6d7; cursor: default; }
.marketplace-calendar-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-bottom: 8px; color: #527093; font-size: 10px; text-align: center; }
.marketplace-calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.marketplace-calendar-empty { aspect-ratio: 1; }
.marketplace-calendar-days button { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 0; border-radius: 8px; color: var(--booking-ink); background: #f7faff; cursor: pointer; }
.marketplace-calendar-days button:hover:not(:disabled) { color: var(--booking-blue); background: #eaf4ff; }
.marketplace-calendar-days button:disabled { color: #b6c2d1; background: #fbfcfe; cursor: default; }
.marketplace-calendar-days button.is-closed {
  color: #a5afbc;
  background: repeating-linear-gradient(-45deg, #f1f3f6 0 5px, #e8ebef 5px 10px);
  box-shadow: inset 0 0 0 1px #e0e4e9;
}
.marketplace-calendar-days button.is-today:not(.is-selected) { box-shadow: inset 0 0 0 1px #9fc7f3; }
.marketplace-calendar-days button small { color: var(--booking-muted); font-size: 8px; text-transform: capitalize; }
.marketplace-calendar-days button strong { font-size: 12px; }
.marketplace-calendar-days button.is-selected { color: #fff; background: var(--booking-blue); box-shadow: 0 6px 14px rgba(8,117,239,.25); }
.marketplace-calendar-days button.is-selected small { color: #dcecff; }
.marketplace-calendar-legend { display: flex; align-items: center; gap: 6px; margin: 11px 0 0; color: var(--booking-muted); font-size: 9px; }
.marketplace-calendar-legend span { width: 13px; height: 13px; border: 1px solid #dce1e7; border-radius: 4px; background: repeating-linear-gradient(-45deg, #f1f3f6 0 3px, #e8ebef 3px 6px); }
.marketplace-slots { padding: 4px 0; }
.marketplace-slots h2 { margin: 0 0 20px; font-size: 18px; text-transform: capitalize; }
.marketplace-slots h3 { margin: 0; font-size: 13px; }
.marketplace-slots h3 small { display: block; margin-top: 2px; color: var(--booking-muted); font-size: 9px; font-weight: 650; }
.marketplace-slots-heading { min-height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 9px; }
.marketplace-slot-expand {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid #bfd5ed;
  border-radius: 9px;
  color: var(--booking-blue);
  background: #f3f8ff;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
}
.marketplace-slot-expand:hover { border-color: var(--booking-blue); background: #e8f3ff; }
.marketplace-slot-expand .marketplace-ui-icon { width: 20px; height: 20px; }
.marketplace-clock-hour,
.marketplace-clock-minute { transform-box: view-box; transform-origin: 12px 12px; }
.marketplace-slot-expand:hover .marketplace-clock-hour { animation: marketplace-clock-hour .6s cubic-bezier(.4,0,.2,1); }
.marketplace-slot-expand:hover .marketplace-clock-minute { animation: marketplace-clock-minute .5s ease-in-out; }
.marketplace-slot-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.marketplace-slots > .marketplace-slots-status {
  min-height: 105px;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-template-columns: 1fr;
  padding: 16px;
  border: 1px dashed #cad8e8;
  border-radius: 9px;
  color: var(--booking-muted);
  background: #f8fbfe;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
}
.marketplace-slot-grid > button { position: relative; min-height: 49px; border: 1px solid var(--booking-border); border-radius: 9px; color: var(--booking-ink); background: #fff; cursor: pointer; font-weight: 800; }
.marketplace-slot-grid > button > span { position: absolute; top: 5px; right: 5px; display: none; width: 17px; height: 17px; align-items: center; justify-content: center; border-radius: 50%; color: #fff; background: var(--booking-blue); font-size: 8px; }
.marketplace-slot-grid > button.is-selected { border-color: var(--booking-blue); color: var(--booking-blue); background: var(--booking-blue-soft); box-shadow: inset 0 0 0 1px var(--booking-blue); }
.marketplace-slot-grid > button.is-selected > span { display: flex; }
.marketplace-slots p { margin: 18px 0 0; color: var(--booking-muted); font-size: 10px; }
.marketplace-slots p span { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: var(--booking-success); }

@keyframes marketplace-clock-hour { to { transform: rotate(360deg); } }
@keyframes marketplace-clock-minute { to { transform: rotate(45deg); } }

.marketplace-contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 18px; }
.marketplace-section-divider { margin: 25px 0 14px; padding-top: 18px; border-top: 1px solid #e2eaf3; }
.marketplace-field-wide { margin-top: 15px; }
.marketplace-upload { margin-top: 22px; padding-top: 18px; border-top: 1px solid #e2eaf3; }
.marketplace-upload h2 small { color: var(--booking-muted); font-weight: 500; }
.marketplace-upload p { margin: 4px 0 12px; color: var(--booking-muted); font-size: 11px; }
.marketplace-upload > label { width: 150px; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px dashed var(--booking-blue); border-radius: 10px; color: var(--booking-blue); background: #f7fbff; cursor: pointer; font-size: 10px; }
.marketplace-upload > label .marketplace-ui-icon { width: 27px; height: 27px; }
.marketplace-upload-arrow { transform-origin: center; transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.marketplace-upload > label:hover .marketplace-upload-arrow { transform: translateY(-2px); }
.marketplace-upload input { display: none; }
.marketplace-photo-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.marketplace-photo-preview {
  position: relative;
  width: 116px;
  overflow: hidden;
  margin: 0;
  border: 1px solid #d5e1ee;
  border-radius: 10px;
  background: #f5f8fc;
  box-shadow: 0 5px 15px rgba(10, 48, 91, .08);
}
.marketplace-photo-preview img,
.marketplace-photo-preview > span {
  width: 100%;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  color: var(--booking-blue);
  background: #eaf3fc;
}
.marketplace-photo-preview > span .marketplace-ui-icon { width: 28px; height: 28px; }
.marketplace-photo-preview figcaption {
  overflow: hidden;
  padding: 7px 8px;
  color: #4e6683;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.marketplace-photo-preview > button {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 23px;
  height: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(8, 32, 63, .12);
  border-radius: 50%;
  color: var(--booking-navy);
  background: rgba(255,255,255,.94);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 2px 7px rgba(8, 32, 63, .16);
}
.marketplace-photo-preview > button:hover { color: #fff; background: #d8465d; }

.marketplace-booking-layout:has(.marketplace-final-grid) { grid-template-columns: 1fr; }
.marketplace-final-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 18px; }
.marketplace-final-summary { padding: 18px; box-shadow: none; }
.marketplace-final-summary header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.marketplace-final-summary .marketplace-summary-row { min-height: 62px; }
.marketplace-payment-card { padding: 20px; box-shadow: none; }
.marketplace-payment-card > h2 { margin: 0 0 11px; }
.marketplace-request-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.marketplace-request-detail {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid #e0e9f3;
  border-radius: 10px;
  background: #f8fbff;
}
.marketplace-request-detail.is-wide { grid-column: 1 / -1; }
.marketplace-request-detail small { color: var(--booking-muted); font-size: 9px; font-weight: 700; }
.marketplace-request-detail strong { overflow-wrap: anywhere; color: var(--booking-ink); font-size: 11px; line-height: 1.45; }
.marketplace-request-description strong { min-height: 34px; white-space: pre-wrap; }
.marketplace-price-row { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid #e4ebf3; border-bottom: 1px solid #e4ebf3; }
.marketplace-price-row strong { color: var(--booking-blue); font-size: 18px; }
.marketplace-payment-card > p { margin: 10px 0 22px; color: var(--booking-muted); font-size: 11px; line-height: 1.45; }
.marketplace-payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.marketplace-payment-methods button { min-height: 63px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid var(--booking-border); border-radius: 9px; color: var(--booking-ink); background: #fff; cursor: pointer; font-size: 10px; font-weight: 800; }
.marketplace-payment-methods button span { color: var(--booking-navy); font-size: 21px; }
.marketplace-payment-methods button.is-selected { border-color: var(--booking-blue); color: var(--booking-blue); background: var(--booking-blue-soft); box-shadow: inset 0 0 0 1px var(--booking-blue); }
.marketplace-payment-methods button:disabled { cursor: default; opacity: .72; }
.marketplace-final-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.marketplace-confirm { width: 100%; min-height: 49px; margin-top: 18px; border: 0; border-radius: 10px; color: #fff; background: linear-gradient(135deg, var(--booking-navy), #0a3b74); cursor: pointer; font-weight: 800; }
.marketplace-confirm:disabled { cursor: wait; opacity: .72; }
.marketplace-confirm span { margin-left: 10px; }
.marketplace-final-actions .marketplace-confirm {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0;
  padding: 9px 12px;
}
.marketplace-final-actions .marketplace-confirm > span { margin: 0; }
.marketplace-final-actions .marketplace-confirm > .marketplace-ui-icon { width: 24px; height: 24px; flex: 0 0 24px; }
.marketplace-confirm-quote { border: 1px solid var(--booking-blue); color: var(--booking-blue); background: #fff; }
.marketplace-confirm-quote:hover { color: #fff; background: var(--booking-blue); }
.marketplace-confirm-quote b { font-size: 16px; }
.marketplace-payment-card > small { display: block; margin-top: 8px; color: var(--booking-muted); font-size: 9px; text-align: center; }
.marketplace-confirmation-message { margin-top: 10px; color: var(--booking-success); font-size: 11px; line-height: 1.4; text-align: center; }
.marketplace-confirmation-message.is-error { color: #b42843; }
.marketplace-booking-success {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #bfe7d3;
  border-radius: 11px;
  color: #087845;
  background: #effbf5;
}
.marketplace-booking-success > .marketplace-ui-icon { width: 30px; height: 30px; flex: 0 0 30px; }
.marketplace-booking-success > div { display: grid; gap: 3px; }
.marketplace-booking-success strong { font-size: 12px; }
.marketplace-booking-success span { font-size: 10px; line-height: 1.4; }

.marketplace-trades-modal {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.marketplace-trades-modal.is-open { display: flex; }
.marketplace-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 22, 49, .62);
  backdrop-filter: blur(5px);
  cursor: pointer;
}
.marketplace-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(880px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  padding: 22px;
  border: 1px solid rgba(215, 226, 240, .9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(2, 23, 52, .28);
}
.marketplace-modal-dialog > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid #e2eaf3;
}
.marketplace-modal-dialog > header > div { display: grid; grid-template-columns: 32px 1fr; gap: 2px 10px; align-items: center; }
.marketplace-modal-dialog > header > div > span { grid-row: 1 / 3; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; color: var(--booking-blue); background: var(--booking-blue-soft); }
.marketplace-modal-dialog h2 { margin: 0; font-size: 21px; letter-spacing: -.025em; }
.marketplace-modal-dialog p { margin: 0; color: var(--booking-muted); font-size: 11px; }
.marketplace-modal-dialog > header > button { width: 36px; height: 36px; border: 1px solid var(--booking-border); border-radius: 9px; color: var(--booking-navy); background: #fff; cursor: pointer; font-size: 24px; line-height: 1; }
.marketplace-modal-trade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 11px; }
.marketplace-modal-trade-grid .marketplace-empty { grid-column: 1 / -1; }
.marketplace-trade-empty { grid-column: 1 / -1; min-height: 94px; }

/* Inline SVG versions of the supplied Motion icons. Keeping them native avoids
   loading React on the existing HTML/PHP pages while preserving their motion. */
.marketplace-ui-icon {
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}
.marketplace-ui-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.marketplace-ui-icon .marketplace-icon-detail {
  stroke-dasharray: 40;
  stroke-dashoffset: 0;
  transform-origin: center;
  transition: stroke-dashoffset .4s ease, opacity .25s ease, transform .4s ease;
}
:is(.marketplace-search, .marketplace-summary-row, .marketplace-assurance, .marketplace-zone-card, .marketplace-map-pin, .marketplace-pro-card, .marketplace-upload > label):hover .marketplace-icon-detail {
  stroke-dashoffset: 40;
  opacity: .25;
  transform: scale(.72);
  animation: marketplace-icon-draw .48s ease .08s forwards;
}
:is(.marketplace-map-placeholder, .marketplace-zone-card, .marketplace-summary-row, .marketplace-pro-card):hover :is(.marketplace-ui-icon--mapPin, .marketplace-ui-icon--mapPinHouse),
.marketplace-confirm-appointment:hover .marketplace-ui-icon--mapPinHouse {
  animation: marketplace-pin-bounce .5s ease;
}
:is(.marketplace-search, .marketplace-pro-toolbar):hover .marketplace-ui-icon--search {
  animation: marketplace-search-scan .7s ease;
}
.marketplace-ui-icon--grip circle { fill: currentColor; stroke: none; }
:is(.marketplace-section-count, .marketplace-summary-row):hover .marketplace-ui-icon--grip circle {
  animation: marketplace-grip-wave 1.05s ease calc(var(--icon-index) * .055s);
}
:is(.marketplace-all-trades-card, .marketplace-modal-dialog > header):hover .marketplace-ui-icon--grip circle {
  animation: marketplace-grip-wave 1.05s ease calc(var(--icon-index) * .055s);
}
.marketplace-filter-button .marketplace-slider-knobs { transition: transform .34s cubic-bezier(.22,.85,.35,1); transform-origin: center; }
.marketplace-filter-button:hover .marketplace-slider-knobs { transform: translateX(-2px) scaleX(.72); }

@keyframes marketplace-icon-draw {
  from { stroke-dashoffset: 40; opacity: .25; transform: scale(.72); }
  to { stroke-dashoffset: 0; opacity: 1; transform: scale(1); }
}
@keyframes marketplace-pin-bounce {
  0%, 100% { transform: translateY(0); }
  60% { transform: translateY(-5px); }
  82% { transform: translateY(-3px); }
}
@keyframes marketplace-search-scan {
  0%, 100% { transform: translate(0); }
  38% { transform: translateY(-4px); }
  68% { transform: translate(-3px, 0); }
}
@keyframes marketplace-grip-wave {
  0%, 100% { opacity: 1; }
  35%, 75% { opacity: .28; }
}

@media (max-width: 1050px) {
  .marketplace-step > span:last-child { display: none; }
  .marketplace-step::after { left: 34px; right: 4px; }
  .marketplace-booking-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; }
  .marketplace-trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .marketplace-booking-shell { padding: 0 14px 40px; }
  .booking-account .marketplace-booking-shell { padding-inline: 0; }
  .marketplace-topbar { min-height: 68px; }
  .marketplace-wordmark strong { font-size: 26px; }
  .marketplace-topbar nav,
  .marketplace-topbar > p { display: none; }
  .marketplace-booking-layout { grid-template-columns: 1fr; }
  .marketplace-summary { position: static; }
  .marketplace-summary-card { display: none; }
  .marketplace-pro-card { grid-template-columns: 56px minmax(0, 1fr); }
  .marketplace-pro-logo { width: 56px; height: 56px; }
  .marketplace-pro-actions { grid-column: 1 / -1; min-width: 0; }
  .marketplace-modal-trade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .marketplace-booking-shell { padding-inline: 10px; }
  .marketplace-stepper { padding: 10px 7px 18px; border-radius: 13px; }
  .marketplace-step { justify-content: center; }
  .marketplace-step::after { left: calc(50% + 16px); right: calc(-50% + 16px); top: 15px; height: 2px; }
  .marketplace-step-dot { width: 30px; height: 30px; flex-basis: 30px; }
  .marketplace-step.is-active > span:last-child { position: absolute; top: 34px; left: 50%; display: block; padding: 0; color: var(--booking-navy); background: transparent; font-size: 8px; transform: translateX(-50%); }
  .marketplace-panel { padding: 20px 14px; border-radius: 14px; }
  .marketplace-panel-head { margin-bottom: 19px; }
  .marketplace-panel-head > span { display: block; }
  .marketplace-panel-head h1 { margin-top: 5px; font-size: 25px; }
  .marketplace-panel-head p { font-size: 12px; }
  .marketplace-trade-grid { display: flex; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 7px; }
  .marketplace-trade-card { min-width: 138px; grid-template-columns: 1fr; grid-template-rows: 54px auto auto; justify-items: center; text-align: center; }
  .marketplace-trade-icon { grid-row: auto; }
  .marketplace-service-grid { grid-template-columns: 1fr; }
  .marketplace-actions { display: grid; grid-template-columns: 1fr; }
  .marketplace-next,
  .marketplace-back { width: 100%; }
  .marketplace-next { order: -1; }
  .marketplace-map-placeholder { height: 190px; }
  .marketplace-map-placeholder > strong { max-width: 60%; }
  .marketplace-pro-toolbar { grid-template-columns: minmax(0, 1fr) 48px; }
  .marketplace-pro-toolbar > span { grid-column: 1 / -1; text-align: right; }
  .marketplace-pro-card { padding: 12px; gap: 10px; }
  .marketplace-schedule-grid { grid-template-columns: 1fr; padding: 10px; }
  .marketplace-calendar { padding-inline: 6px; }
  .marketplace-calendar-days { gap: 3px; }
  .marketplace-contact-grid,
  .marketplace-final-grid { grid-template-columns: 1fr; }
  .marketplace-request-details,
  .marketplace-final-actions { grid-template-columns: 1fr; }
  .marketplace-assurance { padding: 12px; }
  .marketplace-trades-modal { padding: 10px; align-items: flex-end; }
  .marketplace-modal-dialog { max-height: 88vh; padding: 16px 13px; border-radius: 18px 18px 10px 10px; }
  .marketplace-modal-dialog h2 { font-size: 18px; }
  .marketplace-modal-dialog p { font-size: 10px; }
  .marketplace-modal-trade-grid { grid-template-columns: 1fr 1fr; }
  .marketplace-modal-trade-grid .marketplace-trade-card { min-width: 0; }
}
