/**
 * Client Feedback & Review Submission Modal Stylesheet
 * Mohd Irshad Web Developer Portfolio
 * Liquid Glassmorphic Modal with Interactive Star Rating & Neumorphism
 */

.feedback-modal-overlay {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(30, 27, 75, 0.85) 0%, rgba(15, 23, 42, 0.92) 100%);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.35s ease;
}

.feedback-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.feedback-modal-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  width: 100%;
  max-width: 640px;
  max-height: 92vh;
  border-radius: 24px;
  box-shadow: 
    0 30px 70px -15px rgba(15, 23, 42, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.9),
    0 0 40px rgba(124, 58, 237, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.feedback-modal-overlay.active .feedback-modal-card {
  transform: scale(1) translateY(0);
}

/* Header */
.feedback-modal-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 60%, #31104b 100%);
  padding: 1.4rem 1.8rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.feedback-header-title h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.28rem;
  font-weight: 900;
  color: #ffffff;
  margin: 0 0 0.2rem 0;
}

.feedback-header-title p {
  font-size: 0.8rem;
  color: #cbd5e1;
  margin: 0;
}

.btn-close-feedback-modal {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-close-feedback-modal:hover {
  background: rgba(239, 68, 68, 0.85);
  transform: rotate(90deg);
}

/* Form Body */
.feedback-modal-body {
  padding: 1.6rem 1.8rem;
  overflow-y: auto;
  flex: 1;
}

/* Star Rating Selector */
.feedback-rating-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  text-align: center;
  margin-bottom: 1.2rem;
}

.feedback-rating-label {
  font-size: 0.8rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 0.5rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.feedback-stars-row {
  display: inline-flex;
  gap: 0.5rem;
  cursor: pointer;
}

.feedback-star-icon {
  font-size: 1.8rem;
  color: #cbd5e1;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feedback-star-icon.active, .feedback-star-icon.hover {
  color: #f59e0b;
  transform: scale(1.2);
}

.feedback-rating-score-text {
  font-size: 0.85rem;
  font-weight: 800;
  color: #0f172a;
  margin-top: 0.4rem;
}

/* 2-col inputs */
.feedback-2col-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feedback-field-group {
  margin-bottom: 1rem;
}

.feedback-field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: #475569;
  margin-bottom: 0.35rem;
}

.feedback-input-ctrl, .feedback-select-ctrl {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  font-family: inherit;
  transition: all 0.25s ease;
}

.feedback-input-ctrl:focus, .feedback-select-ctrl:focus {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.feedback-textarea-ctrl {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #0f172a;
  background: #f8fafc;
  outline: none;
  font-family: inherit;
  resize: vertical;
  transition: all 0.25s ease;
}

.feedback-textarea-ctrl:focus {
  border-color: #7c3aed;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

/* Footer Submit */
.feedback-modal-footer {
  background: #f8fafc;
  border-top: 1.5px solid #e2e8f0;
  padding: 1.1rem 1.8rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.8rem;
}

.btn-feedback-cancel {
  background: transparent;
  border: 1.5px solid #e2e8f0;
  color: #64748b;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.65rem 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-feedback-cancel:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-feedback-submit {
  background: linear-gradient(135deg, #7c3aed 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.25s ease;
}
.btn-feedback-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4);
}

@media (max-width: 600px) {
  .feedback-2col-row {
    grid-template-columns: 1fr;
  }
}
