/* ── Nexify Get a Quote ── */

.nxq-trigger-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #F36E21;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    text-decoration: none;
}
.nxq-trigger-btn:hover {
    background: #F25D07;
    transform: translateY(-1px);
}

/* Overlay */
.nxq-overlay {
    position: fixed;
    inset: 0;
    background: rgba(16, 24, 32, 0.78);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.nxq-overlay[hidden] { display: none !important; }
.nxq-overlay.nxq-visible { opacity: 1; }

/* Dialog */
.nxq-dialog {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 28px 36px 28px;
    position: relative;
    transform: translateY(24px) scale(0.97);
    transition: transform 0.28s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 24px 80px rgba(0,0,0,0.22);
}
.nxq-overlay.nxq-visible .nxq-dialog {
    transform: translateY(0) scale(1);
}
@media (max-width: 480px) {
    .nxq-dialog { padding: 24px 18px 20px; border-radius: 12px; }
}

/* ── Close button TOP RIGHT ── */
.nxq-close {
    position: absolute;
    top: 14px;
    right: 14px;
    left: auto;
    background: #f2f2f2;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    z-index: 10;
}
.nxq-close:hover {
    background: #F36E21;
    color: #fff;
}

/* Header */
.nxq-header {
    margin-bottom: 20px;
    padding-right: 36px;
}
.nxq-tag {
    display: inline-block;
    background: #FFF0E6;
    color: #F36E21;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 4px;
    margin-bottom: 10px;
    border: 1px solid #fdd5b8;
}
.nxq-title {
    font-size: 22px;
    font-weight: 700;
    color: #16242A;
    margin: 0 0 5px;
    line-height: 1.3;
}
.nxq-sub {
    font-size: 13px;
    color: #999;
    margin: 0;
}

/* Fields */
.nxq-field {
    margin-bottom: 14px;
    position: relative;
}
.nxq-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #16242A;
    margin-bottom: 5px;
}
.nxq-field label span {
    color: #F36E21;
    margin-left: 2px;
    font-weight: 400;
    font-size: 12px;
}
.nxq-field input,
.nxq-field textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid #e8e8e8;
    border-radius: 8px;
    font-size: 14px;
    color: #16242A;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
    outline: none;
}
.nxq-field input::placeholder,
.nxq-field textarea::placeholder { color: #bbb; }
.nxq-field input:focus,
.nxq-field textarea:focus {
    border-color: #F36E21;
    box-shadow: 0 0 0 3px rgba(243,110,33,0.10);
    background: #fff;
}
.nxq-field input.nxq-error,
.nxq-field textarea.nxq-error {
    border-color: #e03;
    box-shadow: 0 0 0 3px rgba(238,0,51,0.08);
}
.nxq-field textarea { resize: vertical; min-height: 76px; }

/* Two col */
.nxq-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
@media (max-width: 480px) { .nxq-row { grid-template-columns: 1fr; } }

/* Autocomplete */
.nxq-autocomplete-wrap { position: relative; }
.nxq-suggestions {
    position: absolute;
    top: calc(100% + 2px);
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid #F36E21;
    border-radius: 8px;
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    max-height: 200px;
    overflow-y: auto;
}
.nxq-suggestions[hidden] { display: none; }
.nxq-suggestions li {
    padding: 9px 14px;
    font-size: 13px;
    color: #16242A;
    cursor: pointer;
    transition: background 0.1s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.nxq-suggestions li:hover,
.nxq-suggestions li.nxq-active { background: #FFF0E6; color: #F36E21; }
.nxq-suggestions li::before {
    content: '';
    width: 5px; height: 5px;
    border-radius: 50%;
    background: #F36E21;
    flex-shrink: 0;
    opacity: 0.4;
}
.nxq-suggestions li:hover::before { opacity: 1; }
.nxq-suggestions li.nxq-no-result { color: #aaa; cursor: default; font-style: italic; }
.nxq-suggestions li.nxq-no-result::before { display: none; }

/* Action buttons */
.nxq-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}
@media (max-width: 480px) { .nxq-actions { grid-template-columns: 1fr; } }

.nxq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    font-family: inherit;
}
.nxq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.13);
}
.nxq-btn:active { transform: translateY(0); }

/* WhatsApp — Nexify Orange */
.nxq-btn-wa { background: #F36E21; color: #fff; }
.nxq-btn-wa:hover { background: #F25D07; }

/* Email — Dark Navy */
.nxq-btn-email { background: #16242A; color: #fff; }
.nxq-btn-email:hover { background: #1e3340; }

/* Scrollbar */
.nxq-dialog::-webkit-scrollbar { width: 4px; }
.nxq-dialog::-webkit-scrollbar-track { background: transparent; }
.nxq-dialog::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 4px; }
