.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;
    }
}