/* DocOnCall Booking Wizard — booking.css */

.dcb-wizard {
  max-width: 680px;
  margin: 0 auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #1a1a2e;
}
.dcb-hidden {
  display: none !important;
}

/* ─── Progress ─────────────────────────────────────────────────────────────── */
.dcb-progress {
  display: flex;
  align-items: center;
  margin-bottom: 32px;
  padding: 0 4px;
}
.dcb-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.dcb-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition:
    background 0.2s,
    color 0.2s;
}
.dcb-dot-label {
  font-size: 11px;
  color: #aaa;
  white-space: nowrap;
}
.dcb-step-dot.active .dcb-dot {
  background: #0a7ea4;
  color: #fff;
}
.dcb-step-dot.active .dcb-dot-label {
  color: #0a7ea4;
  font-weight: 600;
}
.dcb-step-dot.done .dcb-dot {
  background: #0a7ea4;
  color: #fff;
}
.dcb-step-dot.done .dcb-dot::after {
  content: "✓";
  font-size: 15px;
}
.dcb-step-dot.done .dcb-dot-number {
  display: none;
}
.dcb-line {
  flex: 1;
  height: 2px;
  background: #e0e0e0;
  margin: 0 6px;
  margin-bottom: 18px;
  transition: background 0.2s;
}
.dcb-step-dot.done ~ .dcb-line {
  background: #0a7ea4;
}

/* ─── Panels ───────────────────────────────────────────────────────────────── */
.dcb-panel h2 {
  font-size: 22px;
  font-weight: 800;
  color: #1a1a2e;
  margin: 0 0 6px;
}
.dcb-sub {
  color: #666;
  font-size: 15px;
  margin: 0 0 22px;
}

/* ─── Services ─────────────────────────────────────────────────────────────── */
.dcb-service-grid {
  display: grid;
  gap: 10px;
}

.dcb-service {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  cursor: pointer;
  transition:
    border-color 0.15s,
    background 0.15s;
  user-select: none;
}
.dcb-service:hover,
.dcb-service:focus {
  border-color: #0a7ea4;
  background: #f0f9fc;
  outline: none;
}
.dcb-service.selected {
  border-color: #0a7ea4;
  background: #e8f5fb;
}

.dcb-svc-icon {
  font-size: 28px;
  width: 42px;
  text-align: center;
  flex-shrink: 0;
}
.dcb-svc-info {
  flex: 1;
}
.dcb-svc-name {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a2e;
}
.dcb-svc-price {
  font-size: 13px;
  color: #0a7ea4;
  font-weight: 700;
  margin-top: 2px;
}
.dcb-svc-check {
  font-size: 18px;
  color: #0a7ea4;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}
.dcb-service.selected .dcb-svc-check {
  opacity: 1;
}

/* ─── Calendar ─────────────────────────────────────────────────────────────── */
.dcb-dt-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 16px;
}
@media (max-width: 540px) {
  .dcb-dt-wrap {
    grid-template-columns: 1fr;
  }
}

.dcb-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 15px;
}
.dcb-cal-nav {
  background: none;
  border: 1.5px solid #e0e0e0;
  border-radius: 7px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  cursor: pointer;
  color: #0a7ea4;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.1s;
}
.dcb-cal-nav:hover {
  background: #f0f9fc;
}

.dcb-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.dcb-cal-dname {
  font-size: 11px;
  font-weight: 700;
  color: #bbb;
  text-align: center;
  padding: 4px 0;
}
.dcb-cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 13px;
}
.dcb-avail {
  cursor: pointer;
  color: #1a1a2e;
  font-weight: 500;
  transition: background 0.1s;
}
.dcb-avail:hover,
.dcb-avail:focus {
  background: #e8f5fb;
  outline: none;
}
.dcb-sel {
  background: #0a7ea4 !important;
  color: #fff !important;
  font-weight: 700;
}
.dcb-disabled {
  color: #d0d0d0;
  pointer-events: none;
}
.dcb-empty {
  pointer-events: none;
}

/* ─── Time Slots ───────────────────────────────────────────────────────────── */
.dcb-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.dcb-slot {
  padding: 10px 8px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  transition:
    border-color 0.15s,
    background 0.15s,
    color 0.15s;
}
.dcb-slot:hover,
.dcb-slot:focus {
  border-color: #0a7ea4;
  color: #0a7ea4;
  outline: none;
}
.dcb-slot.selected {
  background: #0a7ea4;
  border-color: #0a7ea4;
  color: #fff;
}
.dcb-slots-hint,
.dcb-hint {
  color: #aaa;
  font-size: 14px;
  text-align: center;
  padding: 28px 0;
  margin: 0;
}

/* ─── Form ─────────────────────────────────────────────────────────────────── */
.dcb-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 0;
}
@media (max-width: 480px) {
  .dcb-row {
    grid-template-columns: 1fr;
  }
}

.dcb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}
.dcb-row .dcb-field {
  margin-bottom: 0;
}
.dcb-row + .dcb-field {
  margin-top: 16px;
}

.dcb-field label {
  font-size: 14px;
  font-weight: 600;
  color: #444;
}
.dcb-field b {
  color: #e53e3e;
  font-weight: 700;
}

.dcb-field input[type="text"],
.dcb-field input[type="email"],
.dcb-field input[type="tel"],
.dcb-field input[type="date"],
.dcb-field select,
.dcb-field textarea {
  padding: 10px 13px;
  border: 1.5px solid #ddd;
  border-radius: 9px;
  font-size: 15px;
  font-family: inherit;
  color: #1a1a2e;
  background: #fff;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.dcb-field input:focus,
.dcb-field select:focus,
.dcb-field textarea:focus {
  outline: none;
  border-color: #0a7ea4;
  box-shadow: 0 0 0 3px rgba(10, 126, 164, 0.1);
}

.dcb-field input.dcb-invalid,
.dcb-field textarea.dcb-invalid,
.dcb-field select.dcb-invalid {
  border-color: #e53e3e;
}

.dcb-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #444;
}
.dcb-check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  line-height: 1.5;
}
.dcb-check input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  accent-color: #0a7ea4;
}
.dcb-check input.dcb-invalid {
  outline: 2px solid #e53e3e;
  border-radius: 2px;
}
.dcb-check a {
  color: #0a7ea4;
}

/* ─── Summary (Step 4) ─────────────────────────────────────────────────────── */
.dcb-summary {
  background: #f8feff;
  border: 1.5px solid #cde9f5;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
}
.dcb-sum-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid #e4f3f9;
  font-size: 15px;
  gap: 12px;
}
.dcb-sum-row:last-child {
  border-bottom: none;
}
.dcb-sum-row span {
  color: #888;
  flex-shrink: 0;
}
.dcb-sum-row strong {
  color: #1a1a2e;
  text-align: right;
}
.dcb-sum-total {
  background: #e8f5fb;
}
.dcb-sum-total strong {
  color: #0a7ea4;
  font-size: 20px;
}

/* ─── Buttons & Footer ─────────────────────────────────────────────────────── */
.dcb-footer {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  align-items: center;
  justify-content: flex-end;
}
.dcb-footer--pay {
  flex-wrap: wrap;
}

.dcb-btn-primary {
  background: #0a7ea4;
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.dcb-btn-primary:hover:not(:disabled) {
  background: #086e90;
}
.dcb-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.dcb-btn-secondary {
  background: #fff;
  color: #555;
  border: 1.5px solid #ddd;
  padding: 12px 22px;
  border-radius: 10px;
  font-size: 15px;
  cursor: pointer;
  transition: border-color 0.15s;
  white-space: nowrap;
}
.dcb-btn-secondary:hover {
  border-color: #aaa;
  color: #333;
}

.dcb-btn-pay {
  flex: 1;
  background: linear-gradient(135deg, #0a7ea4 0%, #065f7e 100%);
  color: #fff;
  border: none;
  padding: 16px 28px;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: opacity 0.15s;
}
.dcb-btn-pay:hover:not(:disabled) {
  opacity: 0.9;
}
.dcb-btn-pay:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.dcb-secure {
  font-size: 13px;
  color: #aaa;
  text-align: center;
  margin-top: 10px;
}

/* ─── Notices ──────────────────────────────────────────────────────────────── */
.dcb-notice {
  padding: 14px 18px;
  border-radius: 9px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.55;
}
.dcb-err {
  background: #fff5f5;
  border-left: 4px solid #e53e3e;
  color: #c53030;
}
.dcb-info {
  background: #ebf8ff;
  border-left: 4px solid #63b3ed;
  color: #2c5282;
}
.dcb-notice a {
  color: inherit;
  font-weight: 600;
}

/* ─── Success Screen ───────────────────────────────────────────────────────── */
.dcb-success {
  text-align: center;
  padding: 36px 20px;
}
.dcb-success-icon {
  font-size: 60px;
  margin-bottom: 14px;
}
.dcb-success h2 {
  font-size: 26px;
  font-weight: 800;
  color: #0a7ea4;
  margin: 0 0 10px;
}
.dcb-success p {
  color: #555;
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 10px;
}
.dcb-success-details {
  background: #f0f9fc;
  border-radius: 12px;
  padding: 20px 24px;
  display: inline-block;
  margin: 18px auto;
  text-align: left;
  min-width: 280px;
  max-width: 100%;
}
.dcb-success-details div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #daeef5;
  font-size: 15px;
}
.dcb-success-details div:last-child {
  border-bottom: none;
}
.dcb-success-details span {
  color: #888;
  flex-shrink: 0;
}
.dcb-ref {
  font-size: 13px;
  color: #bbb;
  margin-top: 6px;
}
.dcb-ref code {
  background: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  color: #555;
}

/* ─── Loading Spinner ──────────────────────────────────────────────────────── */
.dcb-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
  gap: 16px;
  color: #888;
  font-size: 15px;
}
.dcb-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e0e0e0;
  border-top-color: #0a7ea4;
  border-radius: 50%;
  animation: dcb-spin 0.75s linear infinite;
}
@keyframes dcb-spin {
  to {
    transform: rotate(360deg);
  }
}
