* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: white;
}

.form-container {
    max-width: 600px;
    margin: 50px auto;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

h2 {
    text-align: center;
    margin-bottom: 0px;
    color: #333;
}

label {
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
    color: #555;
}

input, select, textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 16px;
}

input:focus, select:focus, textarea:focus {
    border-color: #00aaff;
    outline: none;
}

textarea {
    resize: vertical;
    height: 100px;
}

button {
    width: 100%;
    background-color: #00aaff;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}
/* Додаємо стилі для випадаючого списку */
.dropdown {
    position: relative;
    
}

.dropbtn {
    background-color: #f9f9f9;
    color: black;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    cursor: pointer;
    border-radius: 4px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    border: 1px solid #ccc;
    z-index: 1;
    max-height: 200px;
    overflow-y: auto;
    border-radius: 4px;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.show {
    display: block;
}

/* Стилі для фільтруючого поля */
#searchInput {
    box-sizing: border-box;
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 5px;
}

button:hover {
    background-color: #0088cc;
}

.terms {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.terms label {
    margin-left: 10px;
    color: #555;
}

.terms input {
    width: auto;
    margin-right: 10px;
}
/* Dropdown styles */
.dropdown-content {
    display: none;
    position: absolute;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-content a {
    display: block;
    padding: 10px;
    text-decoration: none;
    color: #333;
}

.dropdown-content a:hover {
    background-color: #f0f0f0;
}

#searchCountry {
    width: calc(100% - 20px);
    margin: 10px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh; /* Обмежує максимальну висоту модального вікна */
    overflow-y: auto; /* Додає вертикальний скролл, якщо вміст перевищує висоту */
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.modal-body p {
    margin-bottom: 15px;
}

.modal-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.modal-body ul li {
    margin-bottom: 10px;
}

.modal-buttons {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
}

.modal-buttons button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

#agreeBtn {
    background-color: #00aaff;
    color: white;
}

#disagreeBtn {
    background-color: #ff3333;
    color: white;
}

#agreeBtn:hover {
    background-color: #0088cc;
}

#disagreeBtn:hover {
    background-color: #cc0000;
}

/* Responsive Design */
@media (max-width: 768px) {
    .form-container {
        padding: 15px;
    }

    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    button {
        padding: 12px;
        font-size: 14px;
    }

    .modal-buttons button {
        padding: 8px 16px;
        font-size: 14px;
    }
}
