/* --- FEEDBACK MODAL OVERLAY --- */
#feedbackModal {
  position: fixed;
  inset: 0;
  z-index: 1050 !important;
  background: rgba(0,0,0,0.35); /* pleasant overlay */
  width: 100vw;
  height: 100vh;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  transition: opacity 0.25s cubic-bezier(.4,0,.2,1);
  pointer-events: auto;
}

/* Only show modal when active or via Bootstrap .show */
#feedbackModal:not(.show):not(.active) {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- MODAL CONTENT --- */
#feedbackModal .modal-content {
  border-radius: 18px;
  border: 2px solid #7b2cbf;
  box-shadow: 0 8px 32px rgba(123,44,191,0.12);
  background: #fff;
  padding: 0 0 12px 0;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

#feedbackModal .modal-header {
  background: #f6f0fa;
  border-bottom: 1px solid #e0cfff;
  border-radius: 16px 16px 0 0;
  padding: 18px 22px 12px 22px;
}

#feedbackModal .modal-title {
  color: #7b2cbf;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  width: 100%;
  text-align: center !important;
  justify-content: center !important;
  align-items: center !important;
}

#feedbackModal .btn-close {
  filter: invert(40%) sepia(80%) saturate(400%) hue-rotate(240deg);
  opacity: 0.7;
}

#feedbackModal .modal-body {
  padding: 18px 18px 10px 18px;
  overflow-y: auto;
  flex: 1 1 auto;
}

#feedbackModal label.form-label {
  color: #5a189a;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
  text-align: left !important;
  display: block;
}

#feedbackModal .form-check-label {
  color: #333;
  font-size: 0.9rem;
  margin-left: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

#feedbackModal .form-check-input:checked {
  background-color: #7b2cbf;
  border-color: #7b2cbf;
}

#feedbackModal textarea.form-control,
#feedbackModal input.form-control {
  border-radius: 10px;
  border: 1.5px solid #e0cfff;
  font-size: 1rem;
  padding: 8px 12px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
}

#feedbackModal textarea.form-control:focus,
#feedbackModal input.form-control:focus {
  border-color: #7b2cbf;
  box-shadow: 0 0 0 2px #e0cfff;
}

#feedbackModal .form-select {
  border-radius: 10px;
  border: 1.5px solid #e0cfff;
  font-size: 1rem;
  padding: 8px 12px;
  margin-bottom: 8px;
  transition: border-color 0.2s;
  background-color: #fff;
  color: #5a189a;
  cursor: pointer;
}

#feedbackModal .form-select:focus {
  border-color: #7b2cbf;
  box-shadow: 0 0 0 2px #e0cfff;
}

#feedbackModal .d-grid .btn-primary {
  background: linear-gradient(90deg, #7b2cbf 60%, #9d4edd 100%);
  border: none;
  border-radius: 24px;
  font-size: 1.08rem;
  font-weight: 600;
  padding: 12px 0;
  margin-top: 10px;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  width: 100%;
}

#feedbackModal .d-grid .btn-primary:hover,
#feedbackModal .d-grid .btn-primary:focus {
  background: linear-gradient(90deg, #5a189a 60%, #7b2cbf 100%);
}

/* --- FLOATING FEEDBACK BUTTON --- */
.floating-feedback-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: transparent;
  border: none;
  box-shadow: none;
  z-index: 1100 !important;
  padding: 0;
  width: 48px;
  height: 48px;
  outline: none;
  transition: box-shadow 0.2s;
}

body.modal-open .floating-feedback-btn {
  display: none !important;
}

.gift-img {
  width: 100%;
  height: auto;
  display: block;
}

.close-btn {
  position: absolute;
  top: -10px;
  right: -10px;
  background: #7b2cbf;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  cursor: pointer;
  border: 2px solid #fff;
}

/* --- MODAL BACKDROP (Bootstrap override) --- */
.modal-backdrop {
  display: none !important;
}

/* --- MOBILE STYLES --- */
@media (max-width: 600px) {
  #feedbackModal .mb-3 {
    margin-bottom: 1.2rem !important;
  }
  #feedbackModal .modal-dialog {
    margin: 32px auto;
    max-width: 95vw;
    width: 95vw;
    height: auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #feedbackModal .modal-content {
    border-radius: 18px;
    min-height: 0;
    max-height: 90vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    padding-bottom: 8px;
    overflow-y: auto;
  }
  #feedbackModal .modal-header {
    border-radius: 16px 16px 0 0;
    position: static;
    padding: 18px 22px 12px 22px;
    background: #f6f0fa;
    z-index: 2;
  }
  #feedbackModal .modal-body {
    padding: 18px 18px 10px 18px;
    overflow-y: auto;
    flex: 1 1 auto;
  }
  #feedbackModal label.form-label {
    font-size: 0.9rem;
  }
}

/* --- GENERAL POLISH --- */
.feedback-intro {
  font-size: 0.875rem;
  color: #6c757d;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.swal2-confirm.custom-ok-button {
  background-color: #7b2cbf !important;
  color: #fff !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 24px;
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(123, 44, 191, 0.3);
  transition: background-color 0.3s ease-in-out;
}

.swal2-confirm.custom-ok-button:hover {
  background-color: #6828a8 !important;
}

.custom-ok-button {
  background-color: #7b2cbf !important;
  color: white !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 24px;
  box-shadow: 0 4px 12px rgba(123, 44, 191, 0.3);
}

.custom-home-button {
  background-color: #e2d4f5 !important;
  color: #7b2cbf !important;
  font-weight: 600;
  border-radius: 8px;
  padding: 8px 24px;
  border: 1px solid #c8aef0;
}

/* --- BODY SCROLL LOCK WHEN MODAL OPEN --- */
body.modal-open {
  overflow: hidden !important;
}