/* ============================================================
   NEXTGEN 3D TECH — QUOTE POPUP STYLES
   Brand: Orange #e2791d | Dark #443935
   ============================================================ */

/* ---- Overlay ---- */
.ng-quote-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.70);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}
.ng-quote-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ---- Popup panel ---- */
.ng-quote-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.88);
    width: 700px;
    max-width: 94vw;
    max-height: 92vh;
    background: #fff;
    border-radius: 20px;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow-y: auto;
    box-shadow: 0 32px 90px rgba(68, 57, 53, 0.22), 0 0 0 1px rgba(226,121,29,0.12);
}
.ng-quote-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Top accent bar */
.ng-quote-popup::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(90deg, #e2791d, #f0a854, #e2791d);
    border-radius: 20px 20px 0 0;
}

/* ---- Close button ---- */
.ng-quote-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #f5f0ec;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    color: #443935;
    transition: all 0.3s ease;
    z-index: 10;
}
.ng-quote-close:hover {
    background: #e2791d;
    color: #fff;
    transform: rotate(90deg);
}

/* ---- Inner padding ---- */
.ng-quote-inner {
    padding: 36px 44px 36px;
}

/* ---- Header ---- */
.ng-quote-header {
    text-align: center;
    margin-bottom: 28px;
}
.ng-quote-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e2791d, #f0a854);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 26px;
    color: #fff;
    box-shadow: 0 8px 24px rgba(226,121,29,0.30);
}
.ng-quote-header h3 {
    font-size: 26px;
    font-weight: 700;
    color: #443935;
    margin-bottom: 8px;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.5px;
}
.ng-quote-header p {
    font-size: 14px;
    color: #888;
    margin: 0;
    line-height: 1.55;
}
.ng-quote-header p strong {
    color: #e2791d;
}

/* ---- Form rows ---- */
.ng-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}
.ng-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}
.ng-form-group.full-width {
    flex: 1 1 100%;
}
.ng-form-group label {
    font-size: 12.5px;
    font-weight: 600;
    color: #443935;
    margin-bottom: 6px;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

/* ---- Inputs ---- */
.ng-form-group input,
.ng-form-group select,
.ng-form-group textarea {
    width: 100%;
    padding: 11px 15px;
    border: 1.5px solid #e5ddd8;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    background: #faf7f5;
    transition: all 0.3s ease;
    font-family: inherit;
    outline: none;
}
.ng-form-group input:focus,
.ng-form-group select:focus,
.ng-form-group textarea:focus {
    border-color: #e2791d;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(226,121,29,0.12);
}
.ng-form-group input::placeholder,
.ng-form-group textarea::placeholder {
    color: #c0b8b4;
}
.ng-form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23e2791d' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    cursor: pointer;
}
.ng-form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* ---- Submit button ---- */
.ng-quote-submit {
    width: 100%;
    padding: 15px 32px;
    background: linear-gradient(135deg, #e2791d, #c8681a);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    letter-spacing: 0.6px;
    margin-top: 8px;
    font-family: 'Rajdhani', sans-serif;
}
.ng-quote-submit:hover {
    background: linear-gradient(135deg, #c8681a, #aa580f);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(226,121,29,0.35);
}
.ng-quote-submit i { font-size: 15px; transition: transform 0.3s ease; }
.ng-quote-submit:hover i { transform: translateX(4px) translateY(-2px); }

/* ---- Divider ---- */
.ng-quote-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}
.ng-quote-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: #ede7e0;
    z-index: 1;
}
.ng-quote-divider span {
    background: #fff;
    padding: 0 14px;
    color: #aaa;
    font-size: 12px;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

/* ---- WhatsApp button ---- */
.ng-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #25D366;
    color: #fff !important;
    padding: 13px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(37,211,102,0.22);
}
.ng-whatsapp-btn:hover {
    background: #128C7E;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37,211,102,0.32);
}
.ng-whatsapp-btn i { font-size: 22px; }

/* ---- Success state ---- */
.ng-quote-form.ng-success { display: none; }

.ng-success-msg {
    text-align: center;
    padding: 40px 20px;
}
.ng-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 36px;
    color: #fff;
    animation: ngSuccessPop 0.5s ease;
}
@keyframes ngSuccessPop {
    0%   { transform: scale(0); }
    50%  { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.ng-success-msg h4 {
    font-size: 22px;
    font-weight: 700;
    color: #443935;
    margin-bottom: 10px;
    font-family: 'Rajdhani', sans-serif;
}
.ng-success-msg p { color: #666; font-size: 15px; line-height: 1.6; }
.ng-success-msg p strong { color: #e2791d; }

/* ---- Scrollbar ---- */
.ng-quote-popup::-webkit-scrollbar { width: 5px; }
.ng-quote-popup::-webkit-scrollbar-track { background: transparent; }
.ng-quote-popup::-webkit-scrollbar-thumb { background: #e5ddd8; border-radius: 10px; }

/* ---- Floating FAB button ---- */
.ng-quote-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9997;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: linear-gradient(135deg, #e2791d, #c8681a);
    color: #fff;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(226,121,29,0.40);
    transition: all 0.3s ease;
    font-family: 'Rajdhani', sans-serif;
    letter-spacing: 0.6px;
    animation: ngFabPulse 2.5s ease-in-out infinite;
}
.ng-quote-fab:hover {
    background: linear-gradient(135deg, #c8681a, #aa580f);
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(226,121,29,0.50);
    animation: none;
}
.ng-quote-fab i { font-size: 18px; }

@keyframes ngFabPulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(226,121,29,0.40); }
    50%       { box-shadow: 0 8px 40px rgba(226,121,29,0.65); }
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
    .ng-quote-inner { padding: 28px 20px 26px; }
    .ng-form-row { flex-direction: column; gap: 14px; }
    .ng-quote-header h3 { font-size: 22px; }
    .ng-quote-fab span { display: none; }
    .ng-quote-fab { padding: 14px 16px; border-radius: 50%; bottom: 20px; right: 20px; }
}
