﻿/* Prevent background scrolling when modal is open */
body.modal-open {
  overflow: hidden;
}

/* 🟢 TARGET ELEMENTOR'S INVISIBLE WRAPPER TO STOP SQUISHING 🟢 */
.elementor-widget-kti_region_modal_widget,
.elementor-widget-kti_region_modal_widget .elementor-widget-container {
  width: auto;
  min-width: max-content;
  flex-shrink: 0;
  overflow: visible;
}

/* Green Pill Button Styling */
.kti-region-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #009a17;
  color: #ffffff;
  padding: 10px 24px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  gap: 8px;
  box-sizing: border-box;

  /* Force the button itself to expand */
  width: auto;
  min-width: max-content;
  max-width: none;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: visible;
}

.kti-region-btn:hover {
  background-color: #007a1d;
  transform: translateY(-2px);
}

/* The Bulletproof Text Fix */
.kti-region-btn .btn-text {
  display: inline-block;
  visibility: visible;
  opacity: 1;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

/* Protect the icon */
.kti-region-btn .btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kti-region-btn .btn-icon svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: block;
}

/* Modal Overlay - Dark Blue Transparent */
.kti-region-modal-overlay {
  display: none; /* Hidden by default */
  position: fixed;
  inset: 0;
  background-color: rgba(0, 51, 97, 0.7);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Scrollable Wrapper for multiple cards */
.kti-region-modal-wrapper {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 40px 20px;
}

/* Stacked White Cards Styling */
.modal-card-wrapper {
  background: #ffffff;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.modal-card-heading {
  color: #003361;
  font-family: sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 15px 0;
}

.modal-card-text {
  color: #666666;
  font-size: 15px;
  line-height: 1.6;
}

/* Close Button (Fixed to top right of screen or wrapper) */
.kti-modal-close {
  position: fixed;
  top: 10px;
  right: 30px;
  background: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.kti-modal-close:hover {
  background: #f0f0f0;
}
