/* ── DoraBooking Form ──────────────────────────────────────── */

.dora-wrap {
  max-width: 720px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 18px;
  color: #111827;
}

/* Step indicator */
.dora-steps-indicator {
  display: flex;
  align-items: flex-start;
  margin-bottom: 2.5rem;
}

.dora-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

/* Connecting line between dots */
.dora-step-dot:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: #e5e7eb;
  z-index: 0;
  transition: background .3s;
}

.dora-step-dot.done:not(:last-child)::after {
  background: #1a56db;
}

.dora-step-dot span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e5e7eb;
  color: #9ca3af;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: background .2s, color .2s;
}

.dora-step-dot label {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 6px;
  white-space: nowrap;
  font-weight: 500;
  transition: color .2s;
}

.dora-step-dot.active span,
.dora-step-dot.done span {
  background: #1a56db;
  color: #fff;
}

.dora-step-dot.active label,
.dora-step-dot.done label {
  color: #1a56db;
}

/* Step title */
.dora-step-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0 0 1.5rem;
  color: #111827;
}

/* ── Service cards ────────────────────────────────────────── */
.dora-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dora-service-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem 1.25rem;
  cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .1s;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  outline: none;
}

.dora-service-card:hover {
  border-color: #1a56db;
  box-shadow: 0 4px 12px rgba(26,86,219,.12);
  transform: translateY(-1px);
}

.dora-service-card.selected {
  border-color: #1a56db;
  background: #eff6ff;
  color: #1a56db;
  box-shadow: 0 4px 12px rgba(26,86,219,.18);
}

.dora-service-card .dora-service-desc {
  display: block;
  font-size: 1.05rem;
  font-weight: 400;
  color: #6b7280;
  margin-top: .5rem;
}

.dora-service-card .dora-service-duration {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a56db;
  background: #eff6ff;
  border-radius: 20px;
  padding: .3rem .85rem;
  margin-top: .6rem;
}

.dora-service-card.selected .dora-service-duration {
  background: #dbeafe;
}

/* ── Persons counter ──────────────────────────────────────── */
.dora-persons-row {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.dora-persons-control {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dora-btn-minus,
.dora-btn-plus {
  width: 44px;
  height: 44px;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .15s, background .15s;
  color: #374151;
  padding: 0;
}

.dora-btn-minus:hover,
.dora-btn-plus:hover {
  border-color: #1a56db;
  background: #eff6ff;
  color: #1a56db;
}

.dora-persons-display {
  text-align: center;
  min-width: 48px;
}

.dora-persons-display span {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  display: block;
  line-height: 1;
}

.dora-persons-display small {
  font-size: 1.2rem;
  color: #6b7280;
  font-weight: 500;
}

.dora-price-preview {
  font-size: 1.8rem;
  font-weight: 700;
  color: #059669;
  letter-spacing: -.01em;
}

.dora-price-loading {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  color: #6b7280;
  font-weight: 500;
}

.dora-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #d1d5db;
  border-top-color: #1a56db;
  border-radius: 50%;
  animation: dora-spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes dora-spin {
  to { transform: rotate(360deg); }
}

/* ── Calendar ─────────────────────────────────────────────── */
.dora-cal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.dora-cal-nav span {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
}

.dora-cal-nav-btn {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: .5rem .9rem;
  cursor: pointer;
  font-size: 1.1rem;
  color: #374151;
  transition: border-color .15s;
}

.dora-cal-nav-btn:hover {
  border-color: #1a56db;
  color: #1a56db;
}

.dora-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e5e7eb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  position: relative;
}

.dora-cal-loading {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: 12px;
}

/* Weekday headers + day cells share the same 7-col grid */
.dora-cal-weekdays,
#dora-calendar {
  display: contents;
}

.dora-cal-weekdays span {
  background: #f3f4f6;
  text-align: center;
  padding: .75rem 0;
  font-size: 1rem;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.dora-cal-day {
  background: #fff;
  text-align: center;
  padding: .8rem .25rem;
  font-size: 1.1rem;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dora-cal-day.available {
  color: #15803d;
  font-weight: 700;
  cursor: pointer;
  background: #f0fdf4;
  transition: background .15s;
}

.dora-cal-day.available:hover {
  background: #dcfce7;
}

.dora-cal-day.active {
  background: #1a56db !important;
  color: #fff !important;
  border-radius: 0;
}

.dora-cal-day.disabled {
  color: #d1d5db;
  cursor: default;
}

.dora-cal-day.empty {
  background: #fafafa;
}

/* ── Slots ────────────────────────────────────────────────── */
.dora-slots-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 .75rem;
}

.dora-slots-list {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  margin-bottom: 1.5rem;
}

.dora-slot-btn {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: .7rem 1.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  cursor: pointer;
  color: #374151;
  transition: border-color .15s, background .15s;
}

.dora-slot-btn:hover {
  border-color: #1a56db;
  background: #eff6ff;
  color: #1a56db;
}

.dora-slot-btn.selected {
  background: #1a56db;
  border-color: #1a56db;
  color: #fff;
}

/* ── Details form ─────────────────────────────────────────── */
.dora-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dora-field {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.dora-field-full {
  grid-column: 1 / -1;
}

.dora-field label {
  font-weight: 600;
  color: #374151;
}

.dora-field input,
.dora-field textarea {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: .85rem 1rem;
  color: #111827;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
  font-family: inherit;
}

.dora-field input:focus,
.dora-field textarea:focus {
  outline: none;
  border-color: #1a56db;
  box-shadow: 0 0 0 3px rgba(26,86,219,.1);
}

/* ── Summary ──────────────────────────────────────────────── */
.dora-summary {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
  line-height: 1.8;
}

.dora-summary ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dora-summary li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .3rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.dora-summary li:last-child {
  border-bottom: none;
}

/* ── Payment options ──────────────────────────────────────── */
.dora-payment-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.dora-payment-card {
  cursor: pointer;
}

.dora-payment-card input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.dora-payment-card-inner {
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color .15s, background .15s;
  display: flex;
  flex-direction: column;
  gap: .35rem;
}

.dora-payment-card input:checked + .dora-payment-card-inner {
  border-color: #1a56db;
  background: #eff6ff;
}

.dora-payment-card-inner:hover {
  border-color: #1a56db;
}

.dora-payment-icon {
  font-size: 2rem;
}

.dora-payment-card-inner strong {
  font-size: 1.05rem;
  color: #111827;
}

.dora-payment-card-inner small {
  font-size: .95rem;
  color: #6b7280;
}

/* ── Buttons ──────────────────────────────────────────────── */
.dora-btn-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.dora-btn-primary {
  background: #1a56db;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: .95rem 2.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s, transform .1s;
  margin-top: .5rem;
}

.dora-btn-primary:hover {
  background: #1e429f;
  transform: translateY(-1px);
}

.dora-btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
}

.dora-btn-confirm {
  padding: 1rem 2.75rem;
  font-size: 1.15rem;
}

.dora-btn-back {
  background: none;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: .85rem 1.5rem;
  font-size: 1.1rem;
  color: #6b7280;
  cursor: pointer;
  font-weight: 600;
  transition: border-color .15s, color .15s;
}

.dora-btn-back:hover {
  border-color: #374151;
  color: #374151;
}

/* ── Confirmation ─────────────────────────────────────────── */
.dora-confirmation {
  text-align: center;
  padding: 3rem 2rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
}

.dora-confirmation-icon {
  width: 72px;
  height: 72px;
  background: #dcfce7;
  color: #15803d;
  border-radius: 50%;
  font-size: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.dora-confirmation h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: .75rem;
}

.dora-booking-ref {
  font-size: 1.2rem;
  color: #374151;
}

.dora-cancel-link {
  color: #ef4444;
  font-size: 1rem;
  text-decoration: none;
}

.dora-cancel-link:hover {
  text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .dora-services-grid { grid-template-columns: 1fr 1fr; }
  .dora-service-card { font-size: 1.1rem; padding: 1.1rem .9rem; }
  .dora-service-card .dora-service-desc { font-size: .95rem; }
  .dora-service-card .dora-service-duration { font-size: .95rem; }
  .dora-step-title { font-size: 1.35rem; }
  .dora-form-grid { grid-template-columns: 1fr; }
  .dora-payment-options { grid-template-columns: 1fr; }
  .dora-btn-row { flex-direction: column-reverse; }
  .dora-btn-primary, .dora-btn-back { width: 100%; text-align: center; }
  .dora-step-dot label { display: none; }
}

@media (max-width: 380px) {
  .dora-services-grid { grid-template-columns: 1fr; }
}
