/* mh-booking — booking.css v3.0
   Paleta: #2C5F6E (ciemny turkus), #4A8FA8 (akcent), #EAF4F7 (tło miękkie)
*/

.mh-wrap {
  font-family: inherit;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ── KARTA ── */
.mh-card {
  background: #fff;
  border: 1px solid #D0E8F0;
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 2px 8px rgba(44,95,110,0.06);
}

/* ── HEADER ── */
.mh-header-card {
  background: linear-gradient(135deg, #2C5F6E 0%, #3D7A8A 100%);
  border-color: transparent;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 28px 28px 24px;
}
.mh-header-icon {
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.mh-header-text { flex: 1; }
.mh-header-title {
  font-size: 22px;
  font-weight: 400;
  color: #fff !important;
  margin: 0 0 6px 0;
  letter-spacing: -0.02em;
}
.mh-header-sub {
  font-size: 14px;
  color: rgba(255,255,255,0.82) !important;
  margin: 0;
  line-height: 1.5;
}

/* ── INFO BAR ── */
.mh-info-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  background: #F7F4EF;
  border: 1px solid #E5E5E5;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 14px;
  color: #4B4B4B;
}
.mh-info-item { display: flex; align-items: center; gap: 6px; }
.mh-info-item svg { color: #4A8FA8; flex-shrink: 0; }
.mh-info-item a { color: #2C5F6E; font-weight: 600; text-decoration: none; border-bottom: 1px solid #B8D8E4; }
.mh-info-item a:hover { border-bottom-color: #2C5F6E; }

/* ── CAL INTRO ── */
.mh-cal-intro {
  font-size: 14px;
  color: #6B6B6B;
  line-height: 1.6;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EEE;
}
.mh-cal-intro strong { color: #2C5F6E; }
.mh-legend-inline {
  display: inline-block;
  width: 12px; height: 12px;
  border-radius: 3px;
  vertical-align: middle;
  margin: 0 2px;
}
.mh-li-free { background: #EAF4F7; border: 1.5px solid #B8D8E4; }

/* ── WEEK NAV ── */
.mh-week-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.mh-nav-btn {
  width: 34px; height: 34px;
  border: 1.5px solid #B8D8E4;
  background: #fff;
  color: #2C5F6E;
  font-size: 15px;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
  flex-shrink: 0;
}
.mh-nav-btn:hover:not(:disabled) { background: #EAF4F7; border-color: #4A8FA8; }
.mh-nav-btn:disabled { opacity: 0.3; cursor: default; }
.mh-week-label { font-size: 14px; font-weight: 600; color: #2C5F6E; letter-spacing: 0.02em; }

/* ── LOADING ── */
.mh-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 0;
  font-size: 14px;
  color: #6B6B6B;
}
.mh-spinner {
  width: 16px; height: 16px;
  border: 2px solid #D0E8F0;
  border-top-color: #4A8FA8;
  border-radius: 50%;
  animation: mh-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes mh-spin { to { transform: rotate(360deg); } }

/* ── GRID ── */
.mh-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

/* ── DAY COLUMN ── */
.mh-day-col { display: flex; flex-direction: column; gap: 3px; }
.mh-day-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 4px 6px;
  background: #EAF4F7;
  border-radius: 5px;
  margin-bottom: 4px;
  border-bottom: 2px solid #2C5F6E;
}
.mh-day-name { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4A8FA8; }
.mh-day-num  { font-size: 17px; font-weight: 300; color: #2C5F6E; line-height: 1.2; }

/* ── SLOTS ── */
.mh-slot {
  width: 100%;
  padding: 7px 3px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  border: 1px solid transparent;
  text-align: center;
  cursor: default;
  transition: all 0.12s ease;
  line-height: 1;
  letter-spacing: 0.01em;
}
.mh-slot--free {
  background: #EAF4F7;
  border-color: #B8D8E4;
  color: #2C5F6E;
  cursor: pointer;
  font-weight: 600;
}
.mh-slot--free:hover {
  background: #2C5F6E;
  border-color: #2C5F6E;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(44,95,110,0.18);
}
.mh-slot--free.mh-slot--selected {
  background: #2C5F6E;
  border-color: #2C5F6E;
  color: #fff;
  box-shadow: 0 2px 6px rgba(44,95,110,0.25);
}
.mh-slot--off {
  background: #F5F5F5;
  border-color: #EBEBEB;
  color: #CCCCCC;
}
.mh-slot--busy {
  background: #F0F0F0;
  border-color: transparent;
  color: #BBBBBB;
  text-decoration: line-through;
  font-size: 11px;
}
.mh-slot--past {
  background: #F8F8F8;
  border-color: transparent;
  color: #DDDDDD;
  font-size: 11px;
}

/* ── LEGENDA ── */
.mh-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid #EEE;
  font-size: 13px;
  color: #888;
}
.mh-legend-item { display: flex; align-items: center; gap: 6px; }
.mh-legend-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.mh-ld-free { background: #EAF4F7; border: 1.5px solid #B8D8E4; }
.mh-ld-busy { background: #F0F0F0; border: 1px solid #E0E0E0; }
.mh-ld-off  { background: #F5F5F5; border: 1px solid #EBEBEB; }

/* ── FORM CARD ── */
.mh-form-card { border-top: 3px solid #2C5F6E; }
.mh-form-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
  flex-wrap: wrap;
}
.mh-form-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #4A8FA8; margin-bottom: 4px; }
.mh-form-slot-label { font-size: 16px; font-weight: 600; color: #2C5F6E; }
.mh-form-cancel { background: none; border: none; font-size: 13px; color: #888; cursor: pointer; padding: 0; font-family: inherit; text-decoration: underline; white-space: nowrap; }
.mh-form-cancel:hover { color: #2C5F6E; }
.mh-form-note { font-size: 14px; color: #6B6B6B; margin: 0 0 20px; padding-bottom: 16px; border-bottom: 1px solid #EEE; line-height: 1.6; }

.mh-form { display: flex; flex-direction: column; gap: 14px; }
.mh-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mh-field { display: flex; flex-direction: column; gap: 5px; }
.mh-field label { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: #888; }
.mh-field input,
.mh-field textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 10px 13px;
  border: 1.5px solid #D0E8F0;
  border-radius: 5px;
  background: #fff;
  color: #2C2C2C;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.mh-field input:focus,
.mh-field textarea:focus { outline: none; border-color: #4A8FA8; box-shadow: 0 0 0 3px rgba(74,143,168,0.12); }
.mh-field textarea { resize: vertical; min-height: 80px; }
.mh-field-note { font-size: 12px; color: #AAAAAA; }
.mh-submit {
  display: block; width: 100%; padding: 14px;
  background: #2C5F6E; border: none; color: #fff;
  font-family: inherit; font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer; border-radius: 5px;
  transition: background 0.2s; margin-top: 4px;
}
.mh-submit:hover:not(:disabled) { background: #0F2613; }
.mh-submit:disabled { opacity: 0.5; cursor: default; }

/* ── SUCCESS ── */
.mh-success-card { text-align: center; padding: 48px 28px; border-top: 3px solid #4A8FA8; }
.mh-success-icon {
  width: 60px; height: 60px;
  background: #EAF4F7; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: #4A8FA8;
}
.mh-success-title { font-size: 22px; font-weight: 600; color: #2C5F6E; margin: 0 0 12px; letter-spacing: -0.01em; }
.mh-success-text  { font-size: 15px; color: #4B4B4B; max-width: 460px; margin: 0 auto 12px; line-height: 1.7; }
.mh-success-sub   { font-size: 14px; color: #888; }
.mh-success-sub a { color: #2C5F6E; font-weight: 600; text-decoration: none; border-bottom: 1px solid #B8D8E4; }

/* ── RESPONSIVE ── */
@media (max-width: 600px) {
  .mh-card { padding: 18px 16px; }
  .mh-header-card { padding: 20px 16px; }
  .mh-grid { gap: 4px; }
  .mh-slot { font-size: 11px; padding: 6px 2px; }
  .mh-day-num { font-size: 15px; }
  .mh-field-row { grid-template-columns: 1fr; }
}
