/* Mentio.ro — flux rezervare (dark) */
:root {
  --bg: #0B1120;
  --surface: #131D2E;
  --surface2: #1A2740;
  --surface3: #1F2F4A;
  --border: rgba(99,130,175,0.12);
  --accent: #10B981;
  --accent-glow: rgba(16,185,129,0.15);
  --gold: #F59E0B;
  --red: #EF4444;
  --blue: #3B82F6;
  --text1: #F1F5F9;
  --text2: #94A3B8;
  --text3: #64748B;
  --radius: 14px;
}

body.mentio-booking {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text2);
  min-height: 100vh;
}

.booking-wrapper {
  max-width: 680px;
  margin: 40px auto;
  padding: 0 20px 48px;
}

.booking-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  justify-content: space-between;
}

.booking-progress .step {
  font-size: 12px;
  color: var(--text3);
  font-weight: 500;
  padding: 0 6px;
}

.booking-progress .step.active { color: var(--accent); font-weight: 700; }
.booking-progress .step.done { color: var(--text2); }
.booking-progress .step.done::after { content: ' ✓'; color: var(--accent); }

.booking-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.booking-card h1,
.booking-card h2.page-heading {
  font-family: 'Syne', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text1);
  margin: 0 0 8px;
}

.booking-sub {
  font-size: 1rem;
  color: var(--text3);
  margin: 0 0 24px;
}

.booking-psychologist-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 24px;
}

.booking-psychologist-header .meta { font-size: 14px; color: var(--text3); }

/* Pas 1 */
.services-select-grid { display: flex; flex-direction: column; gap: 12px; }
.service-select-item {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  display: block;
  transition: border-color .2s, background .2s;
}
.service-select-item:hover {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.service-select-name { font-weight: 600; color: var(--text1); font-size: 16px; }
.service-select-meta { color: var(--text3); font-size: 13px; margin-top: 4px; }
.service-select-price { font-size: 20px; font-weight: 700; color: var(--accent); margin-top: 8px; }

.empty-state-mentio {
  text-align: center;
  padding: 32px;
  background: var(--surface2);
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text3);
}

/* Pas 2 */
.location-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 540px) { .location-options { grid-template-columns: 1fr; } }
.location-card,
label.location-option {
  background: var(--surface2);
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 24px 16px;
  cursor: pointer;
  text-align: center;
  transition: all .2s;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}
.location-card input[type="radio"],
label.location-option input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.location-card.selected,
.location-card:has(input:checked),
label.location-option.selected,
label.location-option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.location-icon { font-size: 32px; margin-bottom: 10px; }
.location-label,
.location-title { font-weight: 600; color: var(--text1); font-size: 15px; }
.location-desc,
.location-description { color: var(--text3); font-size: 13px; margin-top: 4px; }

.form-error {
  display: none;
  margin-bottom: 18px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(239,68,68,0.12);
  color: var(--red);
  font-weight: 600;
  border: 1px solid rgba(239,68,68,0.25);
}

.btn-continue,
.btn-back {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn-continue {
  width: 100%;
  background: var(--accent);
  color: white;
  padding: 14px;
  border-radius: 10px;
  font-size: 16px;
  transition: opacity .2s;
}
.btn-continue:hover { opacity: .9; }
.btn-back {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 12px 22px;
  border-radius: 10px;
  margin-top: 16px;
}
.btn-back:hover { border-color: var(--accent); color: var(--accent); }

.form-actions-row { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-actions-row .btn-continue { width: auto; }

/* Pas 3 — clase existente + noi */
.calendar-container {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
}
.calendar-panel.calendar-container { }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.calendar-header .calendar-month,
.calendar-month {
  font-family: 'Syne', sans-serif;
  color: var(--text1);
  font-size: 17px;
  font-weight: 600;
}
.calendar-header button,
.calendar-nav {
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 8px;
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-grid span,
.calendar-grid button {
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 13px;
}
.calendar-grid span { color: var(--text3); }
.calendar-grid button {
  border: none;
  background: var(--surface);
  color: var(--text2);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.calendar-grid button:hover:not(.disabled) {
  background: var(--accent-glow);
  color: var(--accent);
}
.calendar-grid button.disabled {
  color: var(--text3);
  cursor: not-allowed;
  opacity: .4;
  background: var(--surface3);
}
.calendar-grid button.selected {
  background: var(--accent);
  color: white;
}

.slots-panel { background: var(--surface2); border: 1px solid var(--border); border-radius: 12px; padding: 20px; }
.slots-title { color: var(--text1); font-weight: 600; margin-bottom: 12px; }
#selectedDateLabel { color: var(--gold); }
.slots-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; }
.slot-btn {
  padding: 10px 6px;
  text-align: center;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all .15s;
}
.slot-btn:hover { border-color: var(--accent); color: var(--accent); }
.slot-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
.slot-empty { color: var(--text3); text-align: center; padding: 16px; }
.selection-summary { color: var(--text1); margin-top: 12px; font-weight: 600; }
.summary-range { color: var(--gold); }

.actions-bar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; flex-wrap: wrap; }
.button-primary.enabled {
  pointer-events: auto;
  opacity: 1;
  background: var(--accent) !important;
  color: white !important;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
}
#confirmLink:not(.enabled) {
  opacity: .45;
  pointer-events: none;
}

/* Pas 4 */
.booking-summary {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  gap: 12px;
}
.summary-row:last-child { border-bottom: none; }
.summary-label { color: var(--text3); }
.summary-value { color: var(--text1); font-weight: 500; text-align: right; }
.summary-price { color: var(--accent); font-size: 18px; font-weight: 700; }

.form-group { margin-bottom: 16px; }
.form-group label,
.detail-label { display: block; color: var(--text2); font-size: 13px; margin-bottom: 6px; font-weight: 600; }
.form-group input,
.form-group textarea,
.input-field,
.textarea {
  width: 100%;
  padding: 11px 14px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text1);
  font-size: 15px;
  outline: none;
  transition: border-color .2s;
  box-sizing: border-box;
  font-family: inherit;
}
.form-group input:focus,
.form-group textarea:focus,
.input-field:focus,
.textarea:focus { border-color: var(--accent); }
.textarea { min-height: 90px; resize: vertical; }

.policy-box {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px;
  color: var(--text2);
  line-height: 1.6;
  margin-top: 16px;
}
.policy-checkbox,
.checkbox-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
}
.policy-checkbox input,
.checkbox-row input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.policy-checkbox label,
.checkbox-row label { color: var(--text2); font-size: 14px; line-height: 1.5; }

.error-message {
  display: none;
  background: rgba(239,68,68,0.12);
  color: var(--red);
  font-weight: 600;
  border-radius: 12px;
  padding: 12px 16px;
  margin-top: 12px;
  border: 1px solid rgba(239,68,68,0.25);
}
.error-message.show { display: block; }

.button-primary { background: var(--accent); color: white; border: none; border-radius: 10px; }
.button-secondary { background: transparent; border: 1px solid var(--border); color: var(--text2); border-radius: 10px; }

/* Pas 5 semnare */
.contract-text-scroll {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  max-height: 300px;
  overflow-y: auto;
  color: var(--text2);
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  white-space: pre-wrap;
  font-family: inherit;
}
.contract-text-scroll::-webkit-scrollbar { width: 6px; }
.contract-text-scroll::-webkit-scrollbar-track { background: var(--surface3); }
.contract-text-scroll::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.signature-area { margin-bottom: 20px; }
.signature-area .signature-label { color: var(--text2); font-size: 13px; margin-bottom: 10px; display: block; font-weight: 600; }

#signatureCanvas {
  width: 100%;
  height: 200px;
  background: var(--surface2);
  border: 2px dashed var(--border);
  border-radius: 12px;
  cursor: crosshair;
  display: block;
  touch-action: none;
}
#signatureCanvas:hover { border-color: var(--accent); }

.signature-controls { display: flex; gap: 8px; margin-top: 8px; }
.btn-clear-signature {
  padding: 7px 14px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text3);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-family: inherit;
}
.btn-clear-signature:hover { border-color: var(--red); color: var(--red); }

.btn-sign-submit,
#submitBtn.button-primary {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 20px;
  font-family: inherit;
}
#submitBtn:disabled { opacity: .5; cursor: not-allowed; }

/* Succes */
.success-wrapper { max-width: 560px; margin: 60px auto; padding: 0 20px; text-align: center; }
.success-wrapper .page-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  color: var(--text1);
}
.success-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 24px;
  color: var(--accent);
}
.success-title {
  font-family: 'Syne', sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--text1);
  margin-bottom: 8px;
}
.success-subtitle { color: var(--text2); font-size: 16px; margin-bottom: 32px; }

.booking-details-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: left;
  margin-bottom: 24px;
}
.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  gap: 12px;
}
.detail-row:last-child { border-bottom: none; }
.booking-details-card .detail-label { color: var(--text3); font-weight: 500; }
.booking-details-card .detail-value { color: var(--text1); font-weight: 600; text-align: right; }

.contract-download-block {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  text-align: center;
}
.contract-download-block p { color: var(--text2); margin-bottom: 12px; font-size: 14px; }
.btn-download-contract {
  display: inline-block;
  padding: 11px 24px;
  background: var(--accent);
  color: white;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  transition: opacity .2s;
}
.btn-download-contract:hover { opacity: .9; }

.success-actions { display: flex; flex-direction: column; gap: 10px; }
.btn-secondary-action {
  padding: 11px;
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 10px;
  text-decoration: none;
  font-size: 14px;
  text-align: center;
  transition: border-color .2s, color .2s;
}
.btn-secondary-action:hover { border-color: var(--accent); color: var(--accent); }

.booking-summary-inline { margin-bottom: 20px; padding: 16px; background: var(--surface2); border-radius: 10px; border: 1px solid var(--border); }
