/* ------------------------------------------------------
   File: booking.css
   Location: /var/www/advocate-frontend/booking.css
   Purpose: Final mobile-first step booking flow UI
   Notes:
   - Step 1: Date
   - Step 2: Time
   - Step 3: Details
   - Step 4: Payment
   - Yellow + brown + black premium legal theme
   - Numbered timeline with dotted connector
   - Full pill buttons
   - Mobile shows only top logo bar + booking module + compact footer
   - Fixed date-card jump / extra-space issue
------------------------------------------------------ */

.booking-section {
  position: relative;
  padding: 18px 0 40px;
  background: #f6f6f6;
}

.booking-shell {
  max-width: 760px;
  margin: 0 auto;
}

.booking-card {
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.booking-top {
  padding: 0 0 14px;
  border-bottom: none;
  background: transparent;
}

.booking-title {
  margin: 0 0 10px;
  color: #1b1816;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.15em;
}

/* -----------------------------------
   Step Timeline
----------------------------------- */

.booking-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  margin-top: 10px;
  gap: 8px;
}

.booking-steps::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 42px;
  right: 42px;
  height: 2px;
  background-image: linear-gradient(
    to right,
    #d6cbb9 33%,
    rgba(255, 255, 255, 0) 0%
  );
  background-position: bottom;
  background-size: 10px 2px;
  background-repeat: repeat-x;
}

.booking-step-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex: 1 1 0;
  min-width: 0;
  padding-top: 0;
  background: transparent;
  border: none;
  color: #9a8f80;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.3em;
  transition: all 0.25s ease;
  z-index: 2;
}

.booking-step-pill::before {
  content: attr(data-step);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #d6cbb9;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #8c7f6b;
  box-sizing: border-box;
  transition: all 0.25s ease;
}

.booking-step-pill.active {
  color: #7b652d;
}

.booking-step-pill.active::before {
  background: linear-gradient(135deg, #caa84c, #9a7a2f);
  border-color: #9a7a2f;
  color: #ffffff;
}

.booking-step-pill.done {
  color: #5f5548;
}

.booking-step-pill.done::before {
  content: "✓";
  background: #1b1816;
  border-color: #1b1816;
  color: #ffffff;
  font-size: 16px;
}

/* -----------------------------------
   Main body
----------------------------------- */

.booking-body {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #e7e1d8;
  border-radius: 22px 22px 0 0;
}

.booking-slides {
  display: flex;
  width: 400%;
  transition: transform 0.32s ease;
}

.booking-slide {
  width: 25%;
  padding: 26px;
  box-sizing: border-box;
}

.booking-slide-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: #1c1917;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3em;
}

.booking-slide-title i {
  color: #998f84;
  font-size: 22px;
}

/* -----------------------------------
   Date cards
----------------------------------- */

.booking-date-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.booking-date-card {
  width: 100%;
  height: 88px;
  min-height: 88px;
  max-height: 88px;
  padding: 10px 16px;
  border: 1px solid #e5dfd7;
  border-radius: 22px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  box-shadow: none;
  outline: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  overflow: hidden;
  vertical-align: top;
}

.booking-date-card:hover {
  border-color: #9a7a2f;
  background: #fcf8ef;
}

.booking-date-card.active {
  background: linear-gradient(135deg, #caa84c, #9a7a2f);
  border-color: #9a7a2f;
  box-shadow: none;
}

.booking-date-card .day-label {
  display: block;
  margin-bottom: 4px;
  color: #9e968c;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.booking-date-card .date-label {
  display: block;
  color: #1c1917;
  font-size: 44px;
  font-weight: 800;
  line-height: 0.9em;
  white-space: nowrap;
}

.booking-date-card.active .day-label,
.booking-date-card.active .date-label {
  color: #ffffff;
}

/* -----------------------------------
   Slots
----------------------------------- */

.booking-slots-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.booking-slot-btn {
  width: calc(50% - 6px);
  height: 56px;
  border: 1px solid #d7c8a2;
  border-radius: 999px;
  background: #ffffff;
  color: #3c3324;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.booking-slot-btn:hover {
  border-color: #9a7a2f;
  background: #f7f1df;
}

.booking-slot-btn.active {
  background: linear-gradient(135deg, #caa84c, #9a7a2f);
  border-color: #9a7a2f;
  color: #ffffff;
}

.booking-slot-btn.disabled,
.booking-slot-btn:disabled {
  background: #efefef;
  border-color: #efefef;
  color: #b7b1aa;
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 1;
}

.booking-slot-empty {
  width: 100%;
  padding: 16px 18px;
  border: 1px dashed #dad4cc;
  border-radius: 18px;
  background: #faf9f7;
  color: #8b837a;
  font-size: 14px;
}

/* -----------------------------------
   Form
----------------------------------- */

.booking-form-group {
  margin-bottom: 20px;
}

.booking-form-label {
  display: block;
  margin-bottom: 10px;
  color: #514943;
  font-size: 15px;
  font-weight: 600;
}

.booking-input-wrap {
  position: relative;
}

.booking-input-wrap i {
  position: absolute;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: #a1978d;
  font-size: 20px;
  line-height: 1;
}

.booking-input {
  width: 100%;
  height: 58px;
  padding: 0 16px 0 52px;
  border: 1px solid #e2ddd6;
  border-radius: 999px;
  background: #ffffff;
  color: #1d1d1d;
  font-size: 16px;
  font-weight: 500;
  box-sizing: border-box;
  outline: none;
  transition: all 0.25s ease;
}

.booking-input:focus {
  border-color: #9a7a2f;
  box-shadow: 0 0 0 3px rgba(202, 168, 76, 0.14);
}

/* -----------------------------------
   Summary
----------------------------------- */

.booking-dual-summary {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.booking-dual-col {
  flex: 1 1 0;
  padding: 18px;
  border: 1px solid #e5dfd7;
  border-radius: 22px;
  background: #fbfaf7;
}

.booking-dual-label {
  display: block;
  margin-bottom: 10px;
  color: #6d665f;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.booking-summary-big {
  display: block;
  color: #1c1917;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15em;
}

.booking-summary-sub {
  display: block;
  margin-top: 6px;
  color: #7a7063;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3em;
}

.booking-amount-big {
  display: block;
  color: #1b1816;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.1em;
}

/* -----------------------------------
   Payment
----------------------------------- */

.booking-payment-card {
  padding: 18px;
  border: 1px solid #e5dfd7;
  border-radius: 22px;
  background: #fbfaf7;
}

.booking-payment-title {
  margin: 0 0 10px;
  color: #1d1d1d;
  font-size: 18px;
  font-weight: 700;
}

.booking-payment-note {
  margin: 0 0 16px;
  color: #70685f;
  font-size: 14px;
  line-height: 1.7em;
}

.booking-qr-image {
  max-width: 240px;
  width: 100%;
  height: auto;
  border: 1px solid #e2ddd6;
  border-radius: 18px;
  background: #ffffff;
  padding: 8px;
}

/* -----------------------------------
   Nav
----------------------------------- */

.booking-nav {
  display: flex;
  gap: 12px;
  padding: 16px 26px 22px;
  border-top: 1px solid #eee7de;
  background: #ffffff;
  border-left: 1px solid #e7e1d8;
  border-right: 1px solid #e7e1d8;
  border-bottom: 1px solid #e7e1d8;
  border-radius: 0 0 22px 22px;
}

.booking-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid #9a7a2f;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}

.booking-btn-prev {
  flex: 0 0 120px;
  background: #ffffff;
  border-color: #d4c19c;
  color: #7b652d;
}

.booking-btn-prev:hover {
  background: #f5f1e6;
}

.booking-btn-next,
.booking-submit-btn {
  flex: 1 1 auto;
  background: linear-gradient(135deg, #caa84c, #9a7a2f);
  border-color: #9a7a2f;
  color: #ffffff;
}

.booking-btn-next:hover,
.booking-submit-btn:hover {
  background: linear-gradient(135deg, #b9963c, #866824);
}

.booking-btn:disabled,
.booking-submit-btn:disabled {
  background: #928b83;
  border-color: #928b83;
  color: #ffffff;
  cursor: not-allowed;
}

/* -----------------------------------
   Messages
----------------------------------- */

.booking-error,
.booking-success,
.booking-loading {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.6em;
}

.booking-error.show,
.booking-success.show,
.booking-loading.show {
  display: block;
}

.booking-error {
  background: #fff1f1;
  border: 1px solid #efc4c4;
  color: #ab3838;
}

.booking-success {
  background: #eef9f1;
  border: 1px solid #c9e5d0;
  color: #267142;
}

.booking-loading {
  background: #f7f1e8;
  border: 1px solid #eadfce;
  color: #7c6543;
}

.booking-helper-text {
  margin-top: 10px;
  color: #81786f;
  font-size: 13px;
  line-height: 1.7em;
}

/* -----------------------------------
   Desktop
----------------------------------- */

@media only screen and (min-width: 992px) {
  .booking-shell {
    max-width: 1180px;
  }

  .booking-top {
    padding: 0 0 14px;
  }

  .booking-title {
    font-size: 32px;
  }

  .booking-slide {
    padding: 34px;
  }

  .booking-date-cards {
    display: flex;
    flex-direction: row;
    gap: 16px;
    flex-wrap: nowrap;
    align-items: stretch;
  }

  .booking-date-card {
    width: calc(33.333% - 11px);
    height: 88px;
    min-height: 88px;
    max-height: 88px;
    flex: 0 0 calc(33.333% - 11px);
  }

  .booking-slot-btn {
    width: calc(25% - 9px);
    height: 60px;
    font-size: 16px;
  }

  .booking-nav {
    padding: 20px 34px 30px;
  }
}

/* -----------------------------------
   Tablet / Mobile
----------------------------------- */

@media only screen and (max-width: 767px) {
  .banner-section,
  .services-section,
  .services-section-two,
  .form-section,
  .widgets-section,
  .search-box-outer,
  .preloader,
  .form-back-drop {
    display: none !important;
  }

  .main-header,
  .header-upper {
    background: #000000 !important;
  }

  .header-upper .container {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .logo-box {
    float: none !important;
    text-align: center !important;
    width: 100% !important;
  }

  .logo-box .logo {
    display: inline-block;
    margin: 0 auto;
  }

  .logo-box .logo img {
    max-height: 58px;
    width: auto;
  }

  .nav-outer,
  .main-menu,
  .navbar-collapse,
  .navigation,
  .outer-box {
    display: none !important;
  }

  .booking-section {
    padding: 6px 0 24px;
  }

  .booking-shell {
    max-width: 100%;
    padding: 0 10px;
  }

  .booking-top {
    padding: 0 10px 10px;
  }

  .booking-title {
    font-size: 20px;
    margin-bottom: 8px;
    text-align: center;
  }

  .booking-steps {
    gap: 4px;
  }

  .booking-step-pill {
    font-size: 10px;
    line-height: 1.15em;
    gap: 5px;
  }

  .booking-step-pill::before {
    width: 26px;
    height: 26px;
    font-size: 11px;
  }

  .booking-steps::before {
    top: 12px;
    left: 28px;
    right: 28px;
  }

  .booking-slide {
    padding: 18px 14px;
  }

  .booking-slide-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .booking-date-card {
    height: 74px;
    min-height: 74px;
    max-height: 74px;
    padding: 8px 12px;
    border-radius: 16px;
  }

  .booking-date-card .day-label {
    font-size: 11px;
    margin-bottom: 4px;
  }

  .booking-date-card .date-label {
    font-size: 28px;
  }

  .booking-slots-grid {
    gap: 10px;
  }

  .booking-slot-btn {
    width: calc(33.333% - 7px);
    min-width: calc(33.333% - 7px);
    height: 48px;
    font-size: 12px;
    padding: 0 4px;
  }

  .booking-form-group {
    margin-bottom: 16px;
  }

  .booking-form-label {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .booking-input {
    height: 52px;
    font-size: 15px;
    padding-left: 48px;
  }

  .booking-input-wrap i {
    left: 14px;
    font-size: 18px;
  }

  .booking-dual-summary {
    flex-direction: row;
    gap: 10px;
  }

  .booking-dual-col,
  .booking-payment-card {
    padding: 14px;
    border-radius: 18px;
  }

  .booking-dual-label {
    font-size: 11px;
    margin-bottom: 8px;
  }

  .booking-summary-big {
    font-size: 18px;
  }

  .booking-summary-sub {
    font-size: 12px;
    margin-top: 4px;
  }

  .booking-amount-big {
    font-size: 24px;
  }

  .booking-nav {
    padding: 14px;
    flex-direction: row !important;
    gap: 10px;
  }

  .booking-btn-prev,
  .booking-btn-next,
  .booking-submit-btn {
    width: auto !important;
    flex: 1 1 0 !important;
    height: 48px;
    font-size: 14px;
    padding: 0 10px;
  }

  .main-footer {
    padding-top: 0 !important;
    background: #111111;
  }

  .footer-bottom {
    padding: 10px 0 !important;
    background: #111111 !important;
  }

  .footer-bottom .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .footer-bottom .row {
    display: block;
    margin: 0;
    text-align: center;
  }

  .footer-bottom .col-lg-6,
  .footer-bottom .col-md-6,
  .footer-bottom .col-sm-12 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    text-align: center !important;
    padding: 0;
  }

  .copyright {
    margin: 0;
    color: #d8d8d8;
    font-size: 12px;
    line-height: 1.5em;
  }

  .developed-by {
    display: none !important;
  }
}

/* -----------------------------------
   Small mobile
----------------------------------- */

@media only screen and (max-width: 479px) {
  .booking-section {
    padding: 6px 0;
  }

  .booking-top {
    padding: 0 8px 10px;
  }

  .booking-title {
    font-size: 20px;
  }

  .booking-steps {
    gap: 6px;
  }

  .booking-step-pill {
    font-size: 10px;
    gap: 6px;
  }

  .booking-step-pill::before {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .booking-steps::before {
    top: 13px;
    left: 34px;
    right: 34px;
  }

  .booking-slide {
    padding: 18px 14px;
  }

  .booking-slide-title {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .booking-summary-big {
    font-size: 16px;
  }

  .booking-summary-sub {
    font-size: 11px;
  }

  .booking-amount-big {
    font-size: 22px;
  }
}/* -----------------------------------
   Fix: date click reflow / jump glitch
----------------------------------- */

.booking-body {
  min-height: 520px;
}

.booking-slides {
  align-items: stretch;
}

.booking-slide {
  min-height: 520px;
}

.booking-helper-text {
  min-height: 24px;
}

@media only screen and (max-width: 767px) {
  .booking-body {
    min-height: 460px;
  }

  .booking-slide {
    min-height: 460px;
  }

  .booking-helper-text {
    min-height: 20px;
  }
}

@media only screen and (max-width: 479px) {
  .booking-body {
    min-height: 430px;
  }

  .booking-slide {
    min-height: 430px;
  }

  .booking-helper-text {
    min-height: 18px;
  }
}