:root {
  --primary-color: #855f57;
  --primary-hover: #6f4b45;
  --text-color: #333;
  --bg-color: #fff;
  --font-family: inherit;
  --border-radius: 6px;
}

* {
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--bg-color);
  margin: 0;
  padding: 0;
}

#apointa-step-form {
  width: 100%;
  padding: 20px;
  margin: auto;
  max-width: 100%;
}

.step-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
  overflow-x: auto;
}

.step {
  flex: 1;
  text-align: center;
  padding: 10px;
  background: #d9d9d9;
  color: var(--text-color);
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: 0.3s;
  white-space: nowrap;
}

.step.active {
  background: var(--primary-color);
  color: #fff;
}

.step-content {
  background: #fafafa;
  border-radius: var(--border-radius);
  padding: 25px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}

.service-row select {
  flex: 1;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-family: inherit;
}

.service-summary {
  margin-top: 10px;
  font-weight: bold;
  color: var(--primary-color);
}

button {
  padding: 12px 25px;
  font-size: 16px;
  border: none;
  border-radius: var(--border-radius);
  background: var(--primary-color);
  color: white;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background: var(--primary-hover);
}

.add-service {
  background: transparent;
  color: var(--primary-color);
  border: 2px dashed var(--primary-color);
}

.add-service:hover {
  background: var(--primary-color);
  color: #fff;
}

@media (max-width: 768px) {
  .step-navigation {
    flex-direction: column;
    gap: 10px;
  }

  .service-row {
    flex-direction: column;
  }

  button {
    width: 100%;
  }
}

/*step2 time*/

.date-time-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: flex-start;
}

.calendar-wrapper {
  flex: 1;
  min-width: 280px;
}

.time-wrapper {
  flex: 1;
  min-width: 300px;
}

.time-scroll-box {
  max-height: 200px;
  overflow-y: scroll;
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.time-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-weight: 500;
}

.time-slot input[type="radio"] {
  transform: scale(1.2);
}

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

.form-group label {
  font-weight: 600;
  display: block;
  margin-bottom: 5px;
}

.form-input, .form-textarea {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}



.details-grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 500;
}

.form-input {
  padding: 12px 15px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 16px;
  background: #fff;
}

.full-width {
  grid-column: 1 / -1;
}

.form-textarea {
  padding: 12px 15px;
  border-radius: 20px;
  border: 1px solid #ccc;
  font-size: 16px;
  background: #fff;
  resize: vertical;
  min-height: 100px;
}

@media (max-width: 768px) {
  .details-grid {
    grid-template-columns: 1fr;
  }
}

.error-msg {
  color: red;
  font-size: 0.9rem;
  margin-top: 5px;
}

/*step 4 review*/

.review-section {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  display: grid;
  gap: 20px;
}

.review-group {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.review-group:last-child {
  border-bottom: none;
}

.review-group h3 {
  margin-bottom: 10px;
  font-size: 18px;
  color: var(--primary-color);
}

.review-group ul {
  padding-left: 20px;
}

.review-group p {
  margin: 5px 0;
}


.review-box {
  background: #fff;
  padding: 20px;
  border-radius: var(--border-radius);
  border: 1px solid #ddd;
}

.review-box h3 {
  margin-bottom: 15px;
}

#review-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#review-list li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}


/*payment page*/
.total-box {
  margin-top: 15px;
  font-size: 18px;
  font-weight: bold;
  text-align: right;
}

.checkout-button {
  background: var(--primary-color);
  color: #fff;
  padding: 12px 25px;
  text-decoration: none;
  border-radius: var(--border-radius);
  transition: 0.3s;
}

.checkout-button:hover {
  background: var(--primary-hover);
}


