/* Product Inquiry Widget */
.piq-wrapper {
    display: inline-block;
}

.piq-btn {
    display: inline-block;
    background-color: #084F99;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background-color 0.3s ease;
    line-height: 1.4;
}

.piq-btn:hover {
    background-color: #063d77;
}

/* Overlay */
.piq-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

/* Modal */
.piq-modal {
    background: #fff;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: piqFadeIn 0.3s ease;
}

@keyframes piqFadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.piq-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #666;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s;
}

.piq-close:hover {
    color: #000;
}

.piq-modal-body {
    display: flex;
    gap: 30px;
    padding: 40px;
}

/* Left - product info */
.piq-left {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.piq-left img {
    width: 100%;
    max-width: 240px;
    height: auto;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #eee;
}

.piq-product-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin: 16px 0 0;
    text-align: center;
    line-height: 1.4;
    word-break: break-word;
}

/* Right - form */
.piq-right {
    flex: 1;
    min-width: 0;
}

.piq-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.piq-row {
    display: flex;
    gap: 16px;
}

.piq-field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.piq-field.piq-full {
    width: 100%;
}

.piq-field label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.piq-field input,
.piq-field textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}

.piq-field input:focus,
.piq-field textarea:focus {
    outline: none;
    border-color: #084F99;
    background: #fff;
}

.piq-field textarea {
    resize: vertical;
    min-height: 100px;
}

.piq-submit {
    align-self: flex-start;
    padding: 12px 40px;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    letter-spacing: 0.5px;
}

.piq-submit:hover {
    opacity: 0.9;
}

.piq-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.piq-status {
    padding: 10px 14px;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
}

.piq-status.piq-success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.piq-status.piq-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

/* Responsive */
@media (max-width: 768px) {
    .piq-modal-body {
        flex-direction: column;
        padding: 30px 20px;
        gap: 20px;
    }

    .piq-left {
        flex: none;
        width: 100%;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .piq-left img {
        max-width: 100px;
        flex-shrink: 0;
    }

    .piq-product-name {
        margin: 0;
        text-align: left;
        font-size: 15px;
    }

    .piq-row {
        flex-direction: column;
        gap: 12px;
    }

    .piq-modal {
        max-width: 100%;
        border-radius: 6px;
    }
}
