/**
 * External Links Modal Styles
 * Based on profile-completion-page.css modal pattern
 * Adapted for external link confirmation
 */

/* Modal overlay - semitrasparente */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-overlay.show {
  opacity: 1;
}

/* Modal box - variante per external links */
.modal-external-link {
  position: relative;
  background-color: #13161B;
  border-radius: 16px;
  padding: 20px 20px 20px;
  max-width: 520px;
  width: 90%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  text-align: center;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-external-link {
  transform: scale(1);
}

/* Close button - pulsante X */
.modal-exit__close {
  position: absolute;
  top: 16px;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  color: #5c6f82;
  transition: all 0.2s ease;
}

/* .modal-exit__close:hover,
.modal-exit__close:focus {
  background-color: #f5f5f5;
  color: #17324d;
  outline: 2px solid #006eef;
  outline-offset: 2px;
} */

/* Modal icon */
.modal-exit__icon {
  margin: 0 auto 24px;
  display: flex;
  justify-content: center;
}

.modal-exit__icon svg {
  width: 80px;
  height: 80px;
}

/* Modal title */
.modal-exit__title {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 20px;
  line-height: 32px;
  color: #FFFFFF;
  margin: 0 0 12px 0;
  text-align: start;
}

/* Modal subtitle/message */
.modal-exit__subtitle {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #FFFFFF;
  margin: 0 0 24px 0;
  text-align: start;
}

/* Checkbox section */
.modal-exit__checkbox {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
  background-color: #13161B;
  border-radius: 8px;
}

.modal-exit__checkbox .form-check-input {
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
  border: 2px solid #5c6f82;
  border-radius: 4px;
  flex-shrink: 0;
}

.modal-exit__checkbox .form-check-input:checked {
  background-color: #006eef;
  border-color: #006eef;
}

.modal-exit__checkbox .form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(0, 110, 239, 0.25);
  outline: none;
}

.modal-exit__checkbox .form-check-label {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #FFFFFF;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

/* Modal actions - pulsanti */
.modal-exit__actions {
  display: flex;
  gap: 16px;
  justify-content: end;
}

/* Modal buttons */
.btn-modal {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  padding: 8px 19px;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
  min-width: 140px;
}

.btn-modal:focus {
  outline: 2px solid #006eef;
  outline-offset: 2px;
}

.btn-modal--outline {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-modal--outline:hover {
  background-color: #17324d;
  color: #FFFFFF;
}

.btn-modal--outline:focus {
  background-color: #f5f5f5;
}

.btn-modal--primary {
  background-color: #006eef;
  color: #FFFFFF;
  border-color: #006eef;
}

.btn-modal--primary:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

/* Responsive design */
@media (max-width: 767px) {
  .modal-external-link {
    padding: 40px 24px 32px;
    width: 95%;
    max-width: 100%;
  }

  .modal-exit__title {
    font-size: 20px;
    line-height: 28px;
  }

  .modal-exit__subtitle {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 20px;
  }

  .modal-exit__checkbox {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    margin-bottom: 24px;
  }

  .modal-exit__actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-modal {
    width: 100%;
    min-width: auto;
  }
}
