/* File: css/TheLivingItaly2_084130.css */
/* Styles for forms, modals, and interactive elements. */

/* --- Modals --- */
.TheLivingItaly-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1040;
    opacity: 1;
    transition: opacity 0.3s ease;
}
.TheLivingItaly-modal-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}
.TheLivingItaly-modal-content {
    background-color: var(--TheLivingItaly-light-color);
    padding: 2rem;
    border-radius: var(--TheLivingItaly-border-radius);
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    text-align: center;
    transform: scale(1);
    transition: transform 0.3s ease;
}
.TheLivingItaly-modal-overlay.is-hidden .TheLivingItaly-modal-content {
    transform: scale(0.9);
}
.TheLivingItaly-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #aaa;
}

/* --- Forms --- */
.TheLivingItaly-contact-form .form-label {
    font-weight: bold;
    margin-bottom: 0.5rem;
}
.TheLivingItaly-contact-form .form-control {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--TheLivingItaly-dark-color);
    background-color: var(--TheLivingItaly-light-color);
    border: 1px solid #ced4da;
    border-radius: var(--TheLivingItaly-border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.TheLivingItaly-contact-form .form-control:focus {
    border-color: var(--TheLivingItaly-secondary-color);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(255, 193, 7, 0.25);
}
.TheLivingItaly-contact-form .form-control:invalid {
    border-color: #dc3545; /* Red for invalid */
}

/* --- FAQ Accordion --- */
.TheLivingItaly-faq-item {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: var(--TheLivingItaly-border-radius);
    margin-bottom: 10px;
    transition: box-shadow 0.2s;
}
.TheLivingItaly-faq-item[open] {
    box-shadow: 0 4px 10px rgba(0,0,0,0.07);
}
.TheLivingItaly-faq-question {
    padding: 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    list-style: none;
    color: var(--TheLivingItaly-dark-color);
}
.TheLivingItaly-faq-question::-webkit-details-marker { display: none; }
.TheLivingItaly-faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    font-size: 1.8rem;
    color: var(--TheLivingItaly-primary-color);
    transition: transform 0.3s ease;
}
.TheLivingItaly-faq-item[open] > summary::after {
    transform: rotate(45deg);
}
.TheLivingItaly-faq-answer {
    padding: 0 1.25rem 1.25rem;
    color: #555;
    line-height: 1.7;
}