.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff40;
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

/* Stato disabilitato del pulsante */
.cta-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Container per il testo di loading */
.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

#thankyou-message {
    display: none;
    font-size: 1.3rem;
    color: #e6f94f;
    margin-top: 2.5rem;
    font-weight: 600;
    background: none;
    text-align: center;
    width: 100%;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Set background only for the contact page main area */
body {
    background: #205060;
}

/* Stili base per la pagina contattaci */
.contact-main {
    background: #205060;
    margin: 0;
    padding: 0;
    margin-bottom: 6rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 3rem;
    padding: 3rem 2rem 2rem 2rem;
    align-items: flex-start;
}

.contact-left {
    flex: 1.2;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 320px;
    margin-top: 60px;
}

.contact-left h1 {
    font-size: 2.6rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.contact-desc {
    color: #e6f94f;
    font-size: 1.1rem;
    margin-bottom: 2.2rem;
    max-width: 350px;
}

.contact-checkboxes {
    margin-top: 2.2rem;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    font-size: 1.1rem;
}

.contact-checkboxes label {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.contact-right {
    flex: 1.5;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    min-width: 340px;
}

.contact-form {
    background: none;
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    z-index: 1;
    position: relative;
    margin-top: 60px;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    font-size: 1.1rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    border: none;
    background: #f3f3f3;
    color: #222;
    font-family: inherit;
    margin-bottom: 0;
    width: 100%;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    outline: none;
}

/* Stile personalizzato per la freccia del select */
.contact-form select {
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23222" height="20" viewBox="0 0 20 20" width="20" xmlns="http://www.w3.org/2000/svg"><path d="M7.293 8.293a1 1 0 011.414 0L10 9.586l1.293-1.293a1 1 0 111.414 1.414l-2 2a1 1 0 01-1.414 0l-2-2a1 1 0 010-1.414z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2em;
    cursor: pointer;
    padding-right: 2.5em;
}

.contact-form textarea {
    min-height: 80px;
    resize: vertical;
}

.contact-form button.cta-btn {
    margin-top: 0.7rem;
    width: 100%;
    font-size: 1.2rem;
}


.contact-deco {
    position: absolute;
    pointer-events: none;
    z-index: 0;
    opacity: 0.9;
}

.deco-top-left {
    top: -90px;
    left: -120px;
    width: 260px;
}

.deco-bottom-left {
    bottom: -120px;
    left: -90px;
    width: 200px;
}

.deco-bottom-right {
    bottom: -120px;
    right: -100px;
    width: 180px;
}

@media (max-width: 900px) {
    .contact-left h1 {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }

    .contact-container {
        flex-direction: column;
        gap: 2.5rem;
        padding: 2rem 1rem;
    }

    .contact-left,
    .contact-right {
        min-width: 0;
    }

    .contact-form button.cta-btn {
        width: 100%;
    }

    .deco1,
    .deco2 {
        display: none;
    }
}