.service-option {
  width: 100%;
  /* Full width to fit within form-group */
  max-width: 300px;
  /* Limit maximum width for better control */
  height: 40px;
  /* Reduced height for a sleek look */
  border: 2px solid #a586e0;
  border-radius: 8px;
  /* Rounded corners, less than circle */
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  /* Slightly less bold for readability */
  font-size: 16px;
  /* Comfortable font size for text */
  color: #5e35b1;
  transition: 0.2s;
  margin: 5px 0;
  /* Add spacing between options */
  padding: 0 10px;
  /* Padding for text breathing room */
  white-space: normal;
  /* Allow text to wrap if needed */
  text-align: center;
  /* Center-align text */
  box-sizing: border-box;
  /* Ensure padding doesn't affect width */
}

.service-option.selected {
  background-color: #7e57c2;
  color: white;
  border-color: #7e57c2;
}


@media (max-width: 900px) {
  .checkout-container {
    display: block !important;
    flex-direction: unset !important;
    max-width: 100vw !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

body {
  font-family: Arial, sans-serif;
  background: #f7f7fb;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 800px;
  margin: 40px auto;
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.step {
  display: none;
}

.step.active {
  display: block;
}

.step-title {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: bold;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
}

input,
select,
textarea,
button {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 16px;
}

.enter-icon {
  position: absolute;
  right: 40px;
  top: 38px;
  font-size: 18px;
  color: #7e57c2;
  cursor: pointer;
}

.gps-icon {
  position: absolute;
  right: 10px;
  top: 38px;
  font-size: 18px;
  color: #28a745;
  cursor: pointer;
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 5px;
  display: none;
}

.button-primary {
  background-color: #7e57c2;
  color: white;
  border: none;
  cursor: pointer;
  transition: 0.3s ease;
  padding: 10px 25px;
}

.button-primary:hover {
  background-color: #5e35b1;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  position: relative;
}

#map {
  height: 100%;
  width: 100%;
}

.buttons {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 20px;
}

.option-group,
.material-option {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}

.circle-option {
  width: 50px;
  height: 50px;
  border: 2px solid #a586e0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 18px;
  color: #5e35b1;
  transition: 0.2s;
}

.circle-option.selected {
  background-color: #7e57c2;
  color: white;
}

.material-option .circle-option {
  width: 80px;
  height: 50px;
  font-size: 16px;
  border-radius: 25px;
}

.carousel {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin-bottom: 10px;
}

.worker-card {
  min-width: 140px;
  border: 2px solid #ccc;
  border-radius: 10px;
  text-align: center;
  padding: 10px;
  cursor: pointer;
}

.worker-card.selected {
  border-color: #7e57c2;
}

.date-options,
.time-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.date-option,
.time-option {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 25px;
  cursor: pointer;
}

.date-option.selected,
.time-option.selected {
  background-color: #7e57c2;
  color: white;
}

/* Step 4 Styles */
.checkout-container {
  max-width: 1200px;
  margin: 40px auto;
  /*display: flex;*/
  gap: 30px;
}

.left,
.right {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
}

.left {
  flex: 2;
}

.right {
  flex: 1;
}

.verify-btn {
  margin-top: 8px;
  background-color: #007bff;
  color: #fff;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  border-radius: 4px;
  background-color: #7e57c2;
  color: white;
}

.booking-summary {
  font-size: 15px;
  margin-bottom: 20px;
}

.booking-summary h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.payment-method {
  margin-bottom: 20px;
}

.payment-option {
  display: flex;
  align-items: center;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin-bottom: 10px;
  cursor: pointer;
}

.payment-option.selected {
  border-color: #7e57c2;
  background-color: #f5f0ff;
}

.payment-option input {
  width: auto;
  margin-right: 10px;
}

.payment-icon {
  width: 40px;
  margin-right: 10px;
}

#cardElement {
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
}

#payment-request-button {
  margin-bottom: 15px;
}

.price-display {
  font-weight: bold;
  color: #5e35b1;
  margin-top: 5px;
}

.hidden {
  display: none !important;
}

#mattressSizesWrapper .circle-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  width: 90px;
  border-radius: 999px;
  border: 2px solid #9b7ad3;
  background-color: white;
  font-size: 16px;
  font-weight: 600;
  color: #6c2bd9;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

#mattressSizesWrapper .option-group .circle-option {
  display: flex;
  gap: 12px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}
#mattressSizesWrapper .circle-option:hover {
  background-color: #8e44ad;
  color: white;
}
#mattressSizesWrapper .circle-option.selected {
  background-color: #8e44ad;
  color: white;
}
.sofa-option {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  cursor: pointer;
}
.sofa-option img {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  border-radius: 4px;
}
.sofa-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 2px solid #ccc;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.sofa-option:hover {
  border-color: #8b5cf6; /* بنفسجي عند المرور */
}

.sofa-option.selected {
  border-color: #8b5cf6;
  background-color: #f3e8ff;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.sofa-option .title {
  font-weight: bold;
  font-size: 16px;
}

.sofa-option .desc {
  font-size: 13px;
  color: #666;
}

.sofa-option .price {
  font-weight: bold;
  color: #000;
}

.add-button {
  background-color: #00bfff;
  border: none;
  color: #fff;
  padding: 8px 16px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.add-button:hover {
  background-color: #0099cc;
}
.counter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.counter button {
  width: 30px;
  height: 30px;
  border: none;
  background-color: #8b5cf6;
  color: #fff;
  font-size: 18px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content:center;
}

.counter span {
  font-size: 16px;
  font-weight: bold;
}
.service-card {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
}

.service-card img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  margin-right: 15px;
}

.service-details {
  flex: 1;
}

.price-qty {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.qty-controls button {
  background-color: #8254e6;
  color: white;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 18px;
  cursor: pointer;
}
.service-cards {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 15px;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 10px;
  background: #fff;
}

.service-card img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
}

.service-card-content {
  flex-grow: 1;
}

.quantity-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.quantity-controls button {
  background-color: #7e57c2;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quantity-controls span {
  font-size: 18px;
  min-width: 20px;
  text-align: center;
}
.main-header {
  background: white;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 999;
  margin-bottom: 30px;
}

.logo {
  height: 40px;
}

.menu-icon {
  font-size: 24px;
  color: #7e57c2;
  cursor: pointer;
}

.sidebar-header {
  display: flex;
  justify-content: flex-end;
  padding-bottom: 10px;
  border-bottom: 1px solid #a58de7;
  margin-bottom: 20px;
  overflow-y: auto;
  max-height: 100vh;
}

.close-btn {
  font-size: 24px;
  color: #7e57c2;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close-btn:hover {
  color: #7e57c2;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  width: 260px;
  height: auto;
  background: #ffffff;
  padding: 20px;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: right 0.3s ease;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 20px 0;
}

.sidebar ul li a {
  color: #7e57c2;
  text-decoration: none;
  font-size: 18px;
  font-weight: bold;
  transition: opacity 0.2s ease;
}

.sidebar ul li a:hover {
  opacity: 0.8;
}

.sidebar.hidden {
  right: -300px;
}
.sidebar-links {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sidebar-links li {
  margin-bottom: 15px;
}

.sidebar-links li a {
  color: #7e57c2;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  display: block;
}

.sidebar-links li a:hover {
  opacity: 0.8;
}
.dropdown-content {
  margin-top: 10px;
  margin-left: 15px;
  border-left: 2px solid rgba(255, 255, 255, 0.2);
  padding-left: 10px;
}

.dropdown-content li {
  margin-bottom: 10px;
}
.dropdown > a {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.voucher-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.voucher-row input {
  flex: 1;
}
.voucher-row .verify-btn {
  width: auto;
  padding: 10px 16px;
  white-space: nowrap;
}
