/* Review Step Styles for NVSS Reservation Wizard */

/* Stepy 7-tab navigation adjustments */
.stepy-titles {
  display: flex !important;
  flex-wrap: nowrap;
  width: 100%;
  margin: 0 0 15px 0 !important;
  padding: 0 !important;
  list-style: none;
}

.stepy-titles li {
  flex: 1 1 auto;
  text-align: center;
  padding: 8px 4px !important;
  font-size: 12px !important;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.4) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  color: #bbb;
  transition: all 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stepy-titles li:first-child {
  border-top-left-radius: 4px;
}

.stepy-titles li:last-child {
  border-top-right-radius: 4px;
  border-right: none;
}

.stepy-titles li span {
  display: block;
  font-size: 10px !important;
  opacity: 0.8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Explicit high-contrast styling for text inputs and textareas */
.amend-form-container input[type="text"],
.amend-form-container input[type="email"],
.amend-form-container input[type="number"],
.amend-form-container select,
.amend-form-container textarea,
textarea[name="message"],
.step textarea {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid #475569 !important;
  border-radius: 4px !important;
  padding: 8px 12px !important;
  font-size: 14px !important;
  line-height: 1.5 !important;
  box-sizing: border-box !important;
}

.amend-form-container input:focus,
.amend-form-container select:focus,
.amend-form-container textarea:focus,
textarea[name="message"]:focus,
.step textarea:focus {
  border-color: #38bdf8 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.3) !important;
  color: #ffffff !important;
  background: #0f172a !important;
}

.amend-form-container select option {
  background: #0f172a !important;
  color: #f8fafc !important;
}

.stepy-titles .current-step {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
  font-weight: bold;
}

/* Review Container & Cards */
.review-wrapper {
  margin-top: 15px;
  margin-bottom: 20px;
}

.review-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 18px 22px;
  margin-bottom: 20px;
  position: relative;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.review-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-amend {
  background: #2b78e4;
  color: #fff !important;
  padding: 5px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-amend:hover {
  background: #1a62c6;
  text-decoration: none;
  color: #fff !important;
}

.btn-amend:active {
  transform: scale(0.97);
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 20px;
}

.review-item {
  display: flex;
  flex-direction: column;
}

.review-label {
  font-size: 11px;
  color: #9cb3c9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.review-value {
  font-size: 14px;
  color: #f1f5f9;
  font-weight: 500;
  word-break: break-word;
}

.review-value.empty {
  color: #64748b;
  font-style: italic;
}

/* Course / Lesson Specific Cards */
.review-lesson-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 15px 18px;
  margin-bottom: 14px;
}

.review-lesson-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.review-lesson-num {
  font-size: 15px;
  font-weight: bold;
  color: #38bdf8;
}

.review-lesson-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-delete-course {
  background: #dc2626;
  color: #fff !important;
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: background 0.2s ease, transform 0.1s ease;
}

.btn-delete-course:hover {
  background: #b91c1c;
  color: #fff !important;
  text-decoration: none;
}

.btn-delete-course:active {
  transform: scale(0.97);
}


/* Participant Badges */
.participant-roster-box {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.participant-roster-title {
  font-size: 12px;
  color: #9cb3c9;
  margin-bottom: 6px;
  font-weight: 600;
}

.participant-badge-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.participant-badge {
  background: #0284c7;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.participant-badge-empty {
  color: #fbbf24;
  font-size: 12px;
  font-style: italic;
}

/* Amendment Forms (In-place edit container) */
.amend-form-container {
  display: none;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid #38bdf8;
  border-radius: 8px;
  padding: 20px;
  margin-top: 15px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.25s ease-out;
}

.amend-form-container h4 {
  color: #38bdf8;
  font-size: 15px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(56, 189, 248, 0.2);
  padding-bottom: 8px;
}

.amend-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-end;
}

.btn-save-amend {
  background: #10b981;
  color: #fff !important;
  border: none;
  padding: 8px 18px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease;
}

.btn-save-amend:hover {
  background: #059669;
}

.btn-cancel-amend {
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0 !important;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s ease;
}

.btn-cancel-amend:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Flash feedback badge */
.amend-feedback-badge {
  display: none;
  background: #059669;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  animation: pulseGreen 1.5s ease-in-out;
}

@keyframes pulseGreen {
  0% { transform: scale(0.9); opacity: 0; }
  20% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Step 6 Callout Notice */
.step6-confirmation-banner {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 6px;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 13px;
  color: #e0f2fe;
}

.step6-back-link {
  display: inline-flex;
  align-items: center;
  color: #38bdf8;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
  margin-bottom: 15px;
}

.step6-back-link:hover {
  color: #7dd3fc;
}

/* Responsive adjustments */
@media only screen and (max-width: 767px) {
  .stepy-titles {
    flex-wrap: wrap;
  }
  .stepy-titles li {
    flex: 1 1 30%;
    font-size: 11px !important;
    padding: 6px 3px !important;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
}
