.visitor-submit {
    width: 100%;
    display: flex;
    justify-content: center;
    background-color: #f9fafb;
    font-family: 'Inter', sans-serif;
    padding: 20px 0;
}

.visitor-submit-container{
    width: 100%;
    max-width: 720px;
    background: #ffffff;
    padding: 32px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}
  
.visitor-privacy-title,
.visitor-check-title {
    font-size: 18px;
    font-weight: bold;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* скролл по всей странице */
    background-color: rgba(0, 0, 0, 0.6);
}

.modal-content {
    background-color: #fff;
    margin: 5% auto;
    border-radius: 10px;
    width: 80%;
    max-width: 600px;
    max-height: 80vh;         /* ограничение по высоте */
    overflow-y: auto;         /* вертикальный скролл */
    box-shadow: 0 0 10px #333;
    font-family: Arial, sans-serif;
    position: relative;
}

.close-btn {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.modal-policy{
    font-size: 20px;
    padding: 20px;
}

  
.privacy-text {
    font-size: 15px;
    margin-bottom: 6px;
    color: #444;
}

.visitor-check {
    margin-top: 15px;
    margin-bottom: 15px;
}

.visitor-check label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 16px;
    gap: 10px;
    color: #222;
    user-select: none;
}

.visitor-check input[type="checkbox"] {
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 2px solid #555;
    background: #e0e0e0;
    box-shadow: inset 2px 2px 4px #bababa, inset -2px -2px 4px #ffffff;
    transition: 0.2s;
    position: relative;
}

.visitor-check input[type="checkbox"]:checked {
    background-color: #3b82f6;
    border-color: #3b82f6;
    box-shadow: 0 0 5px #fff, 0 0 10px #3b82f6;
}

.visitor-check input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 12px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.visitor-btn {
    padding-top: 15px;
    text-align: center;
}

.submit-btn {
    background-color: #3b82f6;
    color: #fff;
    padding: 14px 36px;
    border: none;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 0 12px #3b82f6, 0 0 20px #3b82f6;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-btn:hover {
    background-color: #3b82f6;
    box-shadow: 0 0 16px #3b82f6, 0 0 24px #3b82f6;
    text-shadow: 0 0 10px #3b82f6;
}



@media (max-width: 1024px) {
    .visitor-submit-container {
        padding: 28px;
        max-width: 90%;
    }

    .visitor-privacy-title,
    .visitor-check-title {
        font-size: 17px;
    }

    .privacy-text {
        font-size: 14px;
    }

    .submit-btn {
        padding: 12px 32px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .visitor-submit-container {
        padding: 24px;
        gap: 20px;
    }

    .visitor-privacy-title,
    .visitor-check-title {
        font-size: 16px;
        text-align: center;
    }

    .privacy-text {
        font-size: 13px;
    }

    .visitor-check label {
        font-size: 15px;
        flex-wrap: wrap;
    }

    .submit-btn {
        padding: 12px 28px;
        font-size: 14px;
    }

    .modal-content {
        width: 90%;
        padding: 16px;
    }

    .modal-policy {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .visitor-submit-container {
        padding: 20px;
    }

    .visitor-privacy-title,
    .visitor-check-title {
        font-size: 15px;
        text-align: center;
    }

    .visitor-check label {
        font-size: 14px;
        flex-direction: row;
        align-items: flex-start;
    }

    .visitor-check input[type="checkbox"] {
        width: 20px;
        height: 20px;
    }

    .submit-btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }

    .modal-content {
        width: 95%;
        padding: 14px;
        font-size: 14px;
    }

    .modal-policy {
        font-size: 17px;
    }

    .close-btn {
        font-size: 20px;
        right: 15px;
        top: 10px;
    }
}
