/* ==========================================================
   AWAP Scheduler Page — full stylesheet
   Path: assets/css/awap-scheduler.css
   Scope: .awap-scheduler
   ========================================================== */

/* ---------- Wrapper ---------- */
.awap-scheduler {
  max-width: 780px;
  margin: 0 auto;
  padding: 20px;
}
.awap-scheduler h1 {
  font-size: clamp(22px, 2.8vw, 32px);
  margin: 10px 0 18px;
}
.awap-scheduler p { margin-bottom: 12px; line-height: 1.5; }

/* ---------- Form fields ---------- */
.awap-scheduler form {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
}
.awap-scheduler label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}
.awap-scheduler input,
.awap-scheduler select,
.awap-scheduler textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  margin-bottom: 14px;
  font-size: 14px;
}
.awap-scheduler input:focus,
.awap-scheduler select:focus,
.awap-scheduler textarea:focus {
  border-color: #2563eb;
  outline: none;
  box-shadow: 0 0 0 1px #2563eb;
}

/* Inline error messages */
.awap-scheduler .error {
  color: #b91c1c;
  font-size: 13px;
  margin-top: -8px;
  margin-bottom: 10px;
}

/* ---------- Date/Time grid ---------- */
.awap-scheduler .slots {
  margin: 20px 0;
}
.awap-scheduler .slots h3 {
  font-size: 16px;
  margin-bottom: 10px;
}
.awap-scheduler .slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.awap-scheduler .slot {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  background: #f9fafb;
  font-size: 14px;
  transition: background .2s, border-color .2s;
}
.awap-scheduler .slot:hover {
  background: #eef2f7;
}
.awap-scheduler .slot.selected {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.awap-scheduler .slot.disabled {
  background: #f3f4f6;
  color: #9ca3af;
  cursor: not-allowed;
}

/* ---------- Submit button ---------- */
.awap-scheduler button.submit {
  background: #1d4ed8;
  color: #fff;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.awap-scheduler button.submit:hover {
  background: #2563eb;
}

/* ---------- Confirmation modal ---------- */
.awap-scheduler .modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 9998;
  display: none;
}
.awap-scheduler .modal {
  position: fixed;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  width: 95%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.2);
  z-index: 9999;
  display: none;
}
.awap-scheduler .modal-header {
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.awap-scheduler .modal-body {
  padding: 16px 18px;
  font-size: 14px;
  color: #374151;
}
.awap-scheduler .modal-footer {
  padding: 14px 18px;
  border-top: 1px solid #e5e7eb;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.awap-scheduler .modal-footer .btn {
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}
.awap-scheduler .btn-cancel {
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  color: #374151;
}
.awap-scheduler .btn-confirm {
  background: #2563eb;
  color: #fff;
  border: none;
}
.awap-scheduler .btn-confirm:hover { background: #1d4ed8; }

/* ---------- Responsive refinements ---------- */
@media (max-width: 600px) {
  .awap-scheduler form { padding: 14px; }
  .awap-scheduler .slot-grid { grid-template-columns: repeat(2, 1fr); }
}
