﻿/* OVERLAY FORM */
.form-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

    .form-overlay.show {
        opacity: 1;
        pointer-events: all;
    }

    .form-overlay .content-wrap {
        background: #fff;
        padding: 35px 30px 30px;
        border-radius: 5px;
        max-width: 600px;
        width: 90%;
        position: relative;
        max-height: 90vh;
        overflow-y: auto;
        transform: translateY(-20px);
        transition: transform 0.35s ease;
    }

    .form-overlay.show .content-wrap {
        transform: translateY(0);
    }

/* Header overlay */
.form-overlay-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
    border-bottom: 1px solid #d9b35982;
    padding-bottom: 15px;
}

    .form-overlay-header h3 {
        font-size: 22px;
        font-weight: 700;
        color: #3C566F;
        margin: 0;
    }



.btn-submit-icon {
    background-color: #0b1f3a;
    color: #ffffff;
    width: 45px;
    height: 45px;
    font-size: 18px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    padding: 0;
}

    .btn-submit-icon:hover {
        background-color: #c8a24a;
        transform: translateY(-2px);
    }
/* Pulsante X */
.btn-close-overlay {
    background: none;
    border: none;
    font-size: 22px;
    color: #3C566F;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1;
    padding: 0;
}

    .btn-close-overlay:hover {
        background: #3C566F;
        color: #fff;
    }

/* Form fields */
.form-overlay .form-group {
    margin-bottom: 18px;
}

.form-overlay .form-label {
    display: block;
    font-weight: 600;
    color: #3C566F;
    margin-bottom: 6px;
    font-size: 14px;
}

.form-overlay .form-group asp\.TextBox,
.form-overlay input[type="text"],
.form-overlay textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

    .form-overlay input[type="text"]:focus,
    .form-overlay textarea:focus {
        border-color: #b6d40f;
        outline: none;
    }

.privacy {
    color: #0b1f3a;
    transition: color 0.5s linear;
    text-decoration: none;
}
    .privacy:hover {
        color: #c8a24a;
       
    }

@media (max-width: 576px) {
    .form-overlay .content-wrap {
        padding: 25px 18px 20px;
    }

    .form-overlay-header h3 {
        font-size: 18px;
    }
    .single-query {
       width : 40%;
    }
}
