/**
* 2007-2024 PrestaShop
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@prestashop.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade PrestaShop to newer
* versions in the future. If you wish to customize PrestaShop for your
* needs please refer to http://www.prestashop.com for more information.
*
*  @author    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2024 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*/

/* Hide add to cart section when ask about product form is visible */
body.product-actions-hidden .product-actions.js-product-actions {
    display: none !important;
}

#askaboutproduct-form-wrapper {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.askaboutproduct-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.askaboutproduct-subtitle {
    font-size: 14px;
    color: #666;
    margin-bottom: 25px;
}

.askaboutproduct-form-container .form-group {
    margin-bottom: 20px;
}

/* Adjust margin for fields in grid */
.askaboutproduct-form-container .row .col-md-6 .form-group {
    margin-bottom: 0;
}

.askaboutproduct-form-container .row.g-3 {
    margin-bottom: 20px;
}

.askaboutproduct-form-container .form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.askaboutproduct-form-container .required {
    color: #ff0000;
    margin-left: 3px;
}

.askaboutproduct-form-container .form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.askaboutproduct-form-container .form-control:focus {
    outline: none;
    border-color: #2fb5d2;
    box-shadow: 0 0 0 3px rgba(47, 181, 210, 0.1);
}

.askaboutproduct-form-container .form-control.error {
    border-color: #dc3545;
}

.askaboutproduct-form-container textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

#askaboutproduct-submit {
    padding: 12px 40px;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

#askaboutproduct-submit:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

#askaboutproduct-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

#askaboutproduct-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
}

#askaboutproduct-message.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

#askaboutproduct-message.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

/* Loading spinner */
#askaboutproduct-submit.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Responsive */
@media (max-width: 768px) {
    #askaboutproduct-form-wrapper {
        padding: 20px 15px;
    }
    
    .askaboutproduct-title {
        font-size: 20px;
    }
    
    #askaboutproduct-submit {
        width: 100%;
    }
    
    /* On mobile, add bottom margin to each field in grid */
    .askaboutproduct-form-container .row .col-md-6 .form-group {
        margin-bottom: 15px;
    }
    
    .askaboutproduct-form-container .row.g-3 {
        margin-bottom: 5px;
    }
}
