.application-form {
	background: white;
	width: 100%;
	max-width: 600px;
	position: relative;
}

.form-header {
	text-align: center;
	margin-bottom: 30px;
}

.form-header h1 {
	color: #2c3e50;
	font-size: 28px;
	margin-bottom: 10px;
}

.form-header p {
	color: #7f8c8d;
	font-size: 16px;
}

.form-group {
	margin-bottom: 24px;
}

.form-label {
	display: block;
	margin-bottom: 8px;
	color: #2c3e50;
	font-weight: 600;
	font-size: 14px;
}

.form-control {
	width: 100%;
	padding: 14px 16px;
	border: 2px solid #e1e8ed;
	border-radius: 10px;
	font-size: 16px;
	transition: all 0.3s ease;
	background: #f8f9fa;
}

.form-control:focus {
	outline: none;
	border-color: #3498db;
	background: white;
	box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
	min-height: 120px;
	resize: vertical;
	font-family: inherit;
}

/* Стили для файлового блока */
.file-upload-area {
	position: relative;
	border: 3px dashed #e1e8ed;
	border-radius: 12px;
	padding: 40px 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.3s ease;
	background: #f8f9fa;
	margin-top: 5px;
}

.file-upload-area:hover {
	border-color: #3498db;
	background: #edf7ff;
}

.file-upload-area.dragover {
	border-color: #2ecc71;
	background: #e8f8f1;
	transform: scale(1.01);
}

.file-upload-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 20px;
	background: #3498db;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 24px;
}

.file-upload-text h3 {
	color: #2c3e50;
	margin-bottom: 10px;
	font-size: 18px;
}

.file-upload-text p {
	color: #7f8c8d;
	margin-bottom: 15px;
	font-size: 14px;
}

.file-formats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
}

.format-badge {
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
	min-width: 60px;
	text-align: center;
}

.format-badge.word {
	background: #e8f4fc;
	color: #3498db;
}

.format-badge.excel {
	background: #f0f9eb;
	color: #67c23a;
}

.format-badge.pdf {
	background: #fef0f0;
	color: #f56c6c;
}

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

.file-preview {
	margin-top: 20px;
	padding: 15px;
	background: #f8f9fa;
	border-radius: 8px;
	display: none;
}

.file-preview.show {
	display: block;
	animation: fadeIn 0.3s ease;
}

.file-info {
	display: flex;
	align-items: center;
	gap: 12px;
}

.file-icon {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 12px;
}

.file-icon.word {
	background: #3498db;
}

.file-icon.excel {
	background: #27ae60;
}

.file-icon.pdf {
	background: #e74c3c;
}

.file-icon.generic {
	background: #95a5a6;
}

.file-details {
	flex-grow: 1;
}

.file-name {
	font-weight: 600;
	color: #2c3e50;
	margin-bottom: 4px;
	word-break: break-word;
}

.file-size {
	color: #7f8c8d;
	font-size: 13px;
}

.remove-file {
	background: none;
	border: none;
	color: #e74c3c;
	cursor: pointer;
	font-size: 18px;
	padding: 5px;
	flex-shrink: 0;
}

/* Кнопка отправки и сообщения */
.form-footer {
	margin-top: 30px;
}

.submit-btn {
	width: 100%;
	padding: 16px;
	background: linear-gradient(135deg, #3498db, #2980b9);
	color: white;
	border: none;
	border-radius: 10px;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
}

.submit-btn:hover {
	background: linear-gradient(135deg, #2980b9, #2573a7);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.submit-btn:active {
	transform: translateY(0);
}

.submit-btn:disabled {
	background: #bdc3c7;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Toast уведомления */
.toast-container {
	position: fixed;
	top: 20px;
	right: 20px;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 350px;
}

.toast {
	padding: 16px 20px;
	border-radius: 10px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
	display: flex;
	align-items: flex-start;
	gap: 12px;
	animation: slideInRight 0.3s ease, fadeOut 0.3s ease 4.7s;
	opacity: 0;
	transform: translateX(100%);
	animation-fill-mode: forwards;
	position: relative;
	overflow: hidden;
}

.toast::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	height: 100%;
	width: 4px;
}

.toast-success {
	background: #fff;
	border: 1px solid #d4edda;
}

.toast-success::before {
	background: #28a745;
}

.toast-error {
	background: #fff;
	border: 1px solid #f8d7da;
}

.toast-error::before {
	background: #dc3545;
}

.toast-icon {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 14px;
	font-weight: bold;
}

.toast-success .toast-icon {
	background: #28a745;
	color: white;
}

.toast-error .toast-icon {
	background: #dc3545;
	color: white;
}

.toast-content {
	flex-grow: 1;
}

.toast-title {
	font-weight: 600;
	margin-bottom: 4px;
	color: #2c3e50;
}

.toast-success .toast-title {
	color: #155724;
}

.toast-error .toast-title {
	color: #721c24;
}

.toast-message {
	font-size: 14px;
	color: #6c757d;
	line-height: 1.4;
}

.toast-close {
	background: none;
	border: none;
	color: #6c757d;
	cursor: pointer;
	font-size: 18px;
	padding: 0;
	line-height: 1;
	margin-top: -2px;
	transition: color 0.2s;
}

.toast-close:hover {
	color: #343a40;
}

/* Сообщение об успехе после отправки */
.success-message {
	padding: 20px;
	background: linear-gradient(135deg, #d4edda, #c3e6cb);
	border-radius: 10px;
	border: 1px solid #c3e6cb;
	margin-top: 20px;
	display: none;
	animation: fadeIn 0.5s ease;
}

.success-message.show {
	display: block;
}

.success-message-content {
	display: flex;
	align-items: center;
	gap: 15px;
}

.success-icon {
	width: 50px;
	height: 50px;
	background: #28a745;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 24px;
	flex-shrink: 0;
}

.success-text h3 {
	color: #155724;
	margin-bottom: 5px;
	font-size: 18px;
}

.success-text p {
	color: #155724;
	font-size: 14px;
	opacity: 0.9;
}

/* Анимации */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(-10px); }
	to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
	from {
		opacity: 0;
		transform: translateX(100%);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

@keyframes fadeOut {
	from {
		opacity: 1;
		transform: translateX(0);
	}
	to {
		opacity: 0;
		transform: translateX(100%);
	}
}

/* Валидация */
.error-message {
	color: #e74c3c;
	font-size: 13px;
	margin-top: 5px;
	display: none;
}

.error-message.show {
	display: block;
	animation: fadeIn 0.3s ease;
}

.form-control.error {
	border-color: #e74c3c;
}

/* Адаптивность */
@media (max-width: 768px) {
	.application-form {
		padding: 30px 20px;
	}
	
	.form-header h1 {
		font-size: 24px;
	}
	
	.file-upload-area {
		padding: 30px 15px;
	}
	
	.toast-container {
		top: 10px;
		right: 10px;
		left: 10px;
		max-width: none;
	}
	
	.toast {
		max-width: 100%;
	}
}

@media (max-width: 480px) {
	.file-formats {
		flex-direction: column;
		align-items: center;
		gap: 5px;
	}
	
	.format-badge {
		width: 80px;
	}
	
	.success-message-content {
		flex-direction: column;
		text-align: center;
		gap: 10px;
	}
}