From 5cc0c06a11ac4eb4e7ff4724f345b6aae0c1c6a6 Mon Sep 17 00:00:00 2001 From: oliver Date: Thu, 8 Oct 2026 16:29:57 -0300 Subject: [PATCH] Fix modal close + color --- index.html | 5 ++++- script.js | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index fc2a1b3..554bf21 100644 --- a/index.html +++ b/index.html @@ -182,7 +182,7 @@ .oca-empty{text-align:center;padding:2rem;color:rgba(255,255,255,.4);font-style:italic;display:none} .oca-loading{text-align:center;padding:2rem;color:rgba(255,255,255,.4);font-size:.88rem} /* Custom Quote Modal */ - .ow-sub{font-size:.95rem;color:rgba(255,255,255,.7);margin-bottom:1.5rem} + .ow-sub{font-size:.95rem;color:var(--midnight);margin-bottom:1.5rem} .ow-panel input[type="text"],.ow-panel textarea{width:100%;padding:.8rem 1rem;border-radius:var(--radius);border:1px solid var(--line-brass);background:rgba(255,255,255,.05);color:#171c26;font-family:Inter,sans-serif;font-size:.88rem;outline:none;transition:border-color .2s,background .2s;box-sizing:border-box} .ow-panel input[type="text"]:focus,.ow-panel textarea:focus{border-color:var(--brass);background:rgba(255,255,255,.08)} .ow-panel textarea{min-height:100px;resize:vertical} @@ -198,6 +198,9 @@ #customQuoteModal .biz-field input[type="email"]::placeholder{color:rgba(23,28,38,.3)} #customQuoteModal .biz-field input[type="text"]{color:#171c26} #customQuoteModal .biz-field input[type="text"]::placeholder{color:rgba(23,28,38,.3)} + /* Success message sits on the light modal panel, so it needs dark text (the global .biz-success rules target the dark wizard section) */ + #customQuoteModal .biz-success h3{color:var(--midnight)} + #customQuoteModal .biz-success p{color:var(--midnight)} @media(max-width:600px){.oca-table td,.oca-table th{padding:.5rem .65rem;font-size:.8rem}.ow-panel{left:5%;right:5%}.ow-close{top:.5rem;right:.5rem;font-size:1.6rem}} diff --git a/script.js b/script.js index e4856a5..3991b92 100644 --- a/script.js +++ b/script.js @@ -810,6 +810,9 @@ var si = 0, document.getElementById('customQuoteForm').reset(); document.getElementById('customQuoteSuccess').style.display = 'none'; } + /* Expose to global scope so the inline onclick handlers in the modal markup can reach them */ + window.openCustomQuoteModal = openCustomQuoteModal; + window.closeCustomQuoteModal = closeCustomQuoteModal; document.addEventListener('keydown', function(e) { if (e.key === 'Escape') { var modal = document.getElementById('customQuoteModal');