/**
 * 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
 */

/* Wrapper per il pulsante Richiedi Disponibilità (nascosto di default) */
.richiedi-disponibilita-wrapper {
    display: none;
    margin: 20px 0;
}

/* Pulsante Richiedi Disponibilità */
.richiedi-disponibilita-btn {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    transition: background-color 0.3s;
    width: 100%;
    max-width: 300px;
}

.richiedi-disponibilita-btn:hover {
    background-color: #b71c1c;
}

/* Overlay scuro per il modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 9998;
}

.modal-overlay.active {
    display: block;
}

/* Modal */
.modal-disponibilita {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    z-index: 9999;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-disponibilita.active {
    display: block;
}

/* Header del modal */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: bold;
    color: #000;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

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

/* Contenuto del modal */
.modal-content {
    display: flex;
    padding: 25px;
    gap: 25px;
}

.modal-image {
    flex: 0 0 200px;
}

.modal-image img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.modal-form {
    flex: 1;
}

.modal-form h3 {
    font-size: 16px;
    font-weight: bold;
    margin: 0 0 10px 0;
    color: #000;
}

.modal-form p {
    font-size: 14px;
    color: #666;
    margin: 0 0 20px 0;
}

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

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

.form-group label .required {
    color: red;
}

.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group input[type="email"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d32f2f;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    margin-top: 3px;
}

.checkbox-group label {
    font-size: 14px;
    color: #333;
    cursor: pointer;
}

.checkbox-group label a {
    color: red;
    text-decoration: none;
}

.checkbox-group label a:hover {
    text-decoration: underline;
}

/* Footer del modal con pulsante */
.modal-footer {
    background-color: #f5f5f5;
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

.btn-submit {
    background-color: #d32f2f;
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    text-transform: uppercase;
    width: 100%;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #b71c1c;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Messaggi di errore/successo */
.modal-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    display: none;
}

.modal-message.error {
    background-color: #ffebee;
    color: #c62828;
    border: 1px solid #ef5350;
}

.modal-message.success {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #66bb6a;
}

/* Responsive */
@media (max-width: 768px) {
    .modal-content {
        flex-direction: column;
    }

    .modal-image {
        flex: 0 0 auto;
        max-width: 200px;
        margin: 0 auto;
    }

    .modal-disponibilita {
        width: 95%;
        max-height: 95vh;
    }
}

