/**
 * Modal/accordion FAQ LoungeKey — CSS 100% acotado (sin Bootstrap CSS global).
 *
 * @author Aris Mota <aris@parafina.es>
 * @version 1.85.1
 */

/* --- Backdrop (creado por Bootstrap JS como hermano del modal) --- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1050;
  background-color: #000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 0.65;
}

/* --- Modal shell --- */
#loungekeyFaqModal.modal {
  position: fixed;
  inset: 0;
  z-index: 1055;
  display: none;
  overflow-x: hidden;
  overflow-y: auto;
  outline: 0;
}

#loungekeyFaqModal.modal.fade .modal-dialog {
  transition: transform 0.2s ease-out;
  transform: translateY(-0.5rem);
}

#loungekeyFaqModal.modal.show {
  display: block;
}

#loungekeyFaqModal.modal.show .modal-dialog {
  transform: none;
}

#loungekeyFaqModal .modal-dialog {
  position: relative;
  width: auto;
  margin: 0.75rem auto;
  max-width: 800px;
  pointer-events: none;
}

#loungekeyFaqModal .modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - 1.5rem);
}

#loungekeyFaqModal .modal-dialog-scrollable {
  height: calc(100% - 1.5rem);
}

#loungekeyFaqModal .modal-dialog-scrollable .modal-content {
  max-height: 100%;
  overflow: hidden;
}

#loungekeyFaqModal .modal-dialog-scrollable .modal-body {
  overflow-y: auto;
}

#loungekeyFaqModal .modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  outline: 0;
}

#loungekeyFaqModal .loungekey-faq-modal {
  background-color: #0f0f0f;
  color: #fff;
  border: 1px solid #373838;
  border-radius: 10px;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  overflow: hidden;
}

#loungekeyFaqModal .modal-header {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-bottom: 1px solid #373838;
  padding: 1rem 1.25rem;
}

#loungekeyFaqModal .modal-title {
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.3;
  margin: 0;
  color: #fff;
}

#loungekeyFaqModal .btn-close {
  box-sizing: content-box;
  width: 1em;
  height: 1em;
  padding: 0.25em;
  color: #fff;
  background: transparent
    url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e")
    center / 1em auto no-repeat;
  border: 0;
  border-radius: 0.25rem;
  opacity: 0.85;
  cursor: pointer;
}

#loungekeyFaqModal .btn-close:hover {
  opacity: 1;
}

#loungekeyFaqModal .modal-body {
  position: relative;
  flex: 1 1 auto;
  padding: 0.5rem 0.75rem 1.25rem;
}

/* --- Accordion (solo dentro del modal) --- */
#loungekeyFaqModal .accordion-item {
  background-color: transparent;
  border: none;
  border-bottom: 1px solid #373838;
}

#loungekeyFaqModal .accordion-item:last-child {
  border-bottom: none;
}

#loungekeyFaqModal .accordion-header {
  margin: 0;
}

#loungekeyFaqModal .accordion-button {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  background-color: #0f0f0f;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.35;
  box-shadow: none;
  border: 0;
  border-radius: 0;
  padding: 1rem 2.25rem 1rem 0.75rem;
  cursor: pointer;
}

#loungekeyFaqModal .accordion-button:not(.collapsed) {
  background-color: #373838;
  color: #fff;
  box-shadow: none;
}

#loungekeyFaqModal .accordion-button:focus {
  outline: none;
  box-shadow: none;
}

#loungekeyFaqModal .accordion-button::after {
  position: absolute;
  right: 0.75rem;
  width: 1rem;
  height: 1rem;
  content: "";
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 01.708 0L8 10.293l5.646-5.647a.5.5 0 01.708.708l-6 6a.5.5 0 01-.708 0l-6-6a.5.5 0 010-.708z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-size: 1rem;
  transition: transform 0.2s ease;
  opacity: 0.85;
}

#loungekeyFaqModal .accordion-button:not(.collapsed)::after {
  transform: rotate(-180deg);
}

#loungekeyFaqModal .accordion-body {
  background-color: #0f0f0f;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 300;
  font-size: 0.95rem;
  line-height: 1.5;
  padding: 0.75rem 0.75rem 1.1rem;
}

#loungekeyFaqModal .collapse:not(.show) {
  display: none;
}

#loungekeyFaqModal .collapse.show {
  display: block;
}

#loungekeyFaqModal .collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.2s ease;
}

@media (max-width: 575.98px) {
  #loungekeyFaqModal .modal-dialog {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  #loungekeyFaqModal .modal-dialog-centered {
    min-height: calc(100% - 1rem);
  }

  #loungekeyFaqModal .modal-dialog-scrollable {
    height: calc(100% - 1rem);
  }

  #loungekeyFaqModal .accordion-button,
  #loungekeyFaqModal .accordion-body {
    font-size: 0.9rem;
  }
}
