Bathroom Renovation
/* Text-only trigger styling */
.calc-trigger-btn {
display: inline-block;
background: transparent !important;
border: none !important;
box-shadow: none !important;
border-radius: 0 !important;
color: inherit !important;
text-decoration: none !important;
padding: 8px 18px; /* Generous padding on left/right makes the hit area broad and easily clickable */
cursor: pointer;
transition: opacity 0.15s ease;
line-height: inherit;
}
.calc-trigger-btn:hover {
opacity: 0.75;
}
/* Modal overlay – completely hidden on page load */
.calc-popup-overlay {
display: none;
position: fixed;
inset: 0;
width: 100vw;
height: 100vh;
background: rgba(15, 23, 42, 0.75);
backdrop-filter: blur(4px);
z-index: 999999;
align-items: center;
justify-content: center;
}
/* Shows the modal ONLY when its anchor matches the URL hash */
.calc-popup-overlay:target {
display: flex !important;
}
/* Modal container window */
.calc-popup-card {
position: relative;
background: #ffffff;
width: 92%;
max-width: 680px;
max-height: 85vh;
border-radius: 16px;
padding: 24px;
overflow-y: auto;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.35);
color: #1e293b;
}
/* Close button (clicking changes hash to #!, closing the target state) */
.calc-popup-close {
position: absolute;
top: 12px;
right: 16px;
font-size: 28px;
line-height: 1;
color: #94a3b8 !important;
text-decoration: none !important;
font-weight: bold;
}
.calc-popup-close:hover {
color: #0f172a !important;
}
.calc-popup-content {
margin-top: 12px;
min-height: 300px;
width: 100%;
}