/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  font-family: 'Poppins', sans-serif;
}

/* Modal Content */
.modal-content {
  background: white;
  border-radius: 10px;
  min-width: 300px;
  max-width: 500px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-content p {
  margin-bottom: 0 !important;
}

.modal-content .modal-description #killer-questions {
  margin: 20px 0;
}

.modal-content .modal-description .killer-question-wrapper {
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.modal-content .modal-description .killer-question-wrapper .killer-question {
  display: block;
  width: 100%;
  padding: 10px;
  background: #eeeeee;
  font-style: italic;
  margin: 0;
}

.modal-content .modal-description .killer-question-wrapper .killer-answers {
  display: flex;
  gap: 5px;
  padding: 10px;
}

/* Modal Title */
.modal-title {
  padding: 10px 20px;
  font-size: 1.25rem;
  color: #fff;
  background: #e22421;
}

/* Modal Description */
.modal-description {
  padding: 20px;
  line-height: 1.5;
}

/* Options Container */
.modal-options {
  /*margin-bottom: 1.5rem;*/
  padding: 0 20px 20px;
}

/* Option Item */
.modal-option {
  display: flex;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.modal-option input[type='checkbox'] {
  margin-right: 0.5rem;
}

.modal-option label {
  font-size: 0.7rem;
  color: #333;
}

.modal-option label.required::after {
  content: '*';
  color: #dc3545;
  margin-left: 0.25rem;
}

/* Buttons Container */
.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 20px;
}

/* Modal Buttons */
.modal-button {
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-button-cancel {
  background: white;
  border: 1px solid #ddd;
  color: #666;
}

.modal-button-cancel:hover {
  background: #f8f9fa;
  border-color: #c8c8c8;
}

.modal-button-accept {
  background: #000000;
  border: none;
  color: white;
}

.modal-button-accept:hover {
  background: #1d1d1d;
}

/* Error Outline for Required Options */
.modal-content input.error {
  outline: 2px solid #dc3545;
}

/* Animation */
@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-content {
  animation: modalFadeIn 0.3s ease-out;
}

@media screen and (max-width: 510px) {
  .modal-content {
    max-width: 90%;
  }
}

@media screen and (max-width: 360px) {
  .modal-content .modal-buttons {
    flex-wrap: wrap;
  }

  .modal-content .modal-buttons {
    flex-wrap: wrap;
  }

  .modal-content .modal-buttons .modal-button {
    width: 100%;
  }
}
