/* ============================================================
   Marketing Popup Styles
   Easily customizable via CSS variables for typography, colors,
   button styling, close button styling, and default background.
   ============================================================ */

/* Default variables for easy editing */
:root {
  /* Typography & Colors */
  --popup-font-family: 'Montserrat', sans-serif;
  --popup-heading-color: #ffffff;
  --popup-body-color: #ffffff;
  
  /* Background overlay (optional) 
  --popup-overlay: rgba(0, 0, 0, 0.5);*/
  
  /* Button styles (call-to-action) */
  --popup-btn-bg: #007bff;
  --popup-btn-color: #ffffff;
  --popup-btn-border: none;
  
  /* Close button styling */
  --popup-close-bg: #fff;
  --popup-close-size: 30px;
  --popup-close-color: #000;
  
  /* Default modal background color if no background image is provided */
  --popup-default-bg: #0c2e8a;  /* You can change this to any color */
}

/* Modal content styling */
.modal-marketing .modal-content {
  padding: 20px;
  border-radius: 25px;
  position: relative;
  /* Use the provided background image if available; otherwise, fall back to default */
  background: var(--popup-default-bg);
  background-size: cover;
}

/* Optional overlay for better text readability */
.modal-marketing .modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--popup-overlay);
  border-radius: 25px;
  z-index: 0;
}

/* Ensure content appears above the overlay */
.modal-marketing .modal-header,
.modal-marketing .modal-body {
  position: relative;
  z-index: 1;
}

/* Headings inside the modal */
.modal-marketing h1,
.modal-marketing h2,
.modal-marketing h3,
.modal-marketing h4,
.modal-marketing h5,
.modal-marketing h6 {
  font-family: var(--popup-font-family);
  font-weight: 400;
  color: var(--popup-heading-color);
  margin: 0 0 20px;
  padding: 0;
  text-shadow: 2px 2px rgba(var(--color-black-rgb), 0.9);
}

/* Paragraphs inside the modal body */
.modal-marketing .modal-body p {
  font-family: var(--popup-font-family);
  font-weight: 400;
  color: var(--popup-body-color);
}

/* Styling for call-to-action buttons inside the modal */
.modal-marketing .popup-btn {
  background-color: var(--popup-btn-bg);
  color: var(--popup-btn-color);
  border: var(--popup-btn-border);
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.modal-marketing .popup-btn:hover {
  background-color: #0069d9; /* Adjust hover color as needed */
}

/* Remove default header spacing if present */
.modal-marketing .modal-header {
  border-bottom: none;
}

/* Remove extra padding from modal-body if needed */
.modal-marketing .modal-body {
  padding-top: 0;
}

/* Custom close button styling */
.modal-marketing .btn-close.popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1050;
  background-color: var(--popup-close-bg);
  border: none;
  border-radius: 50%;
  width: var(--popup-close-size);
  height: var(--popup-close-size);
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  background-image: none;
}

.modal-marketing .btn-close.popup-close::after {
  content: "×";
  font-size: 18px;
  color: var(--popup-close-color);
}
