/* ============================================================
   BOOKING WIDGET — Cal.com-style booking form
   ============================================================ */

/* Consultant cards */
.consultant-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 880px;
  margin: 0 auto 32px;
}

.ccard {
  background: #fff;
  border-radius: 22px;
  padding: 22px 26px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  gap: 18px;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  position: relative;
}

.ccard:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.ccard.active {
  border-color: #1C7C8A;
  box-shadow: 0 0 0 4px rgba(28,124,138,0.12), 0 20px 50px rgba(0,0,0,0.12);
}

.ccard-check {
  position: absolute;
  top: -10px; right: -10px;
  width: 32px; height: 32px;
  background: #4a9d6f;
  border-radius: 50%;
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  transform: scale(0.6);
  transition: all 0.25s;
}

.ccard.active .ccard-check {
  opacity: 1;
  transform: scale(1);
}

.ccard-avatar {
  width: 70px; height: 70px;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  background: #f5f7f8;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ccard-avatar img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.ccard-info { flex: 1; min-width: 0; }

.ccard-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #1C7C8A;
  margin-bottom: 2px;
}

.ccard-tag.paid { color: #B1E358; }

.ccard-name {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 4px;
  color: #0c2124;
}

.ccard-role {
  font-size: 13px;
  color: #5a6b6d;
}

@media (max-width: 700px) {
  .consultant-cards { grid-template-columns: 1fr; }
}

.booking-widget {
  max-width: 1080px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  overflow: hidden;
  border: 1px solid #e2e8ea;
  min-height: 600px;
}

/* Step 1: Calendar + Time */
.step-cal {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  min-height: 600px;
}

.cal-side {
  background: linear-gradient(160deg, #1a3a3e, #143034 60%, #0c2124);
  color: #fff;
  padding: 48px 40px;
  position: relative;
  overflow: hidden;
}

.cal-side::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(177,227,88,0.12), transparent 60%);
  pointer-events: none;
}

.cal-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
  position: relative;
}

.cal-brand img {
  height: 44px;
  width: auto;
  margin-bottom: 18px;
  opacity: 0.95;
}

.cal-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  letter-spacing: -0.01em;
}

.cal-subtitle {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #B1E358;
  text-align: center;
  margin-top: 6px;
}

/* Calendar nav */
.cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 22px 0 18px;
  position: relative;
}

.cal-nav button {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: #fff;
  display: grid; place-items: center;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.cal-nav button:hover { background: rgba(255,255,255,0.18); }
.cal-nav button:disabled { opacity: 0.3; cursor: not-allowed; }

.cal-month {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-width: 180px;
  text-align: center;
}

/* Calendar grid */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  position: relative;
}

.cal-dow {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 8px 0 4px;
}

.cal-day {
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-size: 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, transform 0.18s;
  color: #fff;
  position: relative;
}

.cal-day.empty { cursor: default; }
.cal-day.disabled { color: rgba(255,255,255,0.18); cursor: not-allowed; }
.cal-day:not(.disabled):not(.empty):not(.selected):hover { background: rgba(255,255,255,0.1); }

.cal-day.selected {
  background: #fff;
  color: #0c2124;
  font-weight: 600;
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.cal-day.today:not(.selected)::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 4px; height: 4px;
  background: #B1E358;
  border-radius: 50%;
}

.cal-day.has-slots:not(.selected)::before {
  content: '';
  position: absolute;
  top: 4px; right: 4px;
  width: 5px; height: 5px;
  background: #4a9d6f;
  border-radius: 50%;
}

.cal-legend {
  display: flex; gap: 16px;
  margin-top: 24px;
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.06em;
}

.cal-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cal-legend .ldot { width: 6px; height: 6px; border-radius: 50%; }
.cal-legend .ldot.avail { background: #4a9d6f; }
.cal-legend .ldot.today { background: #B1E358; }

/* Time slots side */
.time-side {
  padding: 48px 40px;
  overflow-y: auto;
  max-height: 700px;
}

.time-side h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  color: #0c2124;
}

.duration-wrap { margin-bottom: 26px; }

.duration-label {
  font-size: 13px;
  color: #3a4a4e;
  margin-bottom: 8px;
  font-weight: 500;
}

.duration-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #f5f7f8;
  color: #0c2124;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e2e8ea;
}

.duration-pill svg { color: #1C7C8A; }

.when-label {
  font-size: 13px;
  color: #3a4a4e;
  margin-bottom: 8px;
  font-weight: 500;
}

.when-date {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 18px;
  letter-spacing: -0.01em;
  color: #0c2124;
}

.tz-select {
  display: inline-flex; align-items: center; gap: 8px;
  color: #1C7C8A;
  font-size: 13px;
  font-weight: 500;
  background: transparent;
  margin-bottom: 18px;
  cursor: pointer;
  padding: 6px 0;
  border: none;
  transition: color 0.2s;
}

.tz-select:hover { color: #02454E; }

.slots-grid {
  display: flex; flex-direction: column; gap: 8px;
}

.slot {
  padding: 14px 18px;
  border: 1px solid #e2e8ea;
  border-radius: 14px;
  text-align: center;
  background: #fff;
  color: #0c2124;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.18s;
  cursor: pointer;
}

.slot:hover {
  border-color: #1C7C8A;
  color: #1C7C8A;
  transform: translateX(2px);
}

.slot.confirming {
  background: #0c2124;
  color: #fff;
  border-color: #0c2124;
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 12px 14px 18px;
}

.slot-confirm-btn {
  background: #B1E358;
  color: #0c2124;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.slot-confirm-btn:hover { background: #9FD13A; }

.no-slots {
  padding: 50px 20px;
  text-align: center;
  color: #5a6b6d;
  font-size: 14px;
}

/* Step 2: Form */
.step-form { padding: 50px 56px; }

.form-head { margin-bottom: 32px; }

.form-head h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: #0c2124;
}

.form-when {
  font-size: 15px;
  color: #3a4a4e;
  display: inline-flex; align-items: center; gap: 12px;
}

.form-when .edit-link {
  color: #1C7C8A;
  font-weight: 600;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 15px;
}

.form-when .edit-link:hover { text-decoration: underline; }

.form-grid { display: grid; gap: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 6px; }

.field label {
  font-size: 13px;
  font-weight: 600;
  color: #0c2124;
}

.field label .req { color: #B1E358; }

.field input, .field textarea, .field select {
  padding: 13px 16px;
  background: #fff;
  border: 1px solid rgba(12,33,36,0.22);
  border-radius: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 15px;
  color: #0c2124;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  box-shadow: inset 0 1px 2px rgba(12,33,36,0.04);
}

.field input::placeholder, .field textarea::placeholder { color: #9aa6a9; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: rgba(12,33,36,0.32); }

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  background: #fff;
  border-color: #1C7C8A;
  box-shadow: 0 0 0 3px rgba(28,124,138,0.12), inset 0 1px 2px rgba(12,33,36,0.04);
}

.field textarea { resize: vertical; min-height: 100px; font-family: 'Plus Jakarta Sans', sans-serif; }

.field-hint { font-size: 12px; color: #5a6b6d; margin-top: 2px; }

.form-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 36px;
  padding-top: 26px;
  border-top: 1px solid #e2e8ea;
}

.btn-back {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px;
  border: 1px solid rgba(12,33,36,0.18);
  border-radius: 8px;
  color: #0c2124;
  font-weight: 500;
  font-size: 15px;
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-back:hover { background: #f5f7f8; }

.btn-confirm {
  background: #0c2124;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.btn-confirm:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-confirm:not(:disabled):hover { background: #1C7C8A; transform: translateY(-1px); }

/* Step 3: Confirmation */
.step-confirm {
  padding: 70px 56px;
  text-align: center;
  min-height: 600px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}

.confirm-icon {
  width: 72px; height: 72px;
  background: #4a9d6f;
  border-radius: 50%;
  display: grid; place-items: center;
  margin-bottom: 28px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(74,157,111,0.3);
  animation: pop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}

@keyframes pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.step-confirm h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 38px;
  font-weight: 600;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  color: #0c2124;
}

.step-confirm p { color: #3a4a4e; font-size: 16px; margin-bottom: 30px; max-width: 460px; }

.confirm-card {
  background: #f5f7f8;
  border: 1px solid #e2e8ea;
  border-radius: 14px;
  padding: 22px 28px;
  text-align: left;
  max-width: 420px;
  width: 100%;
  margin-bottom: 28px;
}

.confirm-row {
  display: flex; justify-content: space-between; padding: 8px 0;
  font-size: 14px;
}

.confirm-row + .confirm-row { border-top: 1px dashed #e2e8ea; }
.confirm-row strong { color: #0c2124; font-weight: 600; }
.confirm-row span { color: #5a6b6d; }

/* Responsive */
@media (max-width: 820px) {
  .step-cal { grid-template-columns: 1fr; }
  .step-form { padding: 36px 28px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .step-confirm { padding: 50px 28px; }
}
