
.form-group {
    margin-bottom: 20px;
    margin-top: 30px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select, button, textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="tel"]:focus
select:focus,
textarea:focus,
input[type="email"]:focus{
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}
#add-btn-docs, #add-btn-additional{
    background: none;
    border: none;
    font-size: 24px;
    width: fit-content;
    background: #eee;
    width: 50px;
    height: 50px;
    border-radius: 10em;
    cursor: pointer;
    margin-top: 10px;
}


.file-input-row{
    margin-bottom: 10px;
}
.file-upload-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.btn-add-file {
    background-color: #6c75d1;
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-add-file:hover {
    background-color: #5a62d8;
}

#file-list {
    margin-top: 20px;
}

.file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: #e9ecef;
    border-radius: 6px;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.file-item span {
    color: #28a740;
}
.file-group{
    padding-top: 20px;
    padding-bottom: 20px;
}
.btn-remove {
    color: #dc3545;
    cursor: pointer;
    font-weight: bold;
    width: fit-content;
    background: none;
    border: none;
    font-size: 24px;
    width: fit-content;
    background: #eee;
    width: 50px;
    height: 50px;
    border-radius: 10em;
}

button.submit {
    background-color: #28a740;
    color: white;
    font-size: 1.1rem;
    padding: 12px;
    margin-top: 10px;
}

button.submit:hover {
    background-color: #218c3a;
}

.file-upload {
    position: relative;
}
/* Стили для списка загруженных файлов */
ul#file-list {
    list-style: none;
    padding: 0;
    margin-top: 5px;
    color: green;
}
button.submit{
    background: linear-gradient(0deg, #0A68AB 0%, #005999 100%), #005999;
    border: 0;
    border-radius: 8px;
    padding: 15px 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.25;
    color: #FFFFFF !important;
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    text-align: center;
    justify-content: center;
}
#agreement{
    appearance: none;
    -webkit-appearance: none;
    width: 30px;
    height: 30px;
    border: 2px solid #333;
    border-radius: 4px;
    background-color: #fff;
    display: inline-grid;
    place-content: center;
    transition: all 0.2s ease-in-out;
}
#agreement::before{
    content: "";
    width: 10px;
    height: 6px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0);
    transition: transform 0.1s ease-in-out;
    margin-top: -3px;
}
#agreement:checked {
    background-color: #007bff;
    border-color: #007bff;
}
#agreement:checked::before {
    transform: rotate(-45deg) scale(1);
}
#agreement:focus-visible {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}
#errorMessagesCloser{
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 14px;
    cursor: pointer;
}
#errorMessagesDiv,
#registrationSuccess{
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Perfectly offsets the box height/width */
    background-color: white;
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    z-index: 9999; /* Keeps it on top of other content */
}
#registrationSuccess{
    color: #fff;
    background-color: #005A9B;
}
#errorMessagesDiv{
    display: none;
}
.error-msg{
    color: darkred;
}