/* ============================================================
   MODAL OVERLAY
============================================================ */
.atq-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    padding: 10px;
    overflow: hidden;
    z-index: 999999;
}

/* Force overlay visible when open */
.atq-modal-overlay.atq-open {
    display: flex;
    opacity: 1;
    visibility: visible;
}

/* ============================================================
   MODAL BOX
============================================================ */
.atq-modal-box {
    background: #000;
    border: 1px solid rgba(255,204,0,0.5);
    box-shadow: 0 0 25px rgba(255,204,0,0.35);
    border-radius: 16px;

    padding: 28px 20px;
    width: 95%;
    max-width: 780px;

    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* ============================================================
   CLOSE BUTTON
============================================================ */
.atq-close {
    position: absolute;
    top: 18px;                  /* moved high but still inside modal box */
    right: 18px;
    width: 46px;
    height: 46px;

    display: flex;
    justify-content: center;
    align-items: center;

    border-radius: 50%;
    background: rgba(255,204,0,0.15);
    border: 2px solid #FFD84A;

    color: #FFD84A;
    font-size: 24px;
    font-weight: 900;

    cursor: pointer;
    transition: 0.2s ease;

    box-shadow:
        0 0 12px rgba(255,216,74,0.5),
        inset 0 0 12px rgba(255,216,74,0.4);
    z-index: 10; /* stays above content */
}

.atq-close:hover {
    background: rgba(255,204,0,0.35);
    transform: scale(1.1);
    box-shadow:
        0 0 18px rgba(255,216,74,0.7),
        inset 0 0 14px rgba(255,216,74,0.5);
}

/* ============================================================
   TITLE
============================================================ */
.atq-title {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    color: #FCC200 !important;
    margin: 5px 0 18px;
}

/* ============================================================
   FORM GRID
============================================================ */
.atq-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 16px;
}

.atq-field {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.atq-field label {
    color: #FCC200;
    font-size: 13px;
    font-weight: 600;
}

/* ============================================================
   INPUTS
============================================================ */
.atq-field input,
.atq-field select {
    width: 100%;
    padding: 10px 12px;

    background: #111;
    color: #fff;

    border-radius: 10px;
    border: 1px solid rgba(255,204,0,0.45);

    font-size: 14px;
    outline: none;
}

.atq-field input:focus,
.atq-field select:focus {
    border-color: rgba(255,204,0,0.7);
}

/* ============================================================
   VALIDATION
============================================================ */
.atq-valid-icon,
.atq-invalid-icon {
    position: absolute;
    right: 14px;
    top: 33px;
    font-size: 14px;
    display: none;
    pointer-events: none;
}

.atq-valid-icon {
    color: #32cd32;
}

.atq-invalid-icon {
    color: #ff4444;
}

.atq-field.invalid input,
.atq-field.invalid select {
    border-color: #ff4444;
}

.atq-field.valid input,
.atq-field.valid select {
    border-color: #32cd32;
}

/* ============================================================
   QUOTE DISPLAY
============================================================ */
.atq-quote-wrapper {
    grid-column: span 2;
    text-align: center;
    margin: 22px 0 10px;
}

.atq-quote-label {
    font-size: 16px;
    font-weight: 800;
    color: #FCC200;
    margin-bottom: 8px;
}

/* PREMIUM UPGRADED QUOTE BOX */
.atq-quote-price {
    background: #0c0c0c;
    border: 2px solid #FFD84A;
    border-radius: 14px;
    padding: 18px 28px;
    min-width: 140px;

    font-size: 34px !important;
    font-weight: 900 !important;
    color: #FFD84A !important;

    display: inline-flex;
    justify-content: center;
    align-items: center;

    text-shadow: 0 0 12px rgba(255,216,74,0.45);
    box-shadow:
        0 0 20px rgba(255,216,74,0.35),
        0 0 40px rgba(255,216,74,0.25);

    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.15s ease-out, transform 0.15s ease-out;
}

/* Appear instantly when JS adds .show */
.atq-quote-price.show {
    opacity: 1;
    transform: scale(1);
}

/* Pulse when quote updates */
@keyframes atqPulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.07); }
    100% { transform: scale(1); }
}

.atq-quote-price.pulse {
    animation: atqPulse 0.25s ease-out;
}

/* ============================================================
   BUTTONS
============================================================ */
.atq-btn {
    grid-column: span 2;
    padding: 12px;
    font-size: 16px;
    font-weight: 800;

    background: linear-gradient(90deg, #FFD84A, #FCC200);
    border: none;
    color: #000;

    border-radius: 10px;
    cursor: pointer;
    margin-top: 14px;

    transition: 0.2s ease;
}

.atq-btn:hover {
    background: #e7b800;
    transform: translateY(-2px);
}

/* ============================================================
   CONFIRMATION POPUP
============================================================ */
#atq-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;

    background: rgba(0,0,0,0.75);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 999999999;
}

.atq-popup-box {
    background: #111;
    border: 1px solid #FCC200;
    border-radius: 14px;
    padding: 30px;
    width: 90%;
    max-width: 420px;

    text-align: center;
    box-shadow: 0 0 20px rgba(255,204,0,0.3);

    animation: popupFade 0.25s ease-out;
}

@keyframes popupFade {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.popup-line {
    color: #fff;
    margin: 8px 0;
    font-size: 15px;
    text-align: left;
}

.popup-total {
    margin-top: 15px;
    font-size: 20px;
    font-weight: bold;
    color: #FCC200;
}

#popup-ok-btn {
    background: #FCC200;
    color: #000;
    border: none;
    padding: 12px 22px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 20px;
}

#popup-ok-btn:hover {
    background: #e0ad00;
}

/* ============================================================
   AUTOCOMPLETE
============================================================ */
.atq-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 70%;

    background: #111;
    border: 1px solid rgba(255,204,0,0.35);
    border-top: none;

    border-radius: 0 0 8px 8px;
    max-height: 130px;
    overflow-y: auto;

    display: none;
    z-index: 999999;

    box-shadow: 0 4px 18px rgba(0,0,0,0.45);
}

.atq-suggestions.show {
    display: block;
}

.atq-suggestion-item {
    padding: 10px;
    font-size: 12px;
    color: #fff;
    cursor: pointer;
    border-bottom: 1px solid rgba(255,204,0,0.15);
}

.atq-suggestion-item:hover {
    background: rgba(255,204,0,0.15);
    color: #FCC200;
}

.atq-suggestions::-webkit-scrollbar {
    width: 6px;
}

.atq-suggestions::-webkit-scrollbar-thumb {
    background: rgba(255,204,0,0.4);
    border-radius: 10px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 650px) {
    .atq-form-grid {
        grid-template-columns: 1fr;
    }
    .atq-btn {
        grid-column: span 1;
    }
    .atq-title {
        font-size: 20px;
    }
}
