/* ========================================================
   Colegio Citas — Public Styles
   ======================================================== */

.cc-booking-wrapper {
  max-width: 860px;
  margin: 30px auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #333;
}

/* Header */
.cc-booking-header {
  text-align: center;
  margin-bottom: 30px;
}
.cc-booking-header h2 {
  font-size: 26px;
  color: #1a4d8f;
  margin-bottom: 8px;
}
.cc-booking-header p {
  color: #666;
  font-size: 15px;
}

/* Progress */
.cc-progress {
  display: flex;
  justify-content: center;
  margin-bottom: 35px;
  gap: 0;
}
.cc-progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #e9ecef;
  color: #888;
  font-size: 13px;
  font-weight: 600;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%, 14px 50%);
}
.cc-progress-step:first-child {
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}
.cc-progress-step:last-child {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 14px 50%);
}
.cc-progress-step span {
  width: 22px; height: 22px;
  background: #bbb;
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.cc-progress-step.active {
  background: #1a4d8f;
  color: #fff;
}
.cc-progress-step.active span { background: #fff; color: #1a4d8f; }
.cc-progress-step.done {
  background: #28a745;
  color: #fff;
}
.cc-progress-step.done span { background: #fff; color: #28a745; }

/* Steps */
.cc-step { padding: 20px 0; }
.cc-step h3 { font-size: 18px; color: #1a4d8f; margin-bottom: 20px; }

/* Cursos grid */
.cc-cursos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.cc-curso-card {
  background: #fff;
  border: 2px solid #e0e7f0;
  border-radius: 10px;
  padding: 18px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
}
.cc-curso-card:hover { border-color: #1a4d8f; box-shadow: 0 4px 12px rgba(26,77,143,.12); transform: translateY(-2px); }
.cc-curso-card.selected { border-color: #1a4d8f; background: #e8f0fc; }
.cc-curso-icon { font-size: 26px; margin-bottom: 8px; }
.cc-curso-name { font-size: 13px; font-weight: 600; color: #1a4d8f; }

/* Directores grid */
.cc-directores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.cc-director-card {
  background: #fff;
  border: 2px solid #e0e7f0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: all .2s;
}
.cc-director-card:hover { border-color: #1a4d8f; box-shadow: 0 4px 12px rgba(26,77,143,.12); }
.cc-director-card.selected { border-color: #1a4d8f; background: #e8f0fc; }
.cc-dir-icon { font-size: 32px; }
.cc-dir-info { font-size: 14px; }
.cc-dir-info strong { color: #1a4d8f; }

/* Calendar + Slots */
.cc-calendar-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media(max-width:640px){ .cc-calendar-container { grid-template-columns: 1fr; } }

/* Calendar */
#cc-calendar { background: #fff; border: 1px solid #dde3ee; border-radius: 12px; overflow: hidden; }
.cc-cal-nav {
  background: #1a4d8f;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
}
.cc-cal-nav button {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
}
.cc-cal-nav button:hover { opacity: .7; }
.cc-cal-title { font-weight: 700; font-size: 15px; }
.cc-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: #e0e7f0;
}
.cc-cal-header {
  background: #f0f4fb;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #888;
  padding: 8px 2px;
}
.cc-cal-cell {
  background: #fff;
  text-align: center;
  padding: 9px 4px;
  font-size: 14px;
  cursor: default;
  min-height: 36px;
}
.cc-cal-cell.empty { background: #fafbfc; }
.cc-cal-cell.past,.cc-cal-cell.weekend { color: #ccc; }
.cc-cal-cell.no-disponible { color: #bbb; }
.cc-cal-cell.disponible {
  background: #e8f5e9;
  color: #1b5e20;
  font-weight: 700;
  cursor: pointer;
  border-radius: 4px;
}
.cc-cal-cell.disponible:hover { background: #a5d6a7; }
.cc-cal-cell.selected { background: #1a4d8f !important; color: #fff !important; border-radius: 4px; }

/* Slots */
#cc-slots-panel { }
.cc-slots-hint { color: #888; font-style: italic; text-align: center; padding: 30px 0; }
.cc-slots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.cc-slot {
  background: #fff;
  border: 2px solid #b3cce8;
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #1a4d8f;
  transition: all .15s;
}
.cc-slot:hover { background: #e8f0fc; border-color: #1a4d8f; }
.cc-slot.selected { background: #1a4d8f; color: #fff; border-color: #1a4d8f; }
.cc-slot small { font-weight: 400; font-size: 11px; }

/* Step 4 form */
.cc-resumen-cita {
  background: #f0f4fb;
  border-left: 4px solid #1a4d8f;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 24px;
}
.cc-resumen-cita h4 { margin: 0 0 12px; color: #1a4d8f; }
.cc-resumen-table { width: 100%; font-size: 14px; }
.cc-resumen-table td { padding: 4px 12px 4px 0; vertical-align: top; }
.cc-resumen-table td:first-child { color: #666; width: 100px; white-space: nowrap; }

.cc-form-fields { }
.cc-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media(max-width:560px){ .cc-field-row { grid-template-columns: 1fr; } }
.cc-field-group { margin-bottom: 16px; }
.cc-field-group label { display: block; font-weight: 600; font-size: 13px; color: #444; margin-bottom: 6px; }
.cc-field-group input,
.cc-field-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #dde3ee;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
  transition: border .2s;
}
.cc-field-group input:focus,
.cc-field-group textarea:focus {
  border-color: #1a4d8f;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26,77,143,.1);
}

/* Tipo options */
.cc-tipo-options { display: flex; gap: 14px; }
.cc-tipo-option {
  flex: 1;
  border: 2px solid #dde3ee;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  cursor: pointer;
  font-size: 14px;
  transition: all .15s;
}
.cc-tipo-option:hover { border-color: #1a4d8f; background: #f0f4fb; }
.cc-tipo-option.selected { border-color: #1a4d8f; background: #e8f0fc; }

/* Submit */
.cc-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #1a4d8f;
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s;
  margin-top: 10px;
  text-decoration: none;
}
.cc-submit-btn:hover { background: #153d72; }
.cc-submit-btn:disabled { opacity: .7; cursor: not-allowed; }

/* Alerts */
.cc-alert { border-radius: 8px; padding: 12px 16px; font-size: 14px; margin: 12px 0; }
.cc-alert-error { background: #fde8e8; border-left: 4px solid #e53e3e; color: #c53030; }
.cc-alert-info  { background: #e8f4fd; border-left: 4px solid #3182ce; color: #2b6cb0; }

/* Back button */
.cc-back-btn {
  background: none;
  border: none;
  color: #1a4d8f;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  margin-bottom: 20px;
  text-decoration: underline;
}

/* Loading */
.cc-loading { text-align: center; padding: 30px; color: #888; font-size: 15px; }

/* Success */
.cc-success { text-align: center; padding: 40px 20px; }
.cc-success-icon { font-size: 64px; margin-bottom: 16px; }
.cc-success h2 { color: #28a745; font-size: 24px; margin-bottom: 20px; }
.cc-success p { color: #555; margin-bottom: 24px; }
