/* =========================================================================
   Request-a-Quote modal  —  Charleston Locksmith Pro
   Navy #1d1c27 info column (Leo + human) · light form column · coral accents
   ========================================================================= */

.clp-quote {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.clp-quote.is-mounted { display: flex; }

.clp-quote__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(12, 11, 18, 0.72);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.clp-quote.is-open .clp-quote__backdrop { opacity: 1; }

.clp-quote__dialog {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 1080px;
    max-height: 92vh;
    background: #ececed;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
    transform: translateY(16px) scale(0.98);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease;
}
.clp-quote.is-open .clp-quote__dialog { transform: none; opacity: 1; }

.clp-quote__close {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 3;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    color: #1d1c27;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}
.clp-quote__close:hover { background: var(--accent); color: #fff; transform: rotate(90deg); }

/* ---------- LEFT: info column ---------- */
.clp-quote__aside {
    flex: 0 0 42%;
    max-width: 42%;
    background: #1d1c27;
    color: #fff;
    padding: 44px 38px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

/* Leo (top) — the whole block is a button */
.clp-quote__leo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: transparent;
    border: 0;
    color: #fff;
    cursor: pointer;
    text-align: center;
    padding: 4px 0 8px;
    font-family: inherit;
}
.clp-quote__leo-ring {
    width: 116px;
    height: 116px;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, #fbbc04, var(--accent));
    box-shadow: 0 10px 30px rgba(255, 93, 78, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.clp-quote__leo-ring img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: 50% 20%;
    background: #fff;
    display: block;
}
.clp-quote__leo:hover .clp-quote__leo-ring { transform: translateY(-3px) scale(1.03); box-shadow: 0 16px 38px rgba(255, 93, 78, 0.5); }
.clp-quote__leo-title { font-family: 'Montserrat', sans-serif; font-size: 20px; font-weight: 800; margin-top: 10px; }
.clp-quote__leo-sub { font-size: 13.5px; color: #c9c6d1; max-width: 260px; line-height: 1.5; }
.clp-quote__leo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 12px 24px;
    border-radius: 8px;                 /* square-with-curved-edges, matches SUBMIT NOW */
    background: var(--accent);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 8px 22px rgba(255, 93, 78, 0.3);
    transition: gap 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.clp-quote__leo:hover .clp-quote__leo-cta { gap: 11px; background: var(--accent-hover); transform: translateY(-1px); }

/* divider */
.clp-quote__or {
    display: flex;
    align-items: center;
    text-align: center;
    color: #6f6c7a;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 26px 0;
}
.clp-quote__or::before,
.clp-quote__or::after { content: ""; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.14); }
.clp-quote__or span { padding: 0 14px; }

/* human / call */
.clp-quote__human { text-align: center; }
.clp-quote__logo { max-height: 46px; width: auto; margin-bottom: 14px; }
.clp-quote__human-lead { font-family: 'Montserrat', sans-serif; font-size: 17px; font-weight: 700; margin: 0 0 10px; }
.clp-quote__phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.clp-quote__phone i { color: var(--accent); font-size: 20px; }
.clp-quote__phone:hover { color: var(--accent); }
.clp-quote__visit { color: #9d9aa8; font-size: 13px; margin: 16px 0 6px; }
.clp-quote__addr { font-style: normal; font-size: 14px; line-height: 1.6; color: #e4e2ea; margin-bottom: 14px; }
.clp-quote__hours {
    list-style: none;
    padding: 14px 18px;
    margin: 0 auto 18px;
    max-width: 280px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}
.clp-quote__hours li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 3px 0; color: #d7d5de; }
.clp-quote__hours li span:first-child { font-weight: 700; color: #fff; }

.clp-quote__reviews {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    transition: background 0.2s ease;
}
.clp-quote__reviews:hover { background: rgba(255, 255, 255, 0.15); }
.clp-quote__stars { color: #fbbc04; font-size: 15px; letter-spacing: 1px; }
.clp-quote__reviews-text { color: #fff; font-size: 13px; font-weight: 600; }

/* ---------- RIGHT: form column ---------- */
.clp-quote__main {
    flex: 1 1 auto;
    min-width: 0;
    padding: 48px 46px;
    overflow-y: auto;
}
.clp-quote__title { font-family: 'Montserrat', sans-serif; font-size: 30px; font-weight: 800; color: #17161f; margin: 0 0 6px; }
.clp-quote__subtitle { color: #6b6975; font-size: 14.5px; margin: 0 0 26px; }

.clp-quote__row { display: flex; gap: 14px; }
.clp-quote__row .clp-field { flex: 1; min-width: 0; }

.clp-field {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #dededf;
    border-radius: 8px;
    margin-bottom: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.clp-field > i {
    color: var(--accent);
    font-size: 15px;
    width: 44px;
    text-align: center;
    flex: 0 0 44px;
}
.clp-field input,
.clp-field textarea {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 15px;
    color: #1d1c27;
    padding: 15px 16px 15px 0;
}
.clp-field textarea { resize: vertical; min-height: 96px; line-height: 1.6; }
.clp-field--msg { align-items: flex-start; }
.clp-field--msg > i { margin-top: 15px; }
.clp-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 93, 78, 0.12); }

/* file field */
.clp-field--file { padding-right: 14px; }
.clp-file__btn {
    background: #f0f0f2;
    border: 1px solid #d8d8da;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13.5px;
    font-weight: 600;
    color: #1d1c27;
    cursor: pointer;
    white-space: nowrap;
}
.clp-file__btn:hover { background: #e6e6e9; }
.clp-file__name { font-size: 13px; color: #8a8892; margin-left: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clp-field--file input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }

.clp-quote__hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 12.5px;
    color: #7a7883;
    margin: -6px 0 16px;
    line-height: 1.5;
}
.clp-quote__hint i { color: #fbbc04; margin-top: 2px; }

.clp-quote__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.clp-quote__secure {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #eef6ef;
    border: 1px solid #d6ead7;
    border-radius: 8px;
    padding: 11px 14px;
    margin-bottom: 20px;
    color: #2f7a39;
    font-size: 12.5px;
    line-height: 1.45;
}
.clp-quote__secure svg { flex: 0 0 22px; }

.clp-quote__submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 15px 34px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 22px rgba(255, 93, 78, 0.3);
}
.clp-quote__submit:hover { background: var(--accent-hover); transform: translateY(-1px); }
.clp-quote__submit[disabled] { opacity: 0.6; cursor: wait; transform: none; }
.clp-quote__submit i { transition: transform 0.2s ease; }
.clp-quote__submit:hover i { transform: translateX(3px); }

.clp-quote__status { font-size: 13.5px; margin: 14px 0 0; min-height: 1em; }
.clp-quote__status.is-error { color: #d23a2c; }

/* success */
.clp-quote__success { text-align: center; padding: 30px 10px; }
.clp-quote__success-icon {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #eef6ef;
    color: #2f9b45;
    font-size: 28px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 18px;
}
.clp-quote__success h3 { font-family: 'Montserrat', sans-serif; font-size: 24px; color: #17161f; margin: 0 0 10px; }
.clp-quote__success p { color: #6b6975; font-size: 15px; margin: 0 0 18px; line-height: 1.6; }
.clp-quote__success .clp-quote__phone { color: #1d1c27; font-size: 22px; }
.clp-quote__success .clp-quote__phone:hover { color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
    .clp-quote { padding: 0; }
    .clp-quote__dialog {
        flex-direction: column;
        max-width: 100%;
        width: 100%;
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }
    .clp-quote__aside,
    .clp-quote__main { flex: 0 0 auto; max-width: 100%; }
    .clp-quote__main { order: -1; padding: 54px 24px 34px; }  /* form first on phones */
    .clp-quote__aside { padding: 34px 24px 48px; }
    .clp-quote__title { font-size: 25px; }
    .clp-quote__leo-ring { width: 96px; height: 96px; }
}

@media (max-width: 480px) {
    .clp-quote__row { flex-direction: column; gap: 0; }
    .clp-quote__main { padding: 54px 18px 30px; }
    .clp-quote__phone { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    .clp-quote__dialog,
    .clp-quote__backdrop,
    .clp-quote__submit,
    .clp-quote__leo-ring { transition: none; }
}
