/* ============================================================
   CleanBest Free Quote Popup – cbqp-style.css
   ============================================================ */

   .cbqp-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%231a73e8' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 38px;
}


/* ---------- Floating Trigger Button ---------- */
.cbqp-trigger {
    position: fixed;
    z-index: 99999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 20px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(26,115,232,.45);
    transition: transform .2s, box-shadow .2s;
    letter-spacing: .01em;
}
.cbqp-trigger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(26,115,232,.55);
}
.cbqp-trigger:active { transform: translateY(0); }

/* Positions */
.cbqp-pos-bottom-right { bottom: 28px; right: 28px; }
.cbqp-pos-bottom-left  { bottom: 28px; left:  28px; }
.cbqp-pos-top-right    { top: 100px;   right: 28px; }
.cbqp-pos-top-left     { top: 100px;   left:  28px; }

/* ---------- Modal Overrides ---------- */
.cbqp-modal-dialog {
    max-width: 480px;
    width: 95%;
}

.cbqp-modal-content {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.22);
}

/* ---------- Modal Header ---------- */
.cbqp-modal-header {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    padding: 28px 26px 24px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    position: relative;
}

.cbqp-header-icon {
    background: rgba(255,255,255,.18);
    border-radius: 10px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.cbqp-modal-title {
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    margin: 0 0 4px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    line-height: 1.2;
}

.cbqp-modal-subtitle {
    color: rgba(255,255,255,.82);
    font-size: 13px;
    margin: 0;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.cbqp-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #fff;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    cursor: pointer;
    transition: background .15s;
    padding: 0;
    flex-shrink: 0;
}
.cbqp-close-btn:hover { background: #f0f0f0; }

/* ---------- Modal Body ---------- */
.cbqp-modal-body {
    padding: 28px 26px 22px;
    background: #fff;
}

/* ---------- Form Fields ---------- */
.cbqp-field {
    margin-bottom: 18px;
}

.cbqp-field label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a2e;
    margin-bottom: 7px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.cbqp-field label svg {
    color: #1a73e8;
    flex-shrink: 0;
}

.cbqp-required {
    color: #e53935;
}

.cbqp-input {
    display: block;
    width: 100%;
    padding: 12px 15px;
    font-size: 14px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    color: #333;
    background: #f8faff;
    border: 1.5px solid #e2e8f5;
    border-radius: 10px;
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
}

.cbqp-input::placeholder { color: #b0bec5; }

.cbqp-input:focus {
    border-color: #1a73e8;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(26,115,232,.12);
}

.cbqp-textarea {
    resize: vertical;
    min-height: 100px;
}

/* ---------- Submit Button ---------- */
.cbqp-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Segoe UI', system-ui, sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, opacity .2s;
    box-shadow: 0 4px 16px rgba(26,115,232,.35);
    margin-top: 6px;
    letter-spacing: .02em;
}
.cbqp-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(26,115,232,.45);
}
.cbqp-submit-btn:disabled {
    opacity: .7;
    cursor: not-allowed;
    transform: none;
}

/* ---------- Spinner ---------- */
.cbqp-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cbqp-spin .7s linear infinite;
    display: inline-block;
}
@keyframes cbqp-spin { to { transform: rotate(360deg); } }

/* ---------- Alert ---------- */
.cbqp-alert {
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin-bottom: 16px;
}
.cbqp-alert.cbqp-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #a5d6a7;
}
.cbqp-alert.cbqp-error {
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ef9a9a;
}

/* ---------- Trust Badges ---------- */
.cbqp-trust-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #f0f4ff;
}

.cbqp-trust-badges span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12.5px;
    font-weight: 500;
    color: #555;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* ---------- Success State ---------- */
.cbqp-success-state {
    text-align: center;
    padding: 20px 0 10px;
}
.cbqp-success-icon {
    width: 64px;
    height: 64px;
    background: #e8f5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: #22c55e;
}
.cbqp-success-state h5 {
    color: #1a1a2e;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 8px;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.cbqp-success-state p {
    color: #666;
    font-size: 14px;
    font-family: 'Segoe UI', system-ui, sans-serif;
    margin: 0;
}

/* ---------- Responsive ---------- */
/* @media (max-width: 480px) {
    .cbqp-pos-bottom-right,
    .cbqp-pos-bottom-left {
        bottom: 16px;
        right: 16px;
        left: auto;
    }
    .cbqp-pos-bottom-left { left: 16px; right: auto; }
    .cbqp-trigger span { display: none; }
    .cbqp-trigger { padding: 14px; border-radius: 50%; }
    .cbqp-modal-body { padding: 20px 18px 18px; }
    .cbqp-modal-header { padding: 22px 18px 20px; }
} */

@media (max-width: 480px) {
    .cbqp-pos-bottom-right,
    .cbqp-pos-bottom-left {
        bottom: 16px;
        right: 16px;
        left: auto;
    }
    .cbqp-pos-bottom-left { left: 16px; right: auto; }
    .cbqp-modal-body { padding: 20px 18px 18px; }
    .cbqp-modal-header { padding: 22px 18px 20px; }
}

/* ---------- FORM ---------- */
