/* ============================================================
   Booking flow — prefix: .bk-
   Avoids collisions with existing site styles (.valuation-*)
   ============================================================ */

/* ---------- Page shell ---------- */
.bk-page {
  min-height: 100vh;
  background: #f8f8fc;
}

.bk-page-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ---------- Plan badge ---------- */
.bk-plan-badge {
  display: inline-block;
  background: #1a1a2e;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem .9rem;
  border-radius: 4px;
  margin-bottom: 1.5rem;
}

/* ---------- Stepper ---------- */
.bk-stepper {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: .25rem;
}

.bk-stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  min-width: 72px;
}

.bk-stepper-item:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
}

.bk-stepper-item.completed::after {
  background: #504E9B;
}

.bk-stepper-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e0e0e0;
  color: #888;
  font-size: .8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}

.bk-stepper-item.active .bk-stepper-num {
  background: #504E9B;
  color: #fff;
}

.bk-stepper-item.completed .bk-stepper-num {
  background: #504E9B;
  color: #fff;
}

.bk-stepper-label {
  font-size: .65rem;
  color: #999;
  text-align: center;
  margin-top: .4rem;
  line-height: 1.2;
  max-width: 72px;
}

.bk-stepper-item.active .bk-stepper-label,
.bk-stepper-item.completed .bk-stepper-label {
  color: #504E9B;
  font-weight: 600;
}

/* ---------- Step panels ---------- */
.bk-step {
  display: none;
  animation: bkFadeIn .28s ease;
}

.bk-step.active {
  display: block;
}

@keyframes bkFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Step heading ---------- */
.bk-step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
}

/* ---------- Card wrapper ---------- */
.bk-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* ---------- Calendar ---------- */
.bk-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.bk-calendar-nav {
  background: none;
  border: none;
  cursor: pointer;
  color: #504E9B;
  font-size: 1.2rem;
  padding: .25rem .5rem;
  border-radius: 6px;
  transition: background .15s;
}

.bk-calendar-nav:hover {
  background: #ede9f6;
}

.bk-calendar-month {
  font-weight: 700;
  font-size: 1rem;
  color: #1a1a2e;
  text-transform: capitalize;
}

.bk-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.bk-calendar-weekday {
  font-size: .65rem;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  padding: .25rem 0;
}

.bk-day {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .88rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, color .15s;
  user-select: none;
}

.bk-day:empty {
  cursor: default;
}

.bk-day.available:hover {
  background: #ede9f6;
  color: #504E9B;
}

.bk-day.today {
  border: 2px solid #504E9B;
  font-weight: 700;
}

.bk-day.selected {
  background: #1a1a2e;
  color: #fff;
  font-weight: 700;
}

.bk-day.disabled {
  color: #ccc;
  cursor: not-allowed;
}

/* ---------- Time slots ---------- */
.bk-time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}

.bk-time-slot {
  padding: .55rem 1.25rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  color: #444;
}

.bk-time-slot:hover {
  border-color: #504E9B;
  color: #504E9B;
}

.bk-time-slot.selected {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #fff;
}

.bk-calendar-notice {
  background: #fffbe6;
  border: 1px solid #fbc249;
  border-radius: 8px;
  padding: .75rem 1rem;
  font-size: .82rem;
  color: #6b5700;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ---------- Form fields ---------- */
.bk-form-group {
  margin-bottom: 1.25rem;
}

.bk-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: #333;
  margin-bottom: .4rem;
}

.bk-label .bk-optional {
  font-weight: 400;
  color: #aaa;
  font-size: .78rem;
}

.bk-input {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-size: .92rem;
  color: #222;
  background: #fff;
  transition: border-color .15s;
  outline: none;
}

.bk-input:focus {
  border-color: #504E9B;
}

.bk-input::placeholder {
  color: #bbb;
}

.bk-error {
  font-size: .78rem;
  color: #e53e3e;
  margin-top: .3rem;
  display: none;
}

.bk-error.visible {
  display: block;
}

/* ---------- Upload rows ---------- */
.bk-upload-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f0f0f0;
}

.bk-upload-section-title {
  font-size: .92rem;
  font-weight: 700;
  color: #333;
  margin-bottom: .25rem;
}

.bk-upload-section-note {
  font-size: .8rem;
  color: #888;
  margin-bottom: 1rem;
}

.bk-upload-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.bk-upload-row:last-child {
  border-bottom: none;
}

.bk-upload-label-wrap {
  flex: 1;
  min-width: 0;
}

.bk-upload-name {
  font-size: .88rem;
  font-weight: 600;
  color: #333;
}

.bk-upload-required {
  font-size: .72rem;
  color: #e53e3e;
  font-weight: 600;
  margin-left: .3rem;
}

.bk-upload-filename {
  font-size: .75rem;
  color: #504E9B;
  margin-top: .15rem;
  display: none;
}

.bk-upload-filename.visible {
  display: block;
}

.bk-upload-btn {
  white-space: nowrap;
  padding: .45rem 1rem;
  border: 1.5px solid #504E9B;
  border-radius: 8px;
  background: #fff;
  color: #504E9B;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
  flex-shrink: 0;
}

.bk-upload-btn:hover {
  background: #504E9B;
  color: #fff;
}

.bk-upload-btn.uploaded {
  background: #e8f5e9;
  border-color: #4caf50;
  color: #2e7d32;
}

.bk-upload-notice {
  font-size: .78rem;
  color: #888;
  margin-top: 1rem;
  display: flex;
  align-items: flex-start;
  gap: .4rem;
}

/* ---------- Payment step ---------- */
.bk-summary-box {
  background: #f8f8fc;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.bk-summary-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .88rem;
  color: #555;
  margin-bottom: .6rem;
}

.bk-summary-row:last-child {
  margin-bottom: 0;
}

.bk-summary-row i {
  color: #504E9B;
  width: 16px;
  flex-shrink: 0;
}

.bk-summary-total {
  border-top: 1px solid #e0e0e0;
  margin-top: .75rem;
  padding-top: .75rem;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a2e;
}

.bk-card-inputs {
  display: grid;
  gap: 1rem;
}

.bk-card-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.bk-card-logos {
  display: flex;
  gap: .5rem;
  margin-top: .5rem;
  align-items: center;
}

.bk-card-logos img {
  height: 24px;
}

.bk-card-logo-placeholder {
  background: #e0e0e0;
  border-radius: 4px;
  height: 24px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .55rem;
  color: #888;
  font-weight: 700;
  letter-spacing: .02em;
}

.bk-terms-check {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  margin-top: 1rem;
  font-size: .82rem;
  color: #555;
}

.bk-terms-check input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: #504E9B;
}

/* ---------- Navigation buttons ---------- */
.bk-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.75rem;
  gap: 1rem;
}

.bk-btn-back {
  background: none;
  border: 1.5px solid #d0d0d0;
  color: #666;
  padding: .7rem 1.5rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, color .15s;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.bk-btn-back:hover {
  border-color: #504E9B;
  color: #504E9B;
}

.bk-btn-next {
  background: #504E9B;
  color: #fff;
  border: none;
  padding: .7rem 2rem;
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-left: auto;
}

.bk-btn-next:hover {
  background: #3f3d7a;
}

.bk-btn-pay {
  background: #504E9B;
  color: #fff;
  border: none;
  padding: .85rem 2.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  margin-top: 1.25rem;
  transition: background .15s, opacity .15s;
}

.bk-btn-pay:hover {
  background: #3d3b7a;
}

.bk-btn-pay:disabled {
  opacity: .4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Confirmation ---------- */
.bk-confirm-icon {
  width: 72px;
  height: 72px;
  background: #e8f5e9;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}

.bk-confirm-icon i {
  font-size: 2rem;
  color: #4caf50;
}

.bk-confirm-title {
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  color: #1a1a2e;
  margin-bottom: .5rem;
}

.bk-confirm-subtitle {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.bk-confirm-detail {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: .9rem;
  color: #444;
}

.bk-confirm-detail:last-child {
  border-bottom: none;
}

.bk-confirm-detail i {
  color: #504E9B;
  width: 18px;
}

.bk-ante-sesion {
  text-align: center;
  padding: 1rem;
}

.bk-ante-sesion-icon {
  width: 80px;
  height: 80px;
  background: #ede9f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.bk-ante-sesion-icon i {
  font-size: 2rem;
  color: #504E9B;
}

/* ---------- Plan selector cards ---------- */
.bk-plan-card {
  border: 2px solid #e0e0e0;
  border-radius: 16px;
  padding: 2rem;
  background: #fff;
  position: relative;
  transition: box-shadow .2s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.bk-plan-card:hover {
  box-shadow: 0 8px 24px rgba(80,78,155,.12);
}

.bk-plan-card.featured {
  border-color: #1a1a2e;
}

.bk-plan-card-badge {
  position: absolute;
  top: -1px;
  right: 20px;
  background: #1a1a2e;
  color: #fff;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 0 0 8px 8px;
}

.bk-plan-icon {
  width: 52px;
  height: 52px;
  background: #ede9f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.bk-plan-icon i {
  font-size: 1.4rem;
  color: #504E9B;
}

.bk-plan-title {
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #1a1a2e;
  margin-bottom: .2rem;
}

.bk-plan-subtitle {
  font-size: .82rem;
  color: #f59e0b;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.bk-plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  flex: 1;
}

.bk-plan-features li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .87rem;
  color: #444;
  margin-bottom: .7rem;
}

.bk-plan-features li i {
  color: #504E9B;
  flex-shrink: 0;
  margin-top: 2px;
}

.bk-plan-price {
  font-size: 2rem;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: .15rem;
}

.bk-plan-price-note {
  font-size: .78rem;
  color: #888;
  margin-bottom: 1.25rem;
}

.bk-plan-cta {
  display: block;
  text-align: center;
  padding: .85rem 1rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: opacity .15s;
}

.bk-plan-cta:hover {
  opacity: .88;
  text-decoration: none;
}

.bk-plan-cta.secondary {
  background: #fbc249;
  color: #1a1a2e;
}

.bk-plan-cta.primary {
  background: #1a1a2e;
  color: #fff;
}

.bk-plan-footer-note {
  text-align: center;
  font-size: .8rem;
  color: #888;
  margin-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
}

/* ---------- Disabled continue button ---------- */
.bk-btn-next:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ---------- Phone verification ---------- */
.bk-btn-send-code {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .45rem 1rem;
  background: transparent;
  border: 1.5px solid #504E9B;
  color: #504E9B;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.bk-btn-send-code:hover {
  background: #504E9B;
  color: #fff;
}

.bk-verify-row {
  display: flex;
  gap: .6rem;
  align-items: center;
}

.bk-verify-input {
  flex: 1;
  letter-spacing: .15em;
  font-size: 1.1rem;
  text-align: center;
}

.bk-verify-btn {
  padding: .55rem 1.1rem;
  background: #504E9B;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s;
}

.bk-verify-btn:hover { background: #3d3b80; }

.bk-verify-resend {
  display: inline-block;
  margin-top: .5rem;
  background: none;
  border: none;
  color: #504E9B;
  font-size: .8rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0;
}

.bk-verified-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #198754;
  font-size: .88rem;
  font-weight: 600;
  margin-top: .4rem;
}

/* ---------- Info box ---------- */
.bk-info-box {
  background: #f0f0fa;
  border-left: 3px solid #504E9B;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: .85rem;
  color: #444;
  margin-bottom: 1rem;
}

/* ---------- Drag-drop dropzone ---------- */
.bk-dropzone {
  border: 2px dashed #c0bde8;
  border-radius: 10px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: 1rem;
}

.bk-dropzone.dragover {
  border-color: #504E9B;
  background: #f5f4fb;
}

.bk-dropzone-icon {
  font-size: 2rem;
  color: #c0bde8;
  margin-bottom: .75rem;
}

.bk-dropzone p {
  font-size: .88rem;
  color: #888;
  margin: 0 0 .75rem;
}

.bk-select-files-btn {
  display: inline-block;
  padding: .5rem 1.25rem;
  border: 1.5px solid #504E9B;
  border-radius: 8px;
  background: #fff;
  color: #504E9B;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, color .15s;
}

.bk-select-files-btn:hover {
  background: #504E9B;
  color: #fff;
}

/* ---------- Files list ---------- */
.bk-files-list {
  margin-top: .5rem;
}

.bk-file-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem 0;
  font-size: .85rem;
  color: #444;
  border-bottom: 1px solid #f5f5f5;
}

.bk-file-item:last-child {
  border-bottom: none;
}

.bk-file-item i {
  color: #4caf50;
  flex-shrink: 0;
}

.bk-file-remove {
  cursor: pointer;
  color: #bbb;
  margin-left: auto;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
}

.bk-file-remove:hover {
  color: #e53e3e;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
  .bk-card {
    padding: 1.25rem;
  }

  .bk-stepper-label {
    font-size: .58rem;
    max-width: 60px;
  }

  .bk-card-row {
    grid-template-columns: 1fr;
  }

  .bk-upload-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .bk-upload-btn {
    width: 100%;
    text-align: center;
  }

  .bk-plan-card {
    padding: 1.5rem;
    margin-bottom: 1.5rem;
  }
}
