/* Basic popup overlay and content */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.popup-content-wrap {
  display: flex; 
  width: 100%; 
  height: 100%; 
  justify-content: center; 
  align-items: center; 
}

.popup-content {
    background: white;
    padding: 2rem;
    border-radius: 0;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
	border: 15px solid #f9f0e1;
}

.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.popup-close:hover {
    color: #000;
}

.popup-content h2 {
    margin: 1.5rem 0 2rem 0;
    font-size: 2.5rem;
    color: #333;
}

.popup-content p {
    margin: 0 0 1rem 0;
    color: #666;
    line-height: 1.5;
	color: "#181746";
}
.popup-content p::before {
    content: url('data:image/svg+xml;utf8,<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 180 15"><title>wave</title><g id="waves"><path d="M177.87,13.12c-7.39,0-9-2.91-9-5.35a3.78,3.78,0,0,1,1.28-3.08,2.8,2.8,0,0,1,.6-.39c-1.61-.62-4-.82-6.88,1.34a16.64,16.64,0,0,0-2.9,3c-1.8,2.21-3.66,4.49-8.25,4.49-7.4,0-9-2.91-9-5.35a3.78,3.78,0,0,1,1.27-3.08,2.8,2.8,0,0,1,.6-.39c-1.61-.62-4-.82-6.88,1.34a16.64,16.64,0,0,0-2.9,3c-1.8,2.21-3.65,4.49-8.25,4.49-7.4,0-9-2.91-9-5.35A3.78,3.78,0,0,1,120,4.69a3.4,3.4,0,0,1,.6-.39c-1.61-.62-4-.82-6.88,1.34a16.64,16.64,0,0,0-2.9,3c-1.79,2.21-3.65,4.49-8.25,4.49-7.39,0-9-2.91-9-5.35a3.78,3.78,0,0,1,1.28-3.08,3,3,0,0,1,.59-.39c-1.6-.62-4-.82-6.88,1.34a16.92,16.92,0,0,0-2.89,3c-1.8,2.21-3.66,4.49-8.25,4.49-7.4,0-9-2.91-9-5.35a3.78,3.78,0,0,1,1.27-3.08,2.8,2.8,0,0,1,.6-.39c-1.61-.62-4-.82-6.88,1.34a16.64,16.64,0,0,0-2.9,3c-1.8,2.21-3.66,4.49-8.25,4.49-7.4,0-9-2.91-9-5.35a3.78,3.78,0,0,1,1.27-3.08,3.07,3.07,0,0,1,.6-.39c-1.61-.62-4-.82-6.88,1.34a16.64,16.64,0,0,0-2.9,3c-1.8,2.21-3.65,4.49-8.25,4.49-7.39,0-8.95-2.91-8.95-5.35a3.78,3.78,0,0,1,1.28-3.08,3,3,0,0,1,.59-.39c-1.6-.62-4-.82-6.88,1.34a17.35,17.35,0,0,0-2.9,3c-1.79,2.21-3.65,4.49-8.24,4.49a1,1,0,0,1,0-2c3.64,0,5-1.65,6.69-3.75A19.07,19.07,0,0,1,12.07,4c6.52-4.93,11.56.11,11.61.16a1,1,0,0,1-.91,1.68,2.74,2.74,0,0,0-1.95.36,1.89,1.89,0,0,0-.54,1.53c0,2.22,2.34,3.35,7,3.35,3.65,0,5-1.65,6.7-3.75A18.38,18.38,0,0,1,37.18,4c6.52-4.93,11.56.11,11.61.16A1,1,0,0,1,49,5.38a1,1,0,0,1-1.07.5,2.74,2.74,0,0,0-2,.36,1.89,1.89,0,0,0-.54,1.53c0,2.22,2.34,3.35,7,3.35,3.64,0,5-1.65,6.7-3.75A18.64,18.64,0,0,1,62.28,4c6.53-4.93,11.56.11,11.61.16A1,1,0,0,1,73,5.88a2.75,2.75,0,0,0-2,.36,1.93,1.93,0,0,0-.53,1.53c0,2.22,2.34,3.35,7,3.35,3.64,0,5-1.65,6.69-3.75A19.07,19.07,0,0,1,87.39,4C93.92-.89,99,4.15,99,4.2a1,1,0,0,1-.91,1.68,2.74,2.74,0,0,0-2,.36,1.89,1.89,0,0,0-.54,1.53c0,2.22,2.34,3.35,7,3.35,3.65,0,5-1.65,6.7-3.75A18.38,18.38,0,0,1,112.5,4c6.52-4.93,11.56.11,11.61.16a1,1,0,0,1,.16,1.18,1,1,0,0,1-1.07.5,2.74,2.74,0,0,0-2,.36,1.89,1.89,0,0,0-.54,1.53c0,2.22,2.34,3.35,7,3.35,3.64,0,5-1.65,6.7-3.75A18.64,18.64,0,0,1,137.6,4c6.53-4.93,11.57.11,11.62.16a1,1,0,0,1-.92,1.68,2.75,2.75,0,0,0-2,.36,1.93,1.93,0,0,0-.53,1.53c0,2.22,2.34,3.35,7,3.35,3.64,0,5-1.65,6.7-3.75A18.64,18.64,0,0,1,162.71,4c6.53-4.93,11.56.11,11.61.16a1,1,0,0,1-.91,1.68,2.75,2.75,0,0,0-1.95.36,1.89,1.89,0,0,0-.54,1.53c0,2.22,2.34,3.35,7,3.35a1,1,0,0,1,0,2Z"></path></g></svg>');
	display: block;
	max-width: 197px;
	height: auto;
	border-color: fuchsia;
	border-width: 1px;
	margin-bottom: 5px;
	fill: "#181746";
}

.popup-link {
    display: inline-block;
    background: #181746;
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
	float: right;
}

.popup-link:hover {
    background: #005a87;
}

/* Responsive tweaks */
@media (max-width: 600px) {
    .popup-content {
        margin: 1rem;
        padding: 1.5rem;
        max-width: calc(100% - 2rem);
    }
}

/* Focus styles for accessibility Note: Headlines usually don't need outline */
/* 
.popup-overlay:focus-within .popup-content,
.popup-close:focus,
.popup-link:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

.popup-content h2:focus {
    outline: none;  
}
*/