/* ==========================================================================
   DeskTrail Booking Workflow — Frontend CSS v4.0
   Color scheme: #ff6b2b (orange) · #061d3a (dark navy) · #fff (white)
   ========================================================================== */

:root {
  --dtbw-orange: #ff6b2b;
  --dtbw-orange-hover: #f45f1d;
  --dtbw-navy: #061d3a;
  --dtbw-muted: #647084;
  --dtbw-line: #dfe4ec;
  --dtbw-chip: #edf2f8;
}

/* --------------------------------------------------------------------------
   Workspace grid
   -------------------------------------------------------------------------- */

.dtbw-workspaces {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}

.dtbw-workspace-card {
  background: #fff;
  border: 1px solid var(--dtbw-line);
  border-radius: 8px;
  box-shadow: 0 8px 22px rgba(7, 28, 58, 0.06);
  color: var(--dtbw-navy);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dtbw-workspace-card:hover {
  box-shadow: 0 14px 32px rgba(7, 28, 58, 0.12);
  transform: translateY(-2px);
}

.dtbw-workspace-image {
  aspect-ratio: 4 / 3;
  background: var(--dtbw-chip);
  overflow: hidden;
  position: relative;
}

.dtbw-workspace-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dtbw-workspace-pills {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  left: 12px;
  position: absolute;
  right: 12px;
  top: 12px;
}

.dtbw-pill {
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(7, 28, 58, 0.12);
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  max-width: 60%;
  padding: 8px 12px;
  white-space: nowrap;
}

.dtbw-pill-light {
  background: #fff;
  color: var(--dtbw-navy);
}

.dtbw-pill-light::before {
  color: var(--dtbw-orange);
  content: "\25CF";
  font-size: 9px;
  margin-right: 6px;
}

.dtbw-pill-orange {
  background: var(--dtbw-orange);
  color: #fff;
}

.dtbw-workspace-body {
  padding: 22px 22px 24px;
}

.dtbw-workspace-body h3 {
  color: var(--dtbw-navy);
  font-size: 20px;
    font-weight: 700;
  line-height: 1.15;
  margin: 0 0 8px;
}

.dtbw-price {
  align-items: baseline;
  color: #263349;
  display: flex;
  flex-wrap: wrap;
  font-size: 15px;
  gap: 5px;
  margin-bottom: 14px;
}

.dtbw-price > strong {
  color: var(--dtbw-navy);
  font-size: 30px;
  /*font-weight: 900;*/
}

.dtbw-price-month {
  margin-left: 12px;
}

.dtbw-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}

.dtbw-tags li {
  background: var(--dtbw-chip);
  border-radius: 999px;
  color: #243249;
  font-size: 12px;
  line-height: 1;
  padding: 8px 12px;
}

.dtbw-book-now {
  appearance: none;
  background: var(--dtbw-orange);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  justify-content: center;
  align-items: center;
  gap: 6px;
  line-height: 1;
  min-height: 46px;
  padding: 13px 24px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  width: 100%;
}

.dtbw-book-now:hover {
  background: var(--dtbw-orange-hover);
  box-shadow: 0 10px 18px rgba(255, 107, 43, 0.28);
  transform: translateY(-1px);
}

.dtbw-empty {
  color: var(--dtbw-muted);
  grid-column: 1 / -1;
}

/* --------------------------------------------------------------------------
   Booking modal (popup)
   -------------------------------------------------------------------------- */

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

.dtbw-modal {
  align-items: center;
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 999999;
}

.dtbw-modal.is-open {
  display: flex;
}

.dtbw-modal__overlay {
  background: rgba(4, 15, 32, 0.72);
  inset: 0;
  position: absolute;
}

.dtbw-modal__dialog {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 28px 80px rgba(4, 15, 32, 0.28);
  max-height: calc(100vh - 40px);
  max-width: 720px;
  overflow: auto;
  position: relative;
  width: min(720px, 100%);
}

.dtbw-modal__header {
  background: var(--dtbw-navy);
  padding: 24px 30px;
  position: relative;
}

.dtbw-modal__logo {
  color: var(--dtbw-orange);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin: 0 0 4px;
}

.dtbw-modal__header h2 {
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 48px 0 0;
}

.dtbw-modal__intro {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin: 6px 0 0;
}

.dtbw-modal__content {
  padding: 28px 30px 30px;
}

.dtbw-modal__close {
  align-items: center;
  appearance: none;
  background: rgba(255,255,255,0.15);
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 22px;
  height: 36px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 16px;
  top: 16px;
  width: 36px;
  transition: background 0.15s;
}

.dtbw-modal__close:hover {
  background: rgba(255,255,255,0.28);
}

/* --------------------------------------------------------------------------
   Booking form
   -------------------------------------------------------------------------- */

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

.dtbw-form label {
  color: var(--dtbw-navy);
  /*display: grid;*/
  font-size: 13px;
  font-weight: 700;
  gap: 7px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.dtbw-form label .dtbw-req {
  color: var(--dtbw-orange);
}

.dtbw-form label small {
  color: var(--dtbw-muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
}

.dtbw-form input,
.dtbw-form textarea {
  background: #fff;
  border: 1.5px solid var(--dtbw-line);
  border-radius: 8px;
  color: var(--dtbw-navy);
  font: inherit;
  font-size: 15px;
  min-height: 46px;
  padding: 11px 14px;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}

.dtbw-form input:focus,
.dtbw-form textarea:focus {
  border-color: var(--dtbw-orange);
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.12);
}

.dtbw-form input[readonly] {
  background: #f5f7fb;
  color: var(--dtbw-muted);
}

.dtbw-form textarea {
  min-height: 100px;
  resize: vertical;
}

.dtbw-form__full,
.dtbw-form__actions,
.dtbw-form__message {
  grid-column: 1 / -1;
}

.dtbw-form__actions {
  margin-top: 4px;
}

.dtbw-submit {
  appearance: none;
  background: var(--dtbw-orange);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  justify-content: center;
  align-items: center;
  line-height: 1;
  min-height: 52px;
  padding: 15px 32px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  width: 100%;
}

.dtbw-submit:hover {
  background: var(--dtbw-orange-hover);
  box-shadow: 0 10px 20px rgba(255, 107, 43, 0.28);
  transform: translateY(-1px);
}

.dtbw-submit:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
  box-shadow: none;
}

.dtbw-form__message {
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  min-height: 0;
  padding: 0;
}

.dtbw-form__message.is-error,
.dtbw-form__message.is-success {
  padding: 12px 16px;
}

.dtbw-form__message.is-error {
  background: #fff2f0;
  color: #9a2a16;
  border: 1px solid #fca5a5;
}

.dtbw-form__message.is-success,
.dtbw-success-message {
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 8px;
  color: #155f32;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 20px;
}

.dtbw-stripe-badge {
  align-items: center;
  color: var(--dtbw-muted);
  display: flex;
  font-size: 12px;
  gap: 6px;
  justify-content: center;
  margin-top: 10px;
}

.dtbw-stripe-badge svg {
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Thank-you section — matches navy hero from screenshot
   The [desktrail_booking_thankyou] shortcode outputs .dtbw-thankyou-wrap.
   The WordPress theme's header and footer wrap around this automatically.
   -------------------------------------------------------------------------- */

.dtbw-thankyou-wrap {
  /* Full-width override so it breaks out of narrow content columns */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  width: 100vw;
}

.dtbw-thankyou {
  background: var(--dtbw-navy);  /* #061d3a — same dark navy as image */
  color: #fff;
  padding: clamp(56px, 10vw, 100px) 24px;
  text-align: center;
}

.dtbw-thankyou__icon {
  font-size: 52px;
  margin-bottom: 20px;
  line-height: 1;
}

.dtbw-thankyou p {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  margin: 0 auto;
  max-width: 820px;
}

.dtbw-thankyou p::after {
  background: var(--dtbw-orange);
  border-radius: 999px;
  content: "";
  display: block;
  height: 5px;
  margin: 24px auto 0;
  width: 80px;
}

.dtbw-thankyou__subtext {
  color: rgba(255, 255, 255, 0.78);
  display: block;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.55;
  margin: 20px auto 0;
  max-width: 640px;
}

.dtbw-thankyou__button {
  background: var(--dtbw-orange);
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(255, 107, 43, 0.4);
  color: #fff;
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  margin-top: 32px;
  min-width: 220px;
  padding: 16px 32px;
  text-decoration: none;
  transition: background 0.18s, box-shadow 0.18s, transform 0.18s;
}

.dtbw-thankyou__button:hover {
  background: var(--dtbw-orange-hover);
  box-shadow: 0 14px 32px rgba(255, 107, 43, 0.5);
  color: #fff;
  transform: translateY(-2px);
}

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

@media (max-width: 900px) {
  .dtbw-workspaces {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .dtbw-workspaces {
    grid-template-columns: 1fr;
  }

  .dtbw-workspace-body {
    padding: 18px;
  }

  .dtbw-workspace-body h3 {
    font-size: 21px;
  }

  .dtbw-price > strong {
    font-size: 27px;
  }

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

  .dtbw-modal__dialog {
    border-radius: 12px 12px 0 0;
    max-height: 92vh;
    width: 100%;
  }

  .dtbw-modal__header {
    padding: 20px 18px;
  }

  .dtbw-modal__content {
    padding: 22px 18px;
  }

  .dtbw-form {
    grid-template-columns: 1fr;
  }

  .dtbw-thankyou-wrap {
    margin-left: 0;
    margin-right: 0;
    width: auto;
  }

  .dtbw-list-form-wrap {
    border-radius: 0;
    padding: 22px 18px;
  }

  .dtbw-filter {
    flex: 1 1 100%;
  }

  .dtbw-filter select {
    min-width: 0;
    width: 100%;
  }
}

/* --------------------------------------------------------------------------
   All workspaces — filter bar + pagination
   -------------------------------------------------------------------------- */

.dtbw-filters {
  align-items: flex-end;
  background: #fff;
  border: 1px solid var(--dtbw-line);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(7, 28, 58, 0.05);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 4px;
  padding: 18px 20px;
}

.dtbw-filter {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dtbw-filter label {
  color: var(--dtbw-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.dtbw-filter select {
  background: #fff;
  border: 1.5px solid var(--dtbw-line);
  border-radius: 8px;
  color: var(--dtbw-navy);
  font: inherit;
  font-size: 14px;
  min-height: 44px;
  min-width: 180px;
  padding: 9px 12px;
}

.dtbw-filter select:focus {
  border-color: var(--dtbw-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.12);
  outline: none;
}

.dtbw-filter-actions {
  align-items: center;
  flex-direction: row;
  gap: 12px;
}

.dtbw-filter-btn {
  appearance: none;
  background: var(--dtbw-orange);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  min-height: 44px;
  padding: 11px 26px;
  transition: background 0.18s ease;
}

.dtbw-filter-btn:hover {
  background: var(--dtbw-orange-hover);
}

.dtbw-filter-reset {
  align-self: center;
  color: var(--dtbw-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.dtbw-filter-reset:hover {
  color: var(--dtbw-navy);
}

.dtbw-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 28px 0 8px;
}

.dtbw-pagination .page-numbers {
  align-items: center;
  background: #fff;
  border: 1px solid var(--dtbw-line);
  border-radius: 8px;
  color: var(--dtbw-navy);
  display: inline-flex;
  font-size: 14px;
  font-weight: 600;
  height: 42px;
  justify-content: center;
  min-width: 42px;
  padding: 0 12px;
  text-decoration: none;
}

.dtbw-pagination a.page-numbers:hover {
  border-color: var(--dtbw-orange);
  color: var(--dtbw-orange);
}

.dtbw-pagination .page-numbers.current {
  background: var(--dtbw-orange);
  border-color: var(--dtbw-orange);
  color: #fff;
}

.dtbw-pagination .page-numbers.dots {
  background: transparent;
  border: 0;
}

/* --------------------------------------------------------------------------
   List Your Workspace — submission form + success popup
   -------------------------------------------------------------------------- */

.dtbw-list-form-wrap {
  background: #fff;
  border: 1px solid var(--dtbw-line);
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(7, 28, 58, 0.06);
  margin: 28px auto;
  max-width: 760px;
  padding: 32px;
}

.dtbw-list-form-head {
  margin-bottom: 22px;
}

.dtbw-list-form-head h2 {
  color: var(--dtbw-navy);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 8px;
}

.dtbw-list-form-head p {
  color: var(--dtbw-muted);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

.dtbw-list-form input[type="file"] {
  background: #f5f7fb;
  cursor: pointer;
  padding: 10px 14px;
}

/* Success popup — reuses .dtbw-modal / .dtbw-modal__overlay / .dtbw-modal__dialog */
.dtbw-list-success .dtbw-modal__dialog {
  max-width: 460px;
  text-align: center;
  width: min(460px, 100%);
}

.dtbw-list-success__inner {
  padding: 40px 32px 34px;
}

.dtbw-list-success__icon {
  align-items: center;
  background: #16a34a;
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 34px;
  height: 68px;
  justify-content: center;
  margin: 0 auto 20px;
  width: 68px;
}

.dtbw-list-success__inner h2 {
  color: var(--dtbw-navy);
  font-size: 23px;
  font-weight: 800;
  margin: 0 0 10px;
}

.dtbw-list-success__inner p {
  color: var(--dtbw-muted);
  font-size: 15px;
  line-height: 1.55;
  margin: 0 0 24px;
}

.dtbw-list-success__ok {
  margin: 0 auto;
  min-width: 160px;
  width: auto;
}
.page-id-1520 .dtbw-workspaces-more {
    display: none;
}