.modal-wrapper .modal {
  width: 50%;
  max-width: 600px;
  box-sizing: border-box;
}

@media screen and (max-width: 960px) {
  .modal-wrapper .modal {
    width: 75%;
  }
}

@media screen and (max-width: 600px) {
  .modal-wrapper {
    padding-top: 60px;
    align-items: flex-start;
    display: flex;
    flex-direction: column;
  }

  .modal-wrapper .modal {
    width: 92%;
    padding: 15px;
    padding-top: 80px;
  }

  .modal-wrapper .modal .header {
    padding: 15px 20px;
    font-size: 16px;
  }

  .modal-wrapper .modal .go-send {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .modal-wrapper .modal .go-send .rate {
    order: -1;
  }

  .modal-wrapper .modal .go-send .btn {
    width: 100%;
    text-align: center;
  }

  .modal-wrapper .modal textarea {
    height: 100px;
  }

  .modal-wrapper .modal .warning {
    font-size: 12px;
  }
}

.modal-wrapper .modal .input input {
  width: 100%;
  background: rgb(33 36 41 / 80%);
  border: 1px solid rgb(255 255 255 / 5%);
  padding: 15px 20px;
  border-radius: 10px;
  color: #fff;
  font-size: 14px;
  transition: 0.3s all;
  outline: none;
}

.modal-wrapper .modal .input input:focus {
  border-color: #3997d3;
  background: rgb(33 36 41 / 100%);
}

@media screen and (max-width: 480px) {
  .modal-wrapper .modal {
    width: 96%;
  }
}

/* Review Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-content.send-review {
  background: #1a1c24;
  border-radius: 12px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 1;
}

.modal-header {
  margin-bottom: 30px;
}

.modal-header h2 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.modal-header p {
  color: #888;
  font-size: 14px;
}

.review-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  background: #0d0e11;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 12px 16px;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(123, 97, 255, 0.5);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.rating-input {
  display: flex;
  gap: 5px;
}

.rating-input i {
  color: #444;
  transition: color 0.2s;
}

.rating-input i.active {
  color: #ffc107;
}

.submit-btn {
  background: linear-gradient(135deg, #7b61ff, #f44e43);
  color: #fff;
  border: none;
  padding: 14px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
}

.submit-btn:hover:not(:disabled) {
  opacity: 0.9;
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.success-message {
  text-align: center;
  padding: 40px 20px;
  color: #4caf50;
}

.success-message i {
  font-size: 48px;
  margin-bottom: 20px;
}

.success-message p {
  font-size: 16px;
  color: #fff;
}

.error-message {
  background: rgba(244, 67, 54, 0.1);
  border: 1px solid rgba(244, 67, 54, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  color: #f44336;
  display: flex;
  align-items: center;
  gap: 10px;
}

.error-message i {
  font-size: 18px;
}
