/* ============================================================
   FAQ ACCORDION — B2B Modern Design
   Matches navy/white editorial theme from description.css
   ============================================================ */

/* Section heading — base styles (description.css overrides color/margin inside .cat-desc-content) */
.faq-h2 {
    font-size: 20px;
    font-weight: 700;
    color: #0f172a;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.01em;
    margin: 0 0 24px;
    padding: 0 0 14px;
    border-top: none;
    border-bottom: 2px solid #e2e8f0;
    position: relative;
}

/* Navy accent underline on heading */
.faq-h2::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 48px;
    height: 2px;
    background: #2563a0;
}

/* ---- List structure resets ---- */
.faq-ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-ul > .faq-li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.faq-ul > .faq-li > ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ---- Each FAQ row ---- */
.faq-slide {
    border-bottom: 1px solid #e2e8f0;
    transition: background 0.15s ease;
}

.faq-slide:first-child {
    border-top: 1px solid #e2e8f0;
}

.faq-slide:last-child {
    border-bottom: none;
}

/* ---- Question row (h3) — layout/interaction only; color/spacing overridden by description.css ---- */
.faq-slide-title {
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: -0.01em;
}

/* Active / expanded state */
.faq-title-active {
    color: #2563a0;
}

/* ---- Arrow icon ---- */
.faq-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Override FontAwesome pseudo — navy circle-arrow via mask */
.fa-arrow-alt-circle-down::before {
    content: "";
    display: block;
    width: 20px;
    height: 20px;
    background-color: #2563a0;
    -webkit-mask: url('../../frontend/Pneumatig/PG/pl_PL/Pneumatig_Catalog/images/icons/arrow-alt-circle-down-solid.svg') no-repeat center / contain;
    mask: url('../../frontend/Pneumatig/PG/pl_PL/Pneumatig_Catalog/images/icons/arrow-alt-circle-down-solid.svg') no-repeat center / contain;
    transition: background-color 0.2s ease;
}

/* Rotate the icon when the slide is expanded */
.faq-title-active .faq-icon {
    transform: rotate(180deg);
}

.faq-title-active .fa-arrow-alt-circle-down::before {
    background-color: #1a3353;
}

/* ---- Answer panel ---- */
/* display: none removed — it made overflow:hidden irrelevant (inline elements ignore it) */
/* max-height: 0 + overflow: hidden is the correct collapse technique */
.faq-slide-data {
    max-height: 0;
    overflow: hidden;
    display: block; /* explicit block so overflow:hidden actually works */
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-slide-data > span {
    display: block;
    padding: 4px 4px 18px;
    font-size: 14px;
    color: #475569; /* Slate 600 — slightly lighter than body text */
    line-height: 1.75;
    font-family: 'Inter', system-ui, sans-serif;
}

/* JS adds .show to .faq-slide-data when expanded */
.faq-slide-data.show {
    max-height: 800px; /* large enough for any answer */
}

/* ---- Responsive ---- */
@media screen and (max-width: 767px) {
    .faq-h2 {
        font-size: 17px;
    }

    .faq-slide-title {
        font-size: 14px;
        padding: 14px 4px;
    }

    .faq-slide-data > span {
        font-size: 13px;
        padding-bottom: 14px;
    }

    .faq-li > ul {
        padding: 0;
    }

    .faq-slide-data {
        overflow: auto; /* allow scroll on very long answers */
    }
}
.pg-ask-product-price-form {
    display: none;

    background: linear-gradient(90deg, #3a3a3d 0%, #474a59 30%, #474a59 100%);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    color: #fff;
    font-family: 'Poppins', sans-serif;
}

.pg-ask-product-price-form fieldset {
    border: none;
}

.pg-ask-product-price-form .legend {
    color: #ebebeb;
    font-size: 18px;
}

.pg-ask-product-price-form .label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.pg-ask-product-price-form .input-text,
.pg-ask-product-price-form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #51565e;
    border-radius: 5px;
    padding: 10px;
    color: #fff;
    margin-bottom: 15px;
}

.pg-ask-product-price-form .input-text:focus,
.pg-ask-product-price-form textarea:focus {
    outline: none;
    border-color: #015eae;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 5px rgba(1, 94, 174, 0.5);
}

.pg-ask-product-price-form .actions-toolbar {
    text-align: center;
    margin-top: 20px;
}

.pg-ask-product-price-form .amhideprice-close {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
}

/* Styling checkbox for GDPR compliance */
.pg-ask-product-price-form .field label {
    color: #B0BEC5;
}

.pg-ask-product-price-form .field input[type=checkbox] {
    margin-right: 10px;
}

/* Validation message styles */
.pg-ask-product-price-form .mage-error {
    color: #ff6b6b;
}

/* Adding animation to the form elements */
.pg-ask-product-price-form .control {
    position: relative;
    overflow: hidden;
}

.pg-ask-product-price-form .control::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #015eae;
    transition: all 0.3s;
}

.pg-ask-product-price-form .control:hover::after,
.pg-ask-product-price-form .control:focus-within::after {
    left: 0;
    width: 100%;
}

.pg-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9998;
}

.pg-ask-product-price-form {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    min-width: 400px;
    max-width: 600px;
    max-width: 30%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    border-radius: 8px;
    transition: 0.6s ease;
}

.pg-ask-product-price-form.pg-active,
.pg-overlay.pg-active {
    display: block;
    opacity: 1;
}

.pg-ask-product-price-form,
.pg-overlay {
    opacity: 0;
    transition: opacity 0.6s ease;
}

.amhideprice-close:before {
    width: 26px;
    height: 26px;
    vertical-align: text-bottom;
    background-color: white;
}

.amhideprice-close:hover {
    transform: rotate(256deg);
    transition: 0.5s ease;
}

.show {
    display: block !important;
    max-height: none;
}

.zero-price-active {
    background: #ffffff;
    margin: -10px;
    padding: 9px;
    position: relative;
    z-index: 9;
}

.zero-price-active .product-item-inner {
    overflow: visible !important;
    position: relative !important;
    width: auto !important;
    border: none !important;
    box-shadow: none;
}

@media (max-width: 768px) {
    .pg-ask-product-price-form {
        padding: 15px;
    }

    .pg-ask-product-price-form .actions-toolbar {
        margin-top: 15px;
    }
}