/* ==========================================================================
   RINSE & RIDE (R&R) - APPOINTMENT BOOKING SYSTEM STYLES
   ========================================================================== */

:root {
  /* Square Appointments Palette - Luxurious Golden Brown */
  --square-teal: #b48d56;
  --square-teal-hover: #9c7541;
  --square-teal-light: #fbf7f0;
  --square-bg: #fdfdfd;
  --square-card-bg: #ffffff;
  --square-text-dark: #12161a;
  --square-text-muted: #5e6871;
  --square-text-light: #8a949e;
  --square-border: #e6e9ec;
  --square-border-hover: #cbd2d9;
  
  /* Accent luxury cream/gold */
  --brand-gold: #c5a880;
  --brand-gold-dark: #8e734c;

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--square-bg);
  color: var(--square-text-dark);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Header matching Screenshot */
.sq-header {
  background: #ffffff;
  border-bottom: 1px solid var(--square-border);
  padding: 0.85rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}

.sq-logo-badge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px dashed var(--square-border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--square-text-dark);
  overflow: hidden;
  background: #ffffff;
}

.sq-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-hamburger {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sq-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--square-text-dark);
}

/* Main Layout Grid */
.sq-container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.sq-split-layout {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 3.5rem;
  align-items: start;
}

@media (max-width: 860px) {
  .sq-split-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Breadcrumb */
.sq-breadcrumb {
  font-size: 0.88rem;
  color: var(--square-text-muted);
  margin-bottom: 1.25rem;
}

.sq-breadcrumb a {
  color: var(--square-text-dark);
  font-weight: 500;
}

.sq-breadcrumb a:hover {
  text-decoration: underline;
}

.sq-breadcrumb span {
  margin: 0 0.4rem;
  color: var(--square-text-light);
}

/* Page Titles */
.sq-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--square-text-dark);
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.sq-subtitle {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--square-text-muted);
  margin-bottom: 1.5rem;
}

/* Teal Action Button */
.btn-teal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--square-teal);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.15s ease;
  width: 100%;
  text-align: center;
}

.btn-teal:hover {
  background-color: var(--square-teal-hover);
}

.btn-teal:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Service Detail Left Column Content */
.sq-service-desc {
  color: #3b4249;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.sq-checklist {
  list-style: none;
  margin-bottom: 2rem;
}

.sq-checklist li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #24292e;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.sq-checklist li span.check {
  color: #10b981;
  font-weight: 800;
}

/* Promotional Card Graphic (Matching Screenshot 2) */
.sq-promo-card {
  border: 1px solid var(--square-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background: #ffffff;
}

.sq-promo-header {
  position: relative;
  height: 240px;
  background: #eef2f6;
  overflow: hidden;
}

.sq-promo-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sq-promo-price-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 2px solid var(--square-teal);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.sq-promo-price-badge small {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--square-text-muted);
}

.sq-promo-price-badge strong {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--square-text-dark);
}

.sq-promo-body {
  padding: 1.5rem;
}

.sq-promo-icons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1rem 0;
}

.sq-icon-box {
  border: 1px solid var(--square-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  text-align: center;
  background: #fafbfc;
}

.sq-icon-box span {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.25rem;
}

.sq-icon-box small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--square-text-dark);
  line-height: 1.2;
  display: block;
}

/* Appointment Summary Card (Persistent Right Column - Screenshots 1, 3, 4, 5) */
.sq-summary-box {
  background: #ffffff;
  border: 1px solid var(--square-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
  position: sticky;
  top: 90px;
}

.sq-summary-header {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--square-text-dark);
  margin-bottom: 1.25rem;
}

.sq-summary-count-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--square-text-dark);
  margin-bottom: 1rem;
}

.sq-summary-item-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f1f3f5;
  font-size: 0.92rem;
}

.sq-summary-item-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--square-text-dark);
}

.sq-summary-item-title span.dot {
  width: 6px;
  height: 6px;
  background: var(--square-text-light);
  border-radius: 50%;
  display: inline-block;
}

.sq-summary-item-price {
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sq-edit-icon {
  color: var(--square-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
}

.sq-edit-icon:hover {
  color: var(--square-text-dark);
}

.sq-summary-totals-block {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--square-border);
}

.sq-totals-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  color: var(--square-text-muted);
  margin-bottom: 0.5rem;
}

.sq-totals-row.main {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--square-text-dark);
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--square-border);
}

/* Service Item Row in "Add More" list (Screenshot 3) */
.sq-service-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sq-service-row {
  background: #ffffff;
  border: 1px solid var(--square-border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.sq-service-row:hover {
  border-color: var(--square-border-hover);
  box-shadow: var(--shadow-card);
}

.sq-service-row.added {
  border-color: var(--square-teal);
  background: #fbfdfd;
}

.sq-service-row-left {
  flex: 1;
}

.sq-service-row-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--square-text-dark);
  margin-bottom: 0.35rem;
}

.sq-service-row-desc {
  font-size: 0.88rem;
  color: var(--square-text-muted);
  line-height: 1.45;
  margin-bottom: 0.5rem;
}

.sq-service-row-meta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--square-text-dark);
}

.sq-service-row-meta span.added-badge {
  color: var(--square-teal);
  font-weight: 700;
  margin-left: 0.5rem;
}

.sq-service-row-thumb {
  width: 90px;
  height: 90px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #eef2f6;
  flex-shrink: 0;
}

.sq-service-row-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Calendar Days Strip (Screenshot 4) */
.sq-cal-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.sq-month-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--square-text-dark);
}

.sq-arrows {
  display: flex;
  gap: 0.5rem;
}

.sq-arrow-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--square-border);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1rem;
}

.sq-days-strip {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
  text-align: center;
}

.sq-day-col {
  cursor: pointer;
  padding: 0.75rem 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.sq-day-col .day-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--square-text-muted);
  margin-bottom: 0.35rem;
  display: block;
}

.sq-day-col .day-num {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--square-text-dark);
  width: 36px;
  height: 36px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}

.sq-day-col.disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.sq-day-col.disabled .day-num {
  text-decoration: line-through;
}

.sq-day-col.active .day-num {
  background: #000000;
  color: #ffffff;
}

.sq-day-col.available .day-num {
  border: 1px solid var(--square-teal);
  color: var(--square-teal);
}

/* Time Slot Buttons */
.sq-slot-pills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.sq-slot-pill {
  padding: 0.85rem 1rem;
  border: 1px solid var(--square-border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  text-align: center;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sq-slot-pill:hover {
  border-color: var(--square-teal);
  color: var(--square-teal);
}

.sq-slot-pill.active {
  background: var(--square-teal);
  border-color: var(--square-teal);
  color: #ffffff;
}

/* Form inputs on Checkout (Screenshot 1 & 5) */
.sq-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sq-input-group {
  margin-bottom: 1.25rem;
}

.sq-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--square-text-dark);
  margin-bottom: 0.4rem;
}

.sq-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--square-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--square-text-dark);
  background: #ffffff;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sq-input:focus {
  outline: none;
  border-color: var(--square-teal);
  box-shadow: 0 0 0 3px rgba(40, 188, 166, 0.2);
}

.sq-phone-wrap {
  display: flex;
  gap: 0.5rem;
}

.sq-country-pill {
  background: #f1f3f5;
  border: 1px solid var(--square-border);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.sq-disclaimer {
  font-size: 0.78rem;
  color: var(--square-text-muted);
  line-height: 1.45;
  margin: 0.5rem 0 1.25rem 0;
}

/* ==========================================================================
   SQUARE TIMELINE SUMMARY & SERVICES LIST REFINEMENT
   ========================================================================== */
.sq-timeline-list {
  position: relative;
  padding: 0.5rem 0;
}

.sq-timeline-item {
  position: relative;
  padding-left: 24px;
  padding-bottom: 1.5rem;
}

.sq-timeline-item:last-child {
  padding-bottom: 0.25rem;
}

.sq-timeline-item::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 14px;
  bottom: -4px;
  width: 2px;
  background: #e5e7eb;
}

.sq-timeline-item:last-child::before {
  display: none;
}

.sq-timeline-dot {
  position: absolute;
  left: 0;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
}

.sq-timeline-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.2rem;
}

.sq-timeline-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: #111827;
}

.sq-timeline-price-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #111827;
}

.sq-timeline-time {
  font-size: 0.85rem;
  color: #6b7280;
}

