/**
 * HomeProp CTA -- standalone [hp_cta] button + shared two-column modal.
 *
 * Brand: gold #EEB211, dark #212221, Poppins. Selectors rooted at component
 * classes (no bare-element leakage -- DEFERRED_WORK #64 lesson). There is NO
 * sticky bar / global injection: the only render is the inline shortcode button.
 *
 * Modal overlay z-index sits ABOVE the Hayden bottom-corner widget.
 */

.hp-cta-btn,
.hp-cta-modal {
    box-sizing: border-box;
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.hp-cta-modal * {
    box-sizing: border-box;
}

/* ---- Inline shortcode button ---- */
/* Matches the site's bespoke hero CTA (e.g. .hp-sell-hero-cta) exactly so an
   injected button is visually indistinguishable. The " \2192" is a right arrow
   (kept as a CSS escape so the source stays ASCII). */
/* !important on the visual props: these buttons are injected inside Elementor
   HTML widgets, where a theme/Elementor `button` rule otherwise overrides the
   background + radius (renders transparent / 3px). Values match the hero CTA
   exactly, so the reused-class hero buttons (/sell, /invest) are unaffected. */
.hp-cta-btn {
    display: inline-block !important;
    background: #EEB211 !important;
    color: #212221 !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 18px 38px !important;
    font: 700 16px Poppins, sans-serif !important;
    letter-spacing: 0.2px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}

.hp-cta-btn::after {
    content: " \2192";
}

.hp-cta-btn:hover,
.hp-cta-btn:focus-visible {
    background: #D89F0F !important;
    transform: translateY(-1px);
    color: #212221 !important;
    outline: none;
}

/* Modifiers retained for the [hp_cta] shortcode / test surfaces. */
.hp-cta-btn--secondary {
    background: #212221;
    color: #ffffff;
}

.hp-cta-btn--outline {
    background: transparent;
    border: 2px solid #EEB211;
    color: #212221;
}

.hp-cta-btn--outline:hover {
    background: #EEB211;
}

/* ---- Modal (overlay z-index ABOVE the Hayden bottom-corner widget) ---- */
.hp-cta-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 16px;
    overflow-y: auto;
}

.hp-cta-modal[hidden] {
    display: none !important;
}

.hp-cta-modal__overlay {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(33, 34, 33, 0.6);
}

.hp-cta-modal__dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 860px;
    background: #ffffff;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
}

.hp-cta-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    padding: 6px;
    background: transparent;
    border: 0;
    font-size: 28px;
    line-height: 1;
    color: #5A5A5A;
    cursor: pointer;
}

.hp-cta-modal__close:hover {
    color: #212221;
}

/* Two-column grid: contact info LEFT, form RIGHT (matches /about layout). */
.hp-cta-modal__grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) 1.4fr;
    gap: 32px;
    align-items: start;
}

/* LEFT -- contact info block. */
.hp-cta-modal__contact {
    background: #FAF6EA;
    border-radius: 10px;
    padding: 22px 22px 24px;
}

.hp-cta-modal__contact-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #212221;
}

.hp-cta-modal__contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hp-cta-modal__contact-list li {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: #3C3C3C;
}

.hp-cta-modal__contact-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #EEB211;
    margin-bottom: 2px;
}

.hp-cta-modal__contact-list a {
    color: #212221;
    text-decoration: underline;
}

/* RIGHT -- form column. */
.hp-cta-modal__form-title {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 600;
    color: #212221;
}

.hp-cta-modal__form-intro {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #5A5A5A;
}

body.hp-cta-modal-open {
    overflow: hidden;
}

/* Mobile: stack vertically, contact info ABOVE the form. */
@media (max-width: 768px) {
    .hp-cta-modal__dialog {
        padding: 24px 18px 20px;
    }
    .hp-cta-modal__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .hp-cta-modal__contact {
        order: -1;
    }
}
