/* Consent Modal Styles */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.modal-panel {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 2.5rem;
  max-width: 520px;
  width: 90%;
  margin: 2rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
  border: 1px solid #e0e0e0;
  animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-panel h3 {
  color: #2c3e50;
  margin-bottom: 1.2rem;
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  background: linear-gradient(135deg, #6a11cb, #2575fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.modal-panel p {
  color: #5a6c7d;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.5;
}

.modal-panel ul {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
  background: #f8f9fa;
  border-radius: 10px;
  padding: 1.5rem;
}

.modal-panel li {
  color: #2c3e50;
  margin-bottom: 0.8rem;
  padding-left: 2rem;
  position: relative;
  font-size: 1rem;
  line-height: 1.4;
}

.modal-panel li:before {
  content: "✓";
  position: absolute;
  left: 0.5rem;
  color: #27ae60;
  font-weight: bold;
  font-size: 1.1rem;
}

.modal-panel a {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.modal-panel a:hover {
  color: #2980b9;
  border-bottom-color: #2980b9;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
    position: relative;
    user-select: none;
}

.checkbox-label:hover {
    background: #e9ecef;
}

/* Hide the default checkbox */
.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom checkbox */
.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #bdc3c7;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
    background: white;
}

/* Checkmark when checked */
.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #3498db;
    border-color: #3498db;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: "✓";
    color: white;
    font-size: 14px;
    font-weight: bold;
    line-height: 1;
}

.checkbox-text {
    flex: 1;
}

/* Focus styles */
.checkbox-label:focus-within .checkmark {
    outline: 2px solid #3498db;
    outline-offset: 2px;
}

.btn-accept {
  background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 15px rgba(37, 117, 252, 0.3);
  letter-spacing: 0.5px;
}

.btn-accept:hover:not(:disabled) {
  background: linear-gradient(135deg, #5809b5 0%, #1c64e0 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 117, 252, 0.4);
}

.btn-accept:active:not(:disabled) {
  transform: translateY(0);
}

.btn-accept:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-decline {
  background: transparent;
  color: #7f8c8d;
  border: 2px solid #bdc3c7;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.btn-decline:hover {
  background: #f8f9fa;
  color: #e74c3c;
  border-color: #e74c3c;
}

/* Responsive design for modal */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 1rem;
  }
  
  .modal-panel {
    padding: 2rem 1.5rem;
    margin: 1rem;
    width: 95%;
    max-width: none;
  }
  
  .modal-panel h3 {
    font-size: 1.4rem;
  }
  
  .modal-panel p {
    font-size: 1rem;
  }
  
  .modal-panel li {
    font-size: 0.95rem;
    padding-left: 1.8rem;
  }
  
  .modal-actions {
    gap: 1rem;
  }
  
  .btn-accept,
  .btn-decline {
    padding: 12px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .modal-panel {
    padding: 1.5rem 1rem;
    margin: 0.5rem;
  }
  
  .modal-panel h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .modal-panel ul {
    padding: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .modal-panel li {
    font-size: 0.9rem;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
  }
  
  .checkbox-label {
    font-size: 0.9rem;
    padding: 0.6rem;
  }
}

/* Animation for modal appearance */
.modal-overlay.show {
  display: flex;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Ensure modal is above all other content */
.modal-overlay {
  z-index: 9999;
}

/* Prevent body scroll when modal is open */
body.modal-open {
  overflow: hidden;
}

/* Enhanced focus styles for accessibility */
.btn-accept:focus,
.btn-decline:focus,
.checkbox-label:focus-within {
  outline: 2px solid #3498db;
  outline-offset: 2px;
}

/* Loading state for accept button */
.btn-accept.loading {
  position: relative;
  color: transparent;
}

.btn-accept.loading:after {
  content: "";
}