/* =============================================
   LEAD MODAL — matches Minutes theme
   (--theme #EE7623, --header #0B0D17, Plus Jakarta Sans)
   ============================================= */

/* Sit above sticky header / floating buttons (main.css uses very high z-indexes) */
.modal-backdrop { z-index: 10000009; }
.modal-backdrop.show { opacity: .65; }
.lead-modal { z-index: 10000010; }

.lead-modal .modal-dialog { max-width: 520px; }

.lead-modal .modal-content {
    position: relative;
    border: 0;
    border-radius: 24px;
    overflow: hidden;
    background: var(--white, #fff);
    box-shadow: 0 30px 80px rgba(11, 13, 23, .35);
}

/* Header band */
.lead-modal .lead-modal-head {
    position: relative;
    padding: 34px 36px 26px;
    background: var(--header, #0B0D17);
    color: var(--white, #fff);
    overflow: hidden;
}
.lead-modal .lead-modal-head::before,
.lead-modal .lead-modal-head::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    border: 1.5px solid rgba(238, 118, 35, .35);
    pointer-events: none;
}
.lead-modal .lead-modal-head::before { width: 220px; height: 220px; right: -70px; top: -90px; }
.lead-modal .lead-modal-head::after  { width: 140px; height: 140px; right: -30px; top: -50px; border-style: dashed; }

.lead-modal .lead-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 14px;
    border-radius: 100px;
    background: rgba(238, 118, 35, .15);
    color: var(--theme, #EE7623);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
}
.lead-modal .lead-tag .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--theme, #EE7623);
    box-shadow: 0 0 0 0 rgba(238, 118, 35, .6);
    animation: leadPulse 1.8s infinite;
}
@keyframes leadPulse {
    0%   { box-shadow: 0 0 0 0 rgba(238, 118, 35, .6); }
    70%  { box-shadow: 0 0 0 8px rgba(238, 118, 35, 0); }
    100% { box-shadow: 0 0 0 0 rgba(238, 118, 35, 0); }
}

.lead-modal .lead-modal-head h3 {
    color: var(--white, #fff);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 8px;
}
.lead-modal .lead-modal-head h3 span { color: var(--theme, #EE7623); }
.lead-modal .lead-modal-head p {
    color: rgba(255, 255, 255, .7);
    font-size: 15px;
    margin: 0;
}

.lead-modal .lead-close {
    position: absolute;
    top: 18px; right: 18px;
    z-index: 2;
    width: 38px; height: 38px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    color: var(--white, #fff);
    font-size: 16px;
    transition: .3s ease;
}
.lead-modal .lead-close:hover { background: var(--theme, #EE7623); transform: rotate(90deg); }

/* Body / form */
.lead-modal .lead-modal-body { padding: 28px 36px 32px; }

.lead-modal .lead-field { position: relative; margin-bottom: 18px; }
.lead-modal .lead-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--header, #0B0D17);
    font-size: 14px;
    font-weight: 600;
}
.lead-modal .lead-field label .req { color: var(--theme, #EE7623); }

.lead-modal .lead-input-wrap { position: relative; }
.lead-modal .lead-input-wrap > i {
    position: absolute;
    left: 18px; top: 17px;
    color: var(--theme, #EE7623);
    font-size: 15px;
    pointer-events: none;
}
.lead-modal .lead-input-wrap .form-control {
    width: 100%;
    padding: 13px 18px 13px 46px;
    border: 1px solid rgba(2, 6, 10, .12);
    border-radius: 14px;
    background: var(--bg, #EFEDE5);
    color: var(--header, #0B0D17);
    font-size: 15px;
    box-shadow: none;
    transition: border-color .3s, background .3s, box-shadow .3s;
}
.lead-modal .lead-input-wrap textarea.form-control { min-height: 110px; resize: vertical; }
.lead-modal .lead-input-wrap .form-control::placeholder { color: var(--text, #534F5A); opacity: .6; }
.lead-modal .lead-input-wrap .form-control:focus {
    background: var(--white, #fff);
    border-color: var(--theme, #EE7623);
    box-shadow: 0 0 0 4px rgba(238, 118, 35, .12);
}
.lead-modal .lead-field.has-error .form-control { border-color: #dc3545; background: #fff5f5; }
.lead-modal .lead-error {
    display: none;
    margin-top: 6px;
    color: #dc3545;
    font-size: 13px;
}
.lead-modal .lead-field.has-error .lead-error { display: block; }

/* Honeypot — hidden from humans */
.lead-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.lead-modal .lead-submit { width: 100%; margin-top: 6px; }
.lead-modal .lead-submit[disabled] { opacity: .75; cursor: not-allowed; }
.lead-modal .lead-submit .spinner {
    display: none;
    width: 18px; height: 18px;
    border: 2px solid rgba(255, 255, 255, .4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: leadSpin .7s linear infinite;
}
.lead-modal .lead-submit.is-loading .spinner { display: inline-block; }
.lead-modal .lead-submit.is-loading .btn-label i { display: none; }
@keyframes leadSpin { to { transform: rotate(360deg); } }

.lead-modal .lead-alert {
    display: none;
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fff5f5;
    color: #b02a37;
    font-size: 14px;
}
.lead-modal .lead-alert.show { display: block; }

.lead-modal .lead-note {
    margin: 14px 0 0;
    text-align: center;
    color: var(--text, #534F5A);
    font-size: 13px;
}
.lead-modal .lead-note i { color: var(--theme, #EE7623); margin-right: 4px; }

/* Success state */
.lead-modal .lead-success { display: none; padding: 46px 36px 40px; text-align: center; }
.lead-modal.is-success .lead-success { display: block; }
.lead-modal.is-success .lead-modal-head p,
.lead-modal.is-success .lead-modal-body { display: none; }
.lead-modal .lead-success .icon {
    width: 78px; height: 78px;
    margin: 0 auto 20px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    background: rgba(238, 118, 35, .12);
    color: var(--theme, #EE7623);
    font-size: 34px;
    animation: iconGlow 2.5s ease-in-out infinite;
}
.lead-modal .lead-success h4 {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--header, #0B0D17);
    margin-bottom: 8px;
}
.lead-modal .lead-success p { color: var(--text, #534F5A); margin-bottom: 24px; }

/* Footer "Request a call back" form feedback */
.footer-lead-msg { display: none; margin-top: 12px; font-size: 14px; }
.footer-lead-msg.ok  { display: block; color: #198754; }
.footer-lead-msg.err { display: block; color: #dc3545; }

@media (max-width: 575px) {
    .lead-modal .modal-dialog { margin: 12px; }
    .lead-modal .lead-modal-head { padding: 28px 22px 22px; }
    .lead-modal .lead-modal-head h3 { font-size: 23px; }
    .lead-modal .lead-modal-body { padding: 22px 22px 26px; }
}
