
/* =========================================================
   MoveDone Update 059 — Customer Services & Bookings Hub
   ========================================================= */

.md059-hub {
  width: min(1380px, calc(100% - 48px));
  margin: 34px auto;
  padding: 28px;
  border: 1px solid #e8ddd4;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 18px 55px rgba(61,45,32,.055);
}

.md059-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}

.md059-section-head h2 {
  margin: 4px 0 7px;
  color: #202326;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -.05em;
}

.md059-section-head p {
  margin: 0;
  color: #70777c;
}

.md059-eyebrow {
  color: #e94c43;
  font-size: .73rem;
  font-weight: 900;
  letter-spacing: .12em;
}

.md059-all-quotes {
  min-height: 48px;
  display: inline-grid;
  place-items: center;
  padding: 0 20px;
  border: 1px solid #e8ddd4;
  border-radius: 999px;
  color: #202326;
  background: #fff;
  font-weight: 850;
  text-decoration: none;
}

.md059-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.md059-summary > button,
.md059-summary > div {
  min-height: 105px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 18px;
  border: 1px solid #e8ddd4;
  border-radius: 17px;
  color: #202326;
  background: #fffaf7;
  text-align: left;
}

.md059-summary > button {
  cursor: pointer;
}

.md059-summary span {
  color: #747b80;
  font-size: .73rem;
  font-weight: 800;
}

.md059-summary strong {
  margin-top: 5px;
  font-size: 1.75rem;
  letter-spacing: -.04em;
}

.md059-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  width: fit-content;
  margin-bottom: 18px;
  border-radius: 14px;
  background: #f2ede8;
}

.md059-tabs button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  color: #777d81;
  background: transparent;
  font-weight: 850;
}

.md059-tabs button.active {
  color: #202326;
  background: #fff;
  box-shadow: 0 4px 12px rgba(50,36,27,.055);
}

.md059-tabs b {
  min-width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: #f0ebe7;
  font-size: .66rem;
}

.md059-service-list {
  display: grid;
  gap: 13px;
}

.md059-service-card {
  display: grid;
  grid-template-columns: minmax(0,1fr) 185px;
  gap: 20px;
  padding: 21px;
  border: 1px solid #e8ddd4;
  border-radius: 19px;
  background: #fffdfa;
}

.md059-service-card.accepted {
  border-color: #bfe5d2;
  box-shadow: inset 4px 0 #2cab6f;
}

.md059-service-card.awaiting {
  box-shadow: inset 4px 0 #ff5a4f;
}

.md059-service-card.declined {
  opacity: .83;
  box-shadow: inset 4px 0 #aeb3b6;
}

.md059-title-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.md059-service-type {
  color: #e94c43;
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.md059-title-row h3 {
  margin: 4px 0 0;
  color: #202326;
  font-size: 1.18rem;
}

.md059-status {
  height: 27px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 900;
  white-space: nowrap;
}

.md059-status.accepted {
  color: #13764b;
  background: #eaf8f1;
}

.md059-status.awaiting {
  color: #c5453c;
  background: #fff0ed;
}

.md059-status.declined {
  color: #6d7377;
  background: #f0efed;
}

.md059-details {
  display: grid;
  grid-template-columns: repeat(3, minmax(130px,1fr));
  gap: 10px;
  margin-top: 16px;
}

.md059-details > div {
  min-height: 74px;
  padding: 12px;
  border-radius: 12px;
  background: #faf7f4;
}

.md059-details span,
.md059-details strong,
.md059-details small {
  display: block;
}

.md059-details span {
  color: #7a8084;
  font-size: .67rem;
  font-weight: 800;
}

.md059-details strong {
  margin-top: 4px;
  color: #202326;
  font-size: .93rem;
}

.md059-details small {
  margin-top: 3px;
  color: #7a8084;
  font-size: .66rem;
  line-height: 1.4;
}

.md059-last-message strong {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.md059-deposit-paid {
  color: #13764b !important;
}

.md059-deposit-outstanding {
  color: #c5453c !important;
}

.md059-schedule {
  padding: 12px 14px;
  margin-top: 12px;
  border: 1px solid #bfe5d2;
  border-radius: 12px;
  background: #effaf4;
}

.md059-schedule.pending {
  border-color: #f0dfbd;
  background: #fff8e9;
}

.md059-schedule span,
.md059-schedule strong,
.md059-schedule small {
  display: block;
}

.md059-schedule span {
  color: #747b80;
  font-size: .66rem;
  font-weight: 800;
}

.md059-schedule strong {
  margin-top: 3px;
}

.md059-schedule small {
  margin-top: 3px;
  color: #747b80;
  font-size: .67rem;
}

.md059-service-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.md059-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid #e8ddd4;
  border-radius: 12px;
  color: #202326;
  background: #fff;
  font-size: .76rem;
  font-weight: 850;
  text-decoration: none;
}

.md059-btn.primary {
  border-color: #ff5a4f;
  color: #fff;
  background: #ff5a4f;
}

.md059-btn.message b {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: #ff5a4f;
  font-size: .64rem;
}

.md059-envelope {
  font-size: 1.05rem;
}

.md059-empty {
  padding: 38px 20px;
  border: 1px dashed #dfd4cb;
  border-radius: 17px;
  color: #747b80;
  text-align: center;
}

.md059-empty strong,
.md059-empty span {
  display: block;
}

.md059-empty strong {
  color: #202326;
  font-size: 1rem;
}

.md059-empty span {
  margin-top: 5px;
}

.md059-nav-link {
  color: #676e72;
  font-weight: 750;
  text-decoration: none;
}

/* Messages */

.md059-message-modal[hidden] {
  display: none;
}

.md059-message-modal {
  position: fixed;
  z-index: 6000;
  inset: 0;
}

.md059-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27,29,31,.54);
  backdrop-filter: blur(5px);
}

.md059-modal-card {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  overflow: auto;
  margin: 20px auto;
  padding: 26px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 32px 90px rgba(0,0,0,.2);
}

.md059-modal-card h2 {
  margin: 5px 50px 0 0;
  font-size: 1.55rem;
  letter-spacing: -.035em;
}

.md059-modal-intro {
  color: #747b80;
}

.md059-modal-close {
  position: absolute;
  right: 18px;
  top: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f3efeb;
  font-size: 1.5rem;
}

.md059-message-thread {
  height: min(430px, 45vh);
  overflow-y: auto;
  padding: 16px;
  margin-top: 18px;
  border: 1px solid #e8ddd4;
  border-radius: 17px;
  background: #faf8f6;
}

.md059-message-row {
  display: flex;
  margin-bottom: 10px;
}

.md059-message-row.outgoing {
  justify-content: flex-end;
}

.md059-message-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 15px 15px 15px 5px;
  background: #fff;
  box-shadow: 0 4px 13px rgba(52,39,30,.05);
}

.md059-message-row.outgoing .md059-message-bubble {
  border-radius: 15px 15px 5px 15px;
  background: #fff0ed;
}

.md059-message-bubble p {
  margin: 7px 0 0;
  white-space: pre-wrap;
}

.md059-message-bubble small {
  display: block;
  margin-top: 6px;
  color: #8a9094;
  font-size: .62rem;
}

.md059-message-bubble img {
  display: block;
  max-width: 100%;
  max-height: 280px;
  border-radius: 11px;
}

.md059-empty-thread,
.md059-loading {
  display: grid;
  min-height: 180px;
  place-items: center;
  color: #858b8f;
}

.md059-message-compose {
  margin-top: 14px;
}

.md059-message-compose textarea {
  width: 100%;
  resize: vertical;
  min-height: 90px;
  padding: 13px;
  border: 1px solid #e8ddd4;
  border-radius: 14px;
  outline: none;
}

.md059-message-compose textarea:focus {
  border-color: #ff5a4f;
  box-shadow: 0 0 0 4px rgba(255,90,79,.08);
}

.md059-compose-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 9px;
}

.md059-image-button,
.md059-send {
  min-height: 42px;
  display: inline-grid;
  place-items: center;
  padding: 0 15px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 850;
}

.md059-image-button {
  border: 1px solid #e8ddd4;
  cursor: pointer;
}

.md059-send {
  margin-left: auto;
  border: 0;
  color: #fff;
  background: #ff5a4f;
}

.md059-image-help {
  color: #8a9094;
  font-size: .65rem;
}

.md059-image-preview {
  position: relative;
  width: fit-content;
  margin-top: 9px;
}

.md059-image-preview img {
  max-width: 180px;
  max-height: 140px;
  border-radius: 11px;
}

.md059-image-preview button {
  position: absolute;
  right: -7px;
  top: -7px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: #202326;
}

@media (max-width: 900px) {
  .md059-summary {
    grid-template-columns: 1fr 1fr;
  }

  .md059-service-card {
    grid-template-columns: 1fr;
  }

  .md059-service-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .md059-service-actions > * {
    flex: 1 1 150px;
  }
}

@media (max-width: 650px) {
  .md059-hub {
    width: calc(100% - 20px);
    padding: 18px;
  }

  .md059-section-head {
    flex-direction: column;
  }

  .md059-summary,
  .md059-details {
    grid-template-columns: 1fr;
  }

  .md059-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .md059-tabs button {
    white-space: nowrap;
  }

  .md059-title-row {
    flex-direction: column;
  }

  .md059-message-bubble {
    max-width: 91%;
  }

  .md059-compose-actions {
    flex-wrap: wrap;
  }

  .md059-image-help {
    order: 3;
    width: 100%;
  }
}
