/*
 * "Quick Inquiry" popup (core/views/partials/floating-contact.php) — a
 * promo-banner-over-form layout (badge + headline + stat counters + form +
 * trust bar) instead of the plain Bootstrap modal it used to be. Scoped
 * under .qi-* so it doesn't touch the generic .modal-content styling other
 * modals on the site may rely on.
 */
.qi-modal .modal-dialog {
    max-width: 600px;
}

.qi-modal-content {
    border: none;
    border-radius: 16px;
    position: relative;
}

/* Rounded on the first/last section rather than overflow:hidden on the
   whole card — the searchable country field's dropdown list (opened from
   inside .qi-body) needs to be able to pop outside the card's box, which
   overflow:hidden on the parent would clip. */
.qi-banner {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.qi-trust-bar {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

.qi-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    color: #111827;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.qi-close:hover {
    background: #ffffff;
}

.qi-banner {
    background: linear-gradient(135deg, #003d7a 0%, var(--rs-theme-blue) 100%);
    color: #ffffff;
    padding: 28px 32px 0;
}

.qi-banner-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.qi-badge {
    display: inline-block;
    background: var(--rs-theme-bright-green);
    color: #06210f;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 20px;
}

.qi-heading {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    margin: 14px 0 8px;
    color: #ffffff;
}

.qi-heading span {
    color: var(--rs-theme-bright-green);
}

.qi-sub {
    font-size: 13.5px;
    line-height: 1.6;
    color: #ffffff;
    max-width: 320px;
    margin: 0;
}

.qi-banner-image {
    flex-shrink: 0;
}

.qi-banner-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    border: 3px solid rgba(255, 255, 255, 0.2);
}

.qi-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 20px;
    padding: 18px 0 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.qi-stat {
    text-align: center;
}

.qi-stat-number {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: var(--rs-theme-bright-green);
}

.qi-stat-label {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.8;
}

.qi-body {
    background: #ffffff;
    padding: 26px 32px 8px;
}

.qi-form-title {
    font-size: 19px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 16px;
}

.qi-body .rs-contact-input textarea {
    min-height: 90px;
}

.qi-submit-btn.rs-btn.has-theme-light-blue {
    background: var(--rs-theme-bright-green);
}

.qi-submit-btn.rs-btn.has-theme-light-blue.has-bg::before {
    background-color: #34a765;
}

.qi-trust-bar {
    background: var(--rs-theme-blue);
    color: #ffffff;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    padding: 14px 20px;
    margin-top: 18px;
    font-size: 12px;
    font-weight: 600;
}

.qi-trust-bar i {
    color: var(--rs-theme-bright-green);
    margin-inline-end: 4px;
}

@media (max-width: 575px) {
    .qi-banner-image { display: none; }
    .qi-stats { grid-template-columns: repeat(2, 1fr); }
    .qi-banner { padding: 24px 20px 0; }
    .qi-body { padding: 22px 20px 4px; }
    .qi-trust-bar { font-size: 11px; padding: 12px; }
}
