/* Book A Repair - front office */

.bar-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.bar-intro {
  color: #6c757d;
  margin-bottom: 1.5rem;
}

.bar-alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

.bar-fieldset {
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 1.25rem 1.25rem 0.5rem;
  margin-bottom: 1.5rem;
}

.bar-fieldset legend {
  width: auto;
  padding: 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: 0;
  margin-bottom: 0;
}

.bar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
}

.bar-col {
  flex: 1 1 240px;
  min-width: 0;
}

.bar-req {
  color: #cf222e;
}

/* Honeypot - visually and semantically out of the way, but not display:none,
   which some bots specifically skip. */
.bar-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.bar-brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 1.75rem;
}

.bar-brand-card {
  flex: 0 1 auto;
  padding: 0.6rem 1.1rem;
  border: 1px solid #e0e4e8;
  border-radius: 999px;
  background: #f6f8fa;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bar-brand-card:hover {
  border-color: #2b6cb0;
  background: #fff;
  text-decoration: none;
}

.bar-other-input {
  margin-top: 0.5rem;
}

.bar-other-input[hidden] {
  display: none;
}

.bar-service-price:not(:empty)::before {
  content: "from ";
}

.bar-service-price {
  font-weight: 600;
}

.bar-store-detail {
  margin-top: 0.5rem;
  padding: 0.6rem 0.8rem;
  background: #f6f8fa;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #444;
}

.bar-file-feedback {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.bar-file-feedback .bar-file-error {
  color: #cf222e;
}

.bar-consent {
  margin: 1rem 0 1.5rem;
}

.bar-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-weight: 400;
  cursor: pointer;
}

.bar-checkbox input {
  margin-top: 0.25rem;
  flex: 0 0 auto;
}

.bar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}

.bar-link {
  font-size: 0.9rem;
  text-decoration: underline;
}

/* ---------- tracking page ---------- */

.bar-track-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: #f6f8fa;
  border-left: 5px solid #9aa0a6;
  border-radius: 4px;
}

.bar-ref-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6c757d;
}

.bar-ref {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
}

.bar-status-badge {
  color: #fff;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

.bar-progress {
  height: 8px;
  background: #e9ecef;
  border-radius: 999px;
  overflow: hidden;
  margin: 1rem 0 1.5rem;
}

.bar-progress-fill {
  height: 100%;
  transition: width 0.4s ease;
}

.bar-note {
  background: #fff8e5;
  border: 1px solid #ffe08a;
  border-radius: 4px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.5rem;
}

.bar-note p {
  margin: 0.4rem 0 0;
}

.bar-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  margin: 0 0 1.5rem;
}

.bar-details > div {
  min-width: 160px;
}

.bar-details dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6c757d;
  font-weight: 600;
}

.bar-details dd {
  margin: 0.2rem 0 0;
}

.bar-price {
  font-weight: 700;
}

.bar-desc h3,
.bar-photos h3,
.bar-timeline h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.bar-desc {
  margin-bottom: 1.5rem;
}

.bar-photo-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bar-photo-grid img {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
}

.bar-timeline ol {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.25rem;
  border-left: 2px solid #e9ecef;
}

.bar-timeline li {
  position: relative;
  padding: 0 0 1.25rem 0.75rem;
}

.bar-dot {
  position: absolute;
  left: -1.85rem;
  top: 0.25rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 0 1px #e9ecef;
}

.bar-timeline-status {
  font-weight: 600;
}

.bar-timeline-date {
  font-size: 0.8rem;
  color: #6c757d;
}

.bar-timeline-note {
  margin-top: 0.35rem;
  font-size: 0.92rem;
}

/* ---------- message thread ---------- */

.bar-thread {
  margin: 2rem 0 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e9ecef;
}

.bar-thread-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.bar-thread-list li {
  max-width: 82%;
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.bar-msg-shop {
  background: #f6f8fa;
  border: 1px solid #e5e9ed;
}

.bar-msg-customer {
  margin-left: auto;
  background: #eaf3fc;
  border: 1px solid #cfe3fb;
}

.bar-msg-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.3rem;
  font-size: 0.78rem;
  color: #6c757d;
}

.bar-msg-body {
  font-size: 0.95rem;
  line-height: 1.55;
}

.bar-reply textarea {
  margin-bottom: 0.75rem;
}

.bar-msg-files {
  margin-top: 0.5rem;
}

.bar-file-chip {
  display: inline-block;
  max-width: 100%;
  padding: 0.35rem 0.7rem;
  margin: 0 0.35rem 0.35rem 0;
  border: 1px solid #cfd6dc;
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  text-decoration: none;
  word-break: break-all;
}

.bar-file-chip:hover {
  border-color: #2b6cb0;
  text-decoration: none;
}

/* ---------- widget / footer ---------- */

.bar-widget {
  padding: 1.5rem;
  background: #f6f8fa;
  border-radius: 6px;
  text-align: center;
}

.bar-widget-title {
  margin-top: 0;
}

.bar-widget .bar-link {
  display: block;
  margin-top: 0.75rem;
}

.bar-footer-links {
  margin-top: 0.5rem;
}

@media (max-width: 575px) {
  .bar-row {
    display: block;
  }

  .bar-track-head {
    flex-direction: column;
    align-items: flex-start;
  }
}
