@import url('styles.css');

body.no-scroll {
  position: fixed;
  left: 0; right: 0;
  top: var(--scroll-lock-top, 0px); 
  width: 100%;
  overflow: hidden;   
  touch-action: none; 
}

.modal {
  overflow-y: auto;
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-start; 
  justify-content: center;
  padding: 70px 10px; 
  background-color: rgb(0 0 0 / 46%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto; 
}

.modal-section-icon {
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: white;
  flex-shrink: 0;
  margin-right: 8px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.1);
}

.modal-section-icon.large-icon {
  width: 28px;
  height: 28px;
  font-size: 18px;
}

.modal-section-icon.small-icon {
  width: 20px;
  height: 20px;
  font-size: 13px;
}


.warning-icon {
  background-color: #e28408c7;
  box-shadow: 0 0 6px rgba(255, 193, 7, 0.5);
}

.info-icon {
  background-color: #3b82f6;
  box-shadow: 0 0 6px rgba(23, 162, 184, 0.4);
}


.hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none;
}

.modal-cancel-content {
  background: #ededed;
  padding: 24px 28px;
  border-radius: 10px;
  width: 100%;
  max-width: 480px;

  overflow: visible; 
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  max-height: none;  

  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  font-family: "Inter", sans-serif;

  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;

  margin-top: var(--modal-offset, 0px);
}

.modal:not(.hidden) .modal-cancel-content {
  opacity: 1;
  transform: scale(1);
}

.modal-cancel-content h3 {
  margin-top: 0;
}

.close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 25px;
  color: #333;
  cursor: pointer;
  transition: color 0.2s ease;
  border-radius: 5px;
}

.close:hover {
  background-color: rgba(244, 67, 54, 0.1);
  color: #d32f2f;
}


.modal-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.btn-danger {
  font-size: 14px;
  background: linear-gradient(135deg, #10b981, #059669);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-danger:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.4);
}

.btn-danger-red {
  font-size: 14px;
  background: linear-gradient(90deg, #f3a2a2, #f24747d8);
  box-shadow: 0 4px 12px rgba(185, 16, 16, 0.203);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-danger-red:hover {
  transform: translateY(-2px);
  background: linear-gradient(90deg, #f24747d8, #f3a2a2);
  box-shadow: 0 4px 12px rgba(185, 16, 16, 0.422);
}



.btn-secondary {
  font-size: 14px;
  background: linear-gradient(90deg, #b1b1b1, #666666cc);
  box-shadow: 0 4px 12px rgba(80, 80, 80, 0.2);
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-secondary:hover {
  background: linear-gradient(90deg, #666666cc, #b1b1b1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(80, 80, 80, 0.4);
}


.title-modal {
  font-size: 16px;
  margin-bottom: 1rem;
}

.text-modal {
  font-family: var(--font-family);
  font-size: 14px;
  margin-bottom: 24px;
}


.modal-title-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-title-icon {
  margin-bottom: 5px;
  width: 30px;
  height: 30px;
  object-fit: contain;
}


.modal-section-header {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
}

.modal-info-icon {
  margin-bottom: 5px;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.warning-box {
  background: linear-gradient(to right, #faebbb, #ffe08a);
  border: 1px solid #ffd54f;
  color: #4f3d0d;
  padding: 14px 16px;
  border-radius: 6px;
  font-size: 13px;
  margin-bottom: 16px;
}

.warning-box strong {
  display: block;
  font-weight: 600;
}
.next-steps {
  background-color: #f9fafb;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.next-steps .section-title {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 8px;
}

.next-steps ol {
  counter-reset: step-counter;
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.next-steps li {
  position: relative;
  padding-left: 28px; 
  margin-bottom: 5px;
  font-size: 13px; 
  color: #333;
}

.next-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 1px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background-color: #3b82f6;
  color: white;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  line-height: 18px;
}

.account-info {
  background-color: #e6f2ff;
  border: 1px solid #3399ff;
  padding: 12px 16px;
  font-size: 13px;
  border-radius: 6px;
  color: #004085;
  margin-bottom: 24px;
}
.account-info div {
  font-size: 12px;
}

#universalModalTitle {
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  position: relative;
}

#universalModalText {

  font-size: 14px;
  margin-bottom: 20px;
  color: #333;
}


.wait-times-box {
  margin-top: 10px;
  background: #f8f9fa;
  padding: 12px;
  border-radius: 10px;
  font-size: 13px;
  color: #333;
  line-height: 1.6;
  text-align: center;
}

.wait-times-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0;
  flex-wrap: wrap;
}

.wait-times-row span {
  font-weight: 200;
  min-width: 90px;
}

.wait-time {
  color: #e86c00;
}

.wait-times-legend {
  margin-top: 8px;
  font-size: 12px;
  color: #555;
}

@media (max-width: 480px) {
  .modal { 
    align-items: flex-start;
    padding: 72px 10px 20px; 
    overflow-y: auto;  
  }

  .modal-cancel-content {
    max-width: 95%;
    padding: 18px;

    margin-top: var(--modal-offset-mobile, 0px);
  }

  #universalModalTitle {
    font-size: 16px;
  }

  #universalModalText  {
    margin-left: 8px;
    font-size: 13px;
    margin-bottom: 10px;
  }

  .warning-box,
  .next-steps,
  .account-info {
    font-size: 10.5px;
    padding: 12px 12px;
  }

  .next-steps li {
    font-size: 10.5px;
    padding-left: 24px;
  }

  .next-steps li::before {
    width: 16px;
    height: 16px;
    line-height: 16px;
    font-size: 10px;
  }

  .btn-danger,
  .btn-secondary {
    font-size: 13px;
    padding: 6px 14px;
  }

  .modal-actions {
    flex-direction: column;
    gap: 8px;
  }

  .account-info div {
    font-size: 11px;
  }

  .modal-title-icon {
    margin-bottom: 3px;
    width: 18px;
    height: 18px;
  }
  
  .modal-section-icon {
    width: 16px;
    height: 16px;
  }

  .modal-info-icon {
    width: 16px;
    height: 16px;
  }
}