       :root {
            --primary-color: #3498db;
            --secondary-color: #2c3e50;
            --success-color: #39b2e9;
            --danger-color: #dc3545;
        }
        
        body {
            background-color: #f8f9fa;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
		
h1, .h1, h2, .h2, h3, .h3, h4, .h4, h5, .h5, h6, .h6 {
    padding-top: 10px;
    padding-bottom: 10px;
	line-height: 1.3;
}

        .form-container {
			/*font-size:16px;*/
            max-width: 800px;
            margin: 30px auto;
            padding: 30px;
            border-radius: 15px;
            box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
            background-color: #fff;
            border-top: 5px solid var(--primary-color);
        }
        
        .form-title {
            text-align: center;
            margin-bottom: 30px;
            color: var(--secondary-color);
            font-weight: 600;
        }
        
		.text-zapis {
            margin-top: 20px;
            margin-bottom: 20px;
			font-size: 16px;
		}
        .form-group {
            margin-bottom: 25px;
        }
        
        .form-control {
            border-radius: 8px;
            border: 1px solid #ddd;
            transition: all 0.3s;
        }
        
        .form-control:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
        }
        
        .btn-visit {
            width: 100%;
            margin-bottom: 10px;
            padding: 12px;
            border-radius: 8px;
            transition: all 0.3s;
        }
        
        .btn-visit.active {
            background-color: var(--success-color);
            border-color: var(--success-color);
            color: white;
        }
        
        .btn-submit {
            width: 100%;
            padding: 14px;
            font-size: 18px;
            font-weight: 500;
            border-radius: 8px;
            background-color: var(--primary-color);
            border: none;
            transition: all 0.3s;
        }
        
        .btn-submit:hover {
            background-color: #2980b9;
            transform: translateY(-2px);
        }
        
        .btn-submit:disabled {
            background-color: #95a5a6;
            transform: none;
        }
        
        .file-upload {
            position: relative;
            overflow: hidden;
            display: inline-block;
            width: 100%;
        }
        
        .file-upload-btn {
            width: 100%;
            padding: 12px;
            border-radius: 8px;
            background-color: #f8f9fa;
            border: 1px dashed #ccc;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s;
        }
        
        .file-upload-btn:hover {
            background-color: #e9ecef;
            border-color: var(--primary-color);
        }
        
        .file-upload input {
            position: absolute;
            top: 0;
            right: 0;
            margin: 0;
            padding: 0;
            font-size: 20px;
            cursor: pointer;
            opacity: 0;
            filter: alpha(opacity=0);
        }
        
        .terms-link {
            color: var(--primary-color);
            cursor: pointer;
            text-decoration: underline;
            transition: all 0.2s;
        }
        
        .terms-link:hover {
            color: #2980b9;
            text-decoration: none;
        }
        
        
        .logo-img {
            height: 80px;
            display: block;
            margin: 0 auto 20px;
        }
        
        #fileList {
            margin-top: 15px;
        }
        
        #fileList ul {
            list-style-type: none;
            padding-left: 0;
        }
        
        #fileList li {
            padding: 8px 12px;
            background-color: #f8f9fa;
            border-radius: 5px;
            margin-bottom: 5px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .remove-file {
            color: var(--danger-color);
            cursor: pointer;
            font-weight: bold;
        }
        
        .required-field::after {
            content: " *";
            color: var(--danger-color);
        }
        
        @media (max-width: 768px) {
            .form-container {
                padding: 20px;
                margin: 15px;
            }
            
            .form-title {
                font-size: 24px;
            }
        }
		
.invalid-feedback {
    color: #dc3545; /* Красный цвет для ошибок */
    font-size: 0.875em;
    margin-top: 0.25rem;
    display: none; /* По умолчанию скрыто */
    transition: opacity 0.3s ease;
    opacity: 0;
}

.is-invalid ~ .invalid-feedback,
.is-invalid + .invalid-feedback {
    display: block; /* Показываем при ошибке */
    opacity: 1;
}

.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-input {
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-upload-label {
    display: block;
    padding: 12px;
    border: 1px dashed #ccc;
    border-radius: 8px;
    text-align: center;
    background-color: #f8f9fa;
    transition: all 0.3s;
    cursor: pointer;
	font-weight: 400;
}

.file-upload-label:hover {
    background-color: #e9ecef;
    border-color: #3498db;
}

/* Стили для модального окна */
.modal iframe {
    width: 100%;
    height: 70vh;
    border: none;
}

.terms-link {
    color: #3498db;
    cursor: pointer;
    text-decoration: underline;
}

.terms-link:hover {
    text-decoration: none;
}


#fileList li:hover {
    background: #e9ecef;
}

.remove-file:hover {
    color: #bd2130;
	text-decoration: none;
}

#fileList ul {
    padding-left: 0;
    margin-top: 10px;
}

#fileList li {
    padding: 8px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 5px;
}

.remove-file {
    padding: 0 5px;
    line-height: 1;
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 1.2em;
}

.custom-file-label::after {
    content: "Обзор";
}


.form-check {
	display: flex;
	padding-left:5px;
}

.form-check label{
	padding-left:15px;
	padding-top:5px;
}