/* === Booking page styles v3 === */

.bk-wrap { max-width: 1100px; margin: 0 auto; padding: 24px 20px 80px; }
.bk-header { text-align: center; margin-bottom: 24px; }
.bk-header h1 { font-family: 'Varela Round', sans-serif; color: #1E3D6F; font-size: 28px; margin: 0 0 6px; }
.bk-header p { color: #5B6679; margin: 0; font-size: 14px; }

.bk-steps { list-style: none; display: flex; gap: 8px; justify-content: center; padding: 0; margin: 0 0 28px; flex-wrap: wrap; }
.bk-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 24px; background: #fff; border: 1px solid #E1E6EE; font-weight: 500; font-size: 13px; color: #8F9BB3; }
.bk-steps li span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #F0F4F9; color: #8F9BB3; font-weight: 700; font-size: 12px; }
.bk-steps li.active { color: #1E3D6F; border-color: #4A90D9; background: #E8F0F9; }
.bk-steps li.active span { background: #1E3D6F; color: #fff; }
.bk-steps li.done span { background: #2ECC71; color: #fff; }

.bk-panel { animation: fadeIn .15s; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.bk-cal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bk-cal-box, .bk-slot-box { background: #fff; border: 1px solid #E1E6EE; border-radius: 12px; padding: 18px; }
@media (max-width: 780px) { .bk-cal-grid { grid-template-columns: 1fr; } }

.bk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.bk-cal-head h3 { margin: 0; font-family: 'Varela Round', sans-serif; font-size: 16px; color: #1A2138; }
.bk-icon-btn { width: 36px; height: 36px; border: 1px solid #E1E6EE; background: #fff; border-radius: 8px; display: grid; place-items: center; cursor: pointer; color: #1E3D6F; }
.bk-icon-btn:hover { background: #F0F4F9; border-color: #4A90D9; }
.bk-icon-btn i { width: 18px; height: 18px; }

.bk-cal-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 11px; color: #8F9BB3; padding: 8px 0 14px; align-items: center; }
.bk-cal-legend .lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.lg-free { background: #2ECC71; }
.lg-partial { background: #F5A623; }
.lg-busy { background: #E67E22; }
.lg-full { background: #EB5757; }

.bk-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 4px; font-size: 11px; color: #8F9BB3; font-weight: 600; text-align: center; padding: 0 2px; }

.bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.bk-day {
  aspect-ratio: 1;
  border: 1px solid #E1E6EE;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 3px;
  font-family: inherit;
  font-size: 14px;
  color: #1A2138;
  font-weight: 500;
  position: relative;
  transition: transform .1s, box-shadow .1s;
  padding: 0;
}
.bk-day:hover:not([disabled]) { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(30,61,111,.12); border-color: #4A90D9; }
.bk-day-empty { background: transparent; border: none; cursor: default; pointer-events: none; }
.bk-day-num { font-size: 14px; line-height: 1; }
.bk-day-dot { display: block; width: 6px; height: 6px; border-radius: 50%; }
.bk-day-free .bk-day-dot { background: #2ECC71; }
.bk-day-partial .bk-day-dot { background: #F5A623; }
.bk-day-busy .bk-day-dot { background: #E67E22; }
.bk-day-full .bk-day-dot { background: #EB5757; }
.bk-day-full { background: #FBF0F0; color: #B92A2A; border-color: #F2C8C8; }
.bk-day-closed, .bk-day-past { background: #F7F9FC; color: #C5CBD4; cursor: not-allowed; border-color: #EEF1F5; }
.bk-day-today { border-color: #4A90D9; border-width: 2px; font-weight: 700; }
.bk-day-selected { background: #1E3D6F !important; color: #fff !important; border-color: #1E3D6F !important; transform: none; box-shadow: 0 4px 12px rgba(30,61,111,.3); }
.bk-day-selected .bk-day-dot { background: #fff !important; }
.bk-day-disabled { pointer-events: none; opacity: .55; }

.bk-slot-head { margin-bottom: 12px; }
.bk-slot-head h3 { margin: 0 0 4px; font-family: 'Varela Round', sans-serif; font-size: 16px; color: #1A2138; }
.bk-hint { font-size: 12px; color: #8F9BB3; }

.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; max-height: 380px; overflow-y: auto; padding: 2px; }
.bk-slot {
  height: 40px;
  border: 1px solid #E1E6EE;
  background: #fff;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #1A2138;
  cursor: pointer;
  transition: all .1s;
}
.bk-slot:hover:not([disabled]) { border-color: #4A90D9; color: #1E3D6F; background: #F0F4F9; }
.bk-slot-busy { background: #FBF0F0; color: #B92A2A; cursor: not-allowed; border-color: #F2C8C8; text-decoration: line-through; opacity: 0.5; }
.bk-slot-start, .bk-slot-end { background: #1E3D6F !important; color: #fff !important; border-color: #1E3D6F !important; }
.bk-slot-mid { background: #4A90D9 !important; color: #fff !important; border-color: #4A90D9 !important; }

.bk-loading, .bk-empty { text-align: center; color: #8F9BB3; padding: 32px 12px; font-size: 13px; grid-column: 1/-1; }

.bk-selection {
  position: sticky; bottom: 16px;
  margin-top: 20px;
  background: #fff;
  border: 1px solid #4A90D9;
  border-radius: 12px;
  padding: 14px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  box-shadow: 0 8px 24px rgba(30,61,111,.15);
  flex-wrap: wrap;
}
.bk-selection-info { display: flex; align-items: center; gap: 12px; }
.bk-selection-info i { width: 32px; height: 32px; color: #1E3D6F; background: #E8F0F9; padding: 6px; border-radius: 8px; }
.bk-selection-info strong { display: block; font-family: 'Varela Round', sans-serif; font-size: 15px; color: #1A2138; }
.bk-selection-info span { display: block; font-size: 13px; color: #5B6679; }

.bk-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.bk-plan {
  background: #fff;
  border: 2px solid #E1E6EE;
  border-radius: 12px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  position: relative;
}
.bk-plan:hover:not([disabled]) { border-color: #4A90D9; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(30,61,111,.1); }
.bk-plan[disabled] { opacity: 0.5; cursor: not-allowed; }
.bk-plan-selected { border-color: #1E3D6F !important; background: #F0F4F9; }
.bk-plan-recommended { border-color: #F5A623; }
.bk-plan-badge { position: absolute; top: -8px; right: 14px; background: #F5A623; color: #fff; font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 10px; text-transform: uppercase; letter-spacing: 0.05em; }
.bk-plan-name { font-family: 'Varela Round', sans-serif; font-weight: 700; font-size: 15px; color: #1A2138; margin-bottom: 6px; }
.bk-plan-price { font-family: 'Varela Round', sans-serif; font-size: 24px; font-weight: 700; color: #1E3D6F; line-height: 1; margin-bottom: 4px; }
.bk-plan-premium { font-size: 11px; color: #F5A623; font-weight: 600; margin-bottom: 6px; }
.bk-plan-desc { font-size: 12px; color: #5B6679; line-height: 1.4; }

.bk-price-box { background: #F7F9FC; border: 1px solid #E1E6EE; border-radius: 12px; padding: 18px 22px; margin-top: 20px; }
.pr { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.pr span { color: #5B6679; }
.pr strong { color: #1A2138; font-weight: 600; }
.pr-muted { color: #8F9BB3; font-size: 12px; }
.pr-muted span { color: #8F9BB3; }
.pr-total { border-top: 1px solid #E1E6EE; margin-top: 8px; padding-top: 12px; font-size: 16px; }
.pr-total strong { font-family: 'Varela Round', sans-serif; color: #1E3D6F; font-size: 20px; }

.bk-sum-box { background: #F7F9FC; border: 1px solid #E1E6EE; border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }

.bk-panel h3 { font-family: 'Varela Round', sans-serif; font-size: 18px; color: #1A2138; margin: 0 0 8px; }
.muted { color: #5B6679; margin: 0 0 14px; font-size: 13px; }

form { background: #fff; border: 1px solid #E1E6EE; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.hp { position: absolute; left: -9999px; }
.bk-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-full { grid-column: 1/-1; }
@media (max-width: 640px) { .bk-form-row { grid-template-columns: 1fr; } }
form label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: #1A2138; font-weight: 500; }
form input, form select, form textarea { height: 40px; padding: 0 12px; border: 1px solid #D8DEE6; border-radius: 8px; font-family: inherit; font-size: 14px; background: #fff; outline: none; }
form textarea { height: auto; padding: 10px 12px; resize: vertical; }
form input:focus, form select:focus, form textarea:focus { border-color: #4A90D9; box-shadow: 0 0 0 3px rgba(74,144,217,.15); }

.bk-check { flex-direction: row !important; align-items: center; gap: 10px; cursor: pointer; }
.bk-check input { width: 18px; height: 18px; height: auto; margin: 0; flex-shrink: 0; }
.bk-check span { font-size: 13px; color: #5B6679; font-weight: 400; }
.bk-company { display: flex; flex-direction: column; gap: 12px; padding: 14px; background: #F7F9FC; border-radius: 8px; }

.bk-actions { display: flex; gap: 10px; justify-content: space-between; margin-top: 16px; }
.bk-actions .btn { flex: 1; justify-content: center; }

.form-result { font-size: 13px; font-weight: 500; text-align: center; min-height: 18px; margin-top: 10px; }
.form-result.err { color: #EB5757; }
.form-result.ok { color: #2ECC71; }
