/* ============================================================
   Price Quote Popup
   ============================================================ */

/* Overlay */
.pq-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    z-index: 10500;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.pq-overlay.pq-active {
    display: flex;
}

/* Modal card */
.pq-modal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.28);
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 2rem;
    position: relative;
    font-family: 'Poppins', sans-serif;
}

/* Close button */
.pq-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #888;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    transition: color 0.15s;
}
.pq-close:hover { color: #8e0079; }

/* Title */
.pq-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    color: #8e0079;
    margin: 0 0 1.4rem;
    padding-right: 2rem;
}

/* Section wrapper */
.pq-section {
    margin-bottom: 1.25rem;
}
.pq-section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Order-type radios */
.pq-radio-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}
.pq-radio-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.88rem;
    color: #333;
    cursor: pointer;
    font-weight: 400;
    margin: 0;
}
.pq-radio-label input[type="radio"] {
    cursor: pointer;
    accent-color: #8e0079;
    margin: 0;
}

/* Style tiles (2×2 grid) */
.pq-style-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
}
.pq-style-tile {
    padding: 0.55rem 0.75rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    font-size: 0.82rem;
    font-weight: 500;
    color: #555;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    font-family: 'Poppins', sans-serif;
    line-height: 1.3;
}
.pq-style-tile:hover {
    border-color: #8e0079;
    background: #faf0f8;
    color: #8e0079;
}
.pq-style-tile.pq-style-active {
    border-color: #8e0079;
    background: #f3e5f0;
    color: #8e0079;
    font-weight: 700;
}

/* Size inputs */
.pq-size-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.pq-size-input {
    flex: 1;
    max-width: 120px;
    padding: 0.5rem 0.65rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    color: #333;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.pq-size-input:focus {
    outline: none;
    border-color: #8e0079;
    box-shadow: 0 0 0 3px rgba(142, 0, 121, 0.1);
}
.pq-size-x {
    font-size: 1.15rem;
    color: #999;
}
.pq-size-note {
    font-size: 0.77rem;
    color: #888;
    margin: 0.35rem 0 0;
}

/* Result panel */
.pq-result {
    background: #f7f0f6;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pq-result-placeholder {
    color: #aaa;
    font-size: 0.88rem;
    margin: 0;
    text-align: center;
}
.pq-price-total {
    font-size: 2.2rem;
    font-weight: 700;
    color: #8e0079;
    line-height: 1.1;
}
.pq-price-breakdown {
    display: flex;
    gap: 1rem;
    margin-top: 0.35rem;
    flex-wrap: wrap;
}
.pq-price-breakdown span {
    font-size: 0.82rem;
    color: #777;
}
.pq-oversize {
    font-size: 0.9rem;
    font-weight: 600;
    color: #c53030;
    margin: 0;
}
.pq-result-note {
    font-size: 0.88rem;
    color: #c53030;
    margin: 0;
}

/* CTA button */
.pq-cta-btn {
    display: block;
    width: 100%;
    text-align: center;
    background-color: #4a6741;
    color: #fff !important;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background-color 0.2s;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.75rem;
}
.pq-cta-btn:hover {
    background-color: #3e5637;
    color: #fff !important;
    text-decoration: none !important;
}

/* Disclaimer */
.pq-disclaimer {
    font-size: 0.75rem;
    color: #aaa;
    text-align: center;
    margin: 0;
}

/* ============================================================
   Floating trigger button (hidden on upload/configurator page)
   ============================================================ */
#price-quote-trigger {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9000;
    background: #8e0079;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 0.75rem 1.35rem;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(142, 0, 121, 0.35);
    transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
    line-height: 1.3;
}
#price-quote-trigger:hover {
    background: #750064;
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(142, 0, 121, 0.45);
}


/* ============================================================
   "View Quote" button inside the configurator price section
   ============================================================ */
.pq-view-quote-btn {
    display: inline-block;
    margin-top: 0.65rem;
    background: none;
    border: 1px solid #8e0079;
    border-radius: 4px;
    color: #8e0079;
    font-size: 0.78rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    padding: 0.3rem 0.8rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.pq-view-quote-btn:hover {
    background: #8e0079;
    color: #fff;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 540px) {
    .pq-modal {
        padding: 1.5rem 1rem;
    }
    .pq-price-total {
        font-size: 1.8rem;
    }
    #price-quote-trigger {
        bottom: 1rem;
        right: 1rem;
        font-size: 0.82rem;
        padding: 0.65rem 1rem;
    }
}
