.mf-own-form h2,
.mf-own-form h3 {
  margin-bottom: 20px;
}

.mf-booking-card {
  background: #ffffff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
  width: 100%;
  max-width: 550px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1f2937;
  box-sizing: border-box;
}

.mf-booking-card h2,
.mf-booking-card h3 {
  margin-top: 0;
  color: #111827;
}

.mf-hidden {
  display: none !important;
}

.mf-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.mf-filter-bar input,
.mf-filter-bar select,
.mf-form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  box-sizing: border-box;
  font-size: 14px;
}

.mf-filter-bar input:focus,
.mf-filter-bar select:focus,
.mf-form-group input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.mf-doctors-title,
.mf-slots-header {
  font-weight: 600;
  margin-bottom: 12px;
  font-size: 15px;
}

.mf-doctors-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 5px;
}

.mf-doctor-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  transition: all 0.2s;
}

.mf-doctor-card:hover {
  border-color: #2563eb;
  background-color: #f8fafc;
}

.mf-doctor-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  display: block;
}

.mf-doctor-info {
  flex-grow: 1;
}

.mf-doctor-name {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.mf-doctor-spec {
  font-size: 13px;
  color: #6b7280;
}

.mf-btn-select-doc {
  padding: 8px 16px;
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.mf-btn-select-doc:hover {
  background: #2563eb;
  color: #fff;
}

.mf-chosen-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mf-price-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 12px;
  border: 1px solid #e2e8f0;
}

.mf-price-spec-title {
  font-size: 13px;
  color: #1e293b;
  font-weight: 500;
}

.mf-price-value {
  font-size: 20px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 2px;
}

.mf-clinic-info-badge {
  background: #eff6ff;
  border-radius: 12px;
  padding: 12px 16px;
  margin: 12px 0 16px 0;
  border: 1px solid #dbeafe;
}

.mf-clinic-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e3a8a;
}

.mf-clinic-address {
  font-size: 12px;
  color: #475569;
  margin-top: 2px;
}

.mf-dates-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  position: relative;
}

.mf-dates-carousel {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 6px 2px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  flex-grow: 1;
}

.mf-dates-carousel::-webkit-scrollbar {
  display: none;
}

.mf-date-pill {
  flex: 0 0 72px;
  height: 64px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  user-select: none;
  position: relative;
}

.mf-date-pill:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.mf-date-pill.mf-active {
  background: #eff6ff;
  border: 2px solid #2563eb;
  color: #1d4ed8;
}

.mf-date-pill .mf-pill-badge {
  position: absolute;
  top: -8px;
  background: #eff6ff;
  border: 1px solid #2563eb;
  color: #1d4ed8;
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 8px;
  font-weight: 600;
}

.mf-date-pill .mf-pill-day {
  font-size: 13px;
  font-weight: 700;
}

.mf-date-pill .mf-pill-weekday {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.mf-date-pill .mf-pill-weekday.mf-weekend {
  color: #ef4444;
}

.mf-custom-date-picker-btn {
  flex: 0 0 46px;
  height: 64px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  user-select: none;
}

.mf-custom-date-picker-btn:hover {
  border-color: #2563eb;
  background-color: #f8fafc;
}

.mf-custom-date-picker-btn svg {
  pointer-events: none;
}

.mf-hidden-date-input {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  margin: 0;
  padding: 0;
  z-index: -1;
}

.mf-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 8px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 20px;
  padding-right: 4px;
}

.mf-slot-btn {
  padding: 10px 4px;
  border: none;
  background: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  transition: all 0.15s ease;
}

.mf-slot-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.mf-slots-grid .mf-placeholder {
  grid-column: 1 / -1;
  width: 100%;
  margin: 15px 0;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
}

.mf-form-group {
  margin-bottom: 14px;
}

.mf-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
  color: #374151;
}

#mf-submit-btn,
.mf-btn-submit {
  display: block !important;
  width: 100% !important;
  padding: 13px !important;
  background-color: #059669 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color 0.2s ease !important;
  box-sizing: border-box !important;
  text-align: center !important;
  line-height: normal !important;
  outline: none !important;
}

#mf-submit-btn:hover,
.mf-btn-submit:hover {
  background-color: #047857 !important;
}

#mf-submit-btn:disabled,
.mf-btn-submit:disabled {
  background-color: #9ca3af !important;
  cursor: not-allowed !important;
}

.mf-btn-back {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s;
}

.mf-btn-back:hover {
  color: #111827;
}

.mf-placeholder {
  color: #6b7280;
  font-size: 14px;
  margin: 10px 0;
}

.mf-selected-slot-info {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 14px;
}

.mf-status-msg {
  margin-top: 16px;
  padding: 12px;
  border-radius: 8px;
  font-size: 14px;
}

.mf-status-msg.mf-success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.mf-status-msg.mf-error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}