From 43dbb143339bee272baa1f6d3c3e75c382dd7e32 Mon Sep 17 00:00:00 2001 From: oliver Date: Fri, 15 May 2026 09:32:59 -0300 Subject: [PATCH] refactor: replace inline trial modal with components/trial_modal.js --- index.html | 534 ++--------------------------------------------------- 1 file changed, 12 insertions(+), 522 deletions(-) diff --git a/index.html b/index.html index 54c3a5b..5eb3636 100644 --- a/index.html +++ b/index.html @@ -226,8 +226,7 @@ .nav-chat-toggle, .nav-chat-send, .chat-panel-close, - .chat-input-send, - #modal-close { + .chat-input-send { background: none; border: none; cursor: pointer; @@ -253,8 +252,7 @@ } .nav-chat-input, - .chat-input-field, - .modal-field { + .chat-input-field { border: none; outline: none; background: transparent; @@ -270,8 +268,7 @@ } .nav-chat-input::placeholder, - .chat-input-field::placeholder, - .modal-field::placeholder { + .chat-input-field::placeholder { color: var(--grey); } @@ -283,9 +280,7 @@ .pricing-cta, .custom-link, .story-link, - .story-cta, - .open-modal, - .modal-submit { + .story-cta { transition: transform 0.2s, opacity 0.2s, @@ -484,8 +479,7 @@ .hero h1, .section-title, - .story-title, - .modal-title { + .story-title { font-family: Georgia, "Times New Roman", serif; color: var(--white); font-weight: 700; @@ -531,7 +525,6 @@ .btn-primary, .pricing-cta, - .modal-submit, .story-cta { display: inline-flex; align-items: center; @@ -558,7 +551,6 @@ .btn-primary:hover, .pricing-cta:hover, - .modal-submit:hover, .story-cta:hover { transform: translateY(-1px); opacity: 0.92; @@ -644,9 +636,7 @@ .news-teaser, .custom-body, .pricing-quote, - .footer-brand p, - .modal-subtitle, - #modal-confirm .confirm-sub { + .footer-brand p { color: var(--silver); } @@ -1190,8 +1180,6 @@ .pricing-period, .pricing-setup, .footer-col h4, - .field-label, - .modal-title + p, .footer-bottom span, .footer-legal a { font-size: 0.68rem; @@ -1201,8 +1189,7 @@ .news-area, .pricing-setup, - .footer-col h4, - .field-label { + .footer-col h4 { color: var(--gold); font-weight: 700; } @@ -1571,197 +1558,6 @@ flex-wrap: wrap; } - #modal-overlay { - position: fixed; - inset: 0; - z-index: 9000; - display: none; - align-items: center; - justify-content: center; - padding: 20px; - background: rgba(62, 39, 35, 0.84); - backdrop-filter: blur(14px); - -webkit-backdrop-filter: blur(14px); - } - - #modal-box { - position: relative; - width: 100%; - max-width: 640px; - padding: 44px; - background: var(--card); - border-radius: 28px; - border: 1px solid rgba(230, 81, 0, 0.24); - box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3); - } - - #modal-close { - position: absolute; - top: 18px; - right: 18px; - width: 40px; - height: 40px; - border-radius: 50%; - color: var(--grey); - background: rgba(93, 64, 55, 0.05); - font-size: 1.2rem; - } - - .modal-title { - font-size: 2.2rem; - margin-bottom: 10px; - } - - .modal-subtitle { - font-size: 0.9rem; - margin-bottom: 26px; - } - - .modal-field-group { - margin-bottom: 18px; - } - - .modal-grid { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 0 16px; - } - - .modal-grid .modal-field-group.full { - grid-column: 1 / -1; - } - - .field-label { - display: block; - margin-bottom: 8px; - } - - .modal-field { - width: 100%; - padding: 14px 16px; - border-radius: 16px; - background: rgba(93, 64, 55, 0.05); - border: 1px solid rgba(230, 81, 0, 0.18); - color: var(--white); - } - - .modal-field option, - .modal-field optgroup { - background: var(--card); - color: var(--white); - } - - .modal-field:focus { - border-color: var(--gold); - box-shadow: 0 0 0 3px var(--gold-glow); - } - - .modal-select { - position: relative; - } - - .modal-select-button { - position: relative; - text-align: left; - cursor: pointer; - padding-right: 42px; - } - - .modal-select-button::after { - content: ""; - position: absolute; - right: 16px; - top: 50%; - width: 14px; - height: 8px; - transform: translateY(-50%); - background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23E65100' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); - background-repeat: no-repeat; - background-position: center; - pointer-events: none; - } - - .modal-select-button.is-placeholder { - color: var(--grey); - } - - .modal-select-menu { - position: absolute; - top: calc(100% + 8px); - left: 0; - right: 0; - z-index: 3; - max-height: 220px; - padding: 8px; - background: var(--card); - border: 1px solid rgba(230, 81, 0, 0.18); - border-radius: 16px; - box-shadow: 0 18px 40px rgba(62, 39, 35, 0.16); - overflow-y: auto; - display: none; - } - - .modal-select.open .modal-select-menu { - display: block; - } - - .modal-select-option { - width: 100%; - padding: 10px 12px; - border: none; - border-radius: 12px; - background: transparent; - color: var(--white); - text-align: left; - font: inherit; - cursor: pointer; - transition: - background 0.2s, - color 0.2s; - } - - .modal-select-option:hover, - .modal-select-option:focus-visible, - .modal-select-option.is-selected { - outline: none; - background: rgba(230, 81, 0, 0.1); - color: var(--gold); - } - - select.modal-field { - appearance: none; - -webkit-appearance: none; - color: var(--white); - background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23E65100' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); - background-repeat: no-repeat; - background-position: right 16px center; - padding-right: 42px; - color-scheme: light; - } - - .modal-submit { - width: 100%; - margin-top: 8px; - } - - .modal-submit:disabled { - opacity: 0.56; - cursor: not-allowed; - } - - #modal-confirm { - display: none; - text-align: center; - padding-top: 8px; - } - - #modal-confirm .confirm-title { - font-family: Georgia, "Times New Roman", serif; - font-size: 1.6rem; - color: var(--gold-hi); - margin-bottom: 12px; - } - @media (max-width: 1180px) { .story-grid { grid-template-columns: 1fr; @@ -1834,14 +1630,6 @@ .proof-grid { grid-template-columns: 1fr; } - - #modal-box { - padding: 34px 22px; - } - - .modal-grid { - grid-template-columns: 1fr; - } } @media (max-width: 480px) { @@ -1849,7 +1637,6 @@ font-size: 2.8rem; } - .modal-title, .section-title, .story-title { font-size: 2rem; @@ -2646,137 +2433,6 @@ - - +