/* ── Grundlayout ─────────────────────────────────────────────────────────── */
.mgk-booking {
  max-width: 720px;
  margin: 0 auto;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  color: #333;
}

/* ── Steg-indikator ──────────────────────────────────────────────────────── */
.mgk-steps {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
}

/* Inaktiva steg: liten cirkel med bara siffran */
.mgk-step {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  height: 36px;
  background: #eee;
  border-radius: 50%;
  transition: all .25s ease;
  overflow: hidden;
}
.mgk-step span.mgk-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ccc;
  color: #fff;
  border-radius: 50%;
  width: 22px; height: 22px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.mgk-step .mgk-step-label {
  display: none;
  font-size: 13px;
  margin-left: 8px;
  white-space: nowrap;
  overflow: hidden;
}

/* Aktivt steg: pill-form med text */
.mgk-step.active {
  flex: 1;
  border-radius: 8px;
  background: #1a5c2e;
  color: #fff;
  padding: 10px 14px;
  height: auto;
  justify-content: flex-start;
}
.mgk-step.active span.mgk-step-num { background: rgba(255,255,255,.3); }
.mgk-step.active .mgk-step-label   { display: inline; }

/* Avklarade steg: liten grön cirkel */
.mgk-step.done { background: #d4edda; }
.mgk-step.done span.mgk-step-num { background: #1a5c2e; }

/* ── Steg-innehåll ───────────────────────────────────────────────────────── */
.mgk-step-content { display: none; }
.mgk-step-content.active { display: block; }
.mgk-step-content h2 { margin-bottom: 16px; font-size: 20px; }

/* ── Tjänst-kort ─────────────────────────────────────────────────────────── */
.mgk-service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.mgk-service-card {
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 18px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.mgk-service-card:hover,
.mgk-service-card.selected { border-color: #1a5c2e; box-shadow: 0 2px 10px rgba(26,92,46,.15); }
.mgk-service-card.selected { background: #f0f9f3; }
.mgk-service-card strong { display: block; margin-bottom: 6px; }
.mgk-service-card p { font-size: 13px; color: #666; margin: 0 0 6px; }
.mgk-service-card small { color: #1a5c2e; font-weight: 600; }

/* ── Tränar-kort ─────────────────────────────────────────────────────────── */
.mgk-trainer-list {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.mgk-trainer-card {
  flex: 1;
  min-width: 160px;
  border: 2px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.mgk-trainer-card:hover,
.mgk-trainer-card.selected { border-color: #1a5c2e; box-shadow: 0 2px 10px rgba(26,92,46,.15); }
.mgk-trainer-card.selected { background: #f0f9f3; }
.mgk-trainer-avatar {
  width: 56px; height: 56px;
  background: #1a5c2e;
  color: #fff;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  line-height: 56px;
  margin: 0 auto 10px;
}
.mgk-trainer-avatar--photo {
  background: none;
  line-height: 1;
}
.mgk-trainer-avatar--photo img {
  width: 56px; height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.mgk-trainer-card strong { display: block; font-size: 16px; margin-bottom: 6px; }
.mgk-trainer-card p { font-size: 13px; color: #666; margin: 0; }

/* ── Veckonavigation ─────────────────────────────────────────────────────── */
.mgk-week-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
#mgk-week-label { flex: 1; text-align: center; font-weight: 600; }
.mgk-btn-nav {
  background: #f5f5f5;
  border: 1px solid #ddd;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}
.mgk-btn-nav:hover { background: #e9e9e9; }

/* ── Slots-grid ──────────────────────────────────────────────────────────── */
.mgk-slots-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.mgk-day-col { min-width: 90px; }
.mgk-day-header {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #888;
  margin-bottom: 6px;
  white-space: nowrap;
}
.mgk-slot-btn {
  display: block;
  width: 100%;
  padding: 8px 0;
  margin-bottom: 6px;
  background: #f0f9f3;
  border: 2px solid #a8d5b5;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #1a5c2e;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.mgk-slot-btn:hover   { background: #d4edda; }
.mgk-slot-btn.selected { background: #1a5c2e; color: #fff; border-color: #1a5c2e; }
.mgk-loading, .mgk-no-slots { color: #888; font-style: italic; }

/* ── Sammanfattning ──────────────────────────────────────────────────────── */
.mgk-summary {
  background: #f0f9f3;
  border-left: 4px solid #1a5c2e;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 20px;
  font-size: 14px;
  line-height: 1.8;
}

/* ── Formulär ────────────────────────────────────────────────────────────── */
.mgk-form { display: grid; gap: 14px; max-width: 440px; }
.mgk-form label { font-size: 14px; font-weight: 600; display: flex; flex-direction: column; gap: 4px; }
.mgk-form input {
  padding: 10px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color .15s;
}
.mgk-form input:focus { outline: none; border-color: #1a5c2e; }
.mgk-form small { font-weight: 400; color: #888; }

/* ── Knappar ─────────────────────────────────────────────────────────────── */
.mgk-btn-submit {
  background: #1a5c2e;
  color: #fff;
  border: none;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: 4px;
}
.mgk-btn-submit:hover   { background: #154a25; }
.mgk-btn-submit:disabled { background: #aaa; cursor: default; }
.mgk-btn-back {
  background: none;
  border: none;
  color: #1a5c2e;
  font-size: 13px;
  cursor: pointer;
  padding: 0;
  margin-top: 16px;
  text-decoration: underline;
}
.mgk-error { color: #c0392b; font-size: 13px; }

/* ── Bekräftelse ─────────────────────────────────────────────────────────── */
.mgk-confirm-box {
  text-align: center;
  padding: 40px 20px;
}
.mgk-checkmark {
  font-size: 56px;
  color: #1a5c2e;
  margin-bottom: 10px;
}
