/* Stile generale */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    text-align: center;
}

.page-title {
    font-size: 26px;
    font-weight: bold;
    color: #007bff;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.container {
    background: #fff;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.backdrop-filter {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px); 
    -webkit-backdrop-filter: blur(5px); 
    z-index: 10; 
    display: none; 
    pointer-events: auto;
}

.conferma {
    background: #fff;
    width: 100%;
    max-width: 900px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.message {
    background: linear-gradient(to right, #006400, #00b140, #00ff7f);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 15px rgba(0,123,255,0.3);
    transition: transform 0.3s ease-in-out;
}

.message:hover {
    transform: scale(1.02);
}

.conferma h2 {
    font-size: 26px;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    -webkit-text-stroke: 0.3px #007bff;
}

.location-error {
    display: flex;
    align-items: center;
    background: linear-gradient(90deg, #ff5f6d, #ffc371); 
    color: #fff;
    font-weight: 600;
    padding: 15px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    /*font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;*/
    animation: shake 0.5s ease-in-out;
    max-width: 500px;
    margin: 20px auto;
}

.location-error i {
    margin-right: 12px;
    font-size: 20px;
}

@keyframes shake {
    0% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-5px);
    }

    40% {
        transform: translateX(5px);
    }

    60% {
        transform: translateX(-5px);
    }

    80% {
        transform: translateX(5px);
    }

    100% {
        transform: translateX(0);
    }
}


button, input {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
}

button:hover {
    background-color: #0056b3;
}

input[type="file"] {
    width: 100%;
    max-width: 300px;
    margin: 10px 0;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.otp-box {
    background: linear-gradient(135deg,#007bff,#00d4ff);
    color: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0px 4px 15px rgba(0,123,255,0.3);
    transition: transform 0.3s ease-in-out;
}

.otp-box:hover {
    transform: scale(1.02);
}

.otp-box h3 {
    font-size: 20px;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing:1px;
}

.otp-box input,
.otp-box button {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    margin: 5px auto;
    height: auto;
    min-height: 45px;
    line-height: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease-in-out;
    box-sizing: border-box;
    outline: none;
}

.otp-box input {
   background:white;
   color: #333;
   border: 2px solid transparent;
   box-shadow: 0 0 10px rgba(255,255,255,0.2);
}

.otp-box input:focus {
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

.otp-box button {
    background: white;
    color: #007bff;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(255,255,255,0.2);
}

.otp-box button:hover {
    background: #0056b3;
    color: white;
    box-shadow: 0 4px 15px rgba(255,255,255,0.4);
}

#checkbox-level {
    /*width: 65%;
    margin: auto;*/
    width: 100%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 15px;
    margin-bottom: 15px;

    max-width:300px;
}

.checkbox-container {
    /* margin: 10px; */
    /* width: 100%; */
    /* max-width: 400px; */
    /* display: flex; */
    /* justify-content: center; */
    display: grid;
    grid-template-columns: 30px 1fr;
    overflow: hidden;
    text-align: justify;
    align-items: center;
    /* width: 400px;*/
    width: 100%;
}

.checkbox-container input {
   width: 20px;
   height: 20px;
   margin-right: 10px;
   cursor: pointer;
   font-size: 14px;
   color: #333;
   cursor: pointer;
   float: left;
}

.checkbox-container label {
   display: block;
}

#pdf-container {
    width: 100%;
    height: 500px;
    border: 1px solid #ccc;
    overflow-y: auto;
    background: #fff;
    padding: 1px;
    border-radius: 5px;
}

.pdf-page {
    display: block;
    margin: 10px auto;
    max-width: 100%;
}

.signature-container {
    width: 100%;
    max-width: 500px;
    margin: auto;
}

#signature-pad {
    width: 100%;
    height: 200px; 
    border: 2px solid #007bff;
    background-color: white;
    border-radius: 5px;
    touch-action: none;
}

.modal {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-content {
    background: white;
    padding: 20px;
    border-radius: 10px;
    text-align: left;
    width: 90%;
    /* max-width: 600px;*/
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    opacity: 1;
}

.button-container {
    display:flex;
    justify-content:center;
    margin-top:20px;
}

#termsText {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
    background: #f9f9f9;
}

#privacyText {
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    border: 1px solid #ccc;
    background: #f9f9f9;
}

#closeButton:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#closeButtonPrivacy:disabled {
    background: #ccc;
    cursor: not-allowed;
}

#name-empty, #terms-empty {
    background-color: #dc3545;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
}

.modal-open {
    overflow: hidden;
}

.checkbox-container
input[type="checkbox"]:disabled 
{
    pointer-events: none;
}