/* ----- Общие стили ----- */
* {
	box-sizing: border-box;
}

body {
	font-family: Arial, sans-serif;
	margin: 0;
	padding: 0;
	background: #f2f2f2;
	/* Светлый фон */
	color: #333;
	word-break: break-all;
}

/* Контейнер всего содержимого */
.container {
	max-width: 700px;
	/* Ширина формы */
	margin: 30px auto;
	/* Центрируем */
	padding: 20px 30px;
	background: #fff;
	/* Белый фон */
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Заголовок */
h1 {
	margin-top: 0;
	font-size: 1.8em;
	text-align: center;
}

/* ----- Стили формы ----- */
form {
	margin-top: 20px;
}

/* Каждое поле (лейбл + инпут/textarea) в отдельном блоке */
.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: inline-block;
	margin-bottom: 6px;
	font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
	display: block;
	width: 100%;
	padding: 8px 10px;
	margin-top: 4px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font: inherit;
}

/* Стили для сообщений об ошибках */
.error {
	border-color: red !important;
	/* Подсвечиваем красной рамкой */
}

.error-text {
	color: red;
	font-size: 0.9em;
	margin-top: 3px;
}

/* Кнопка отправки */
button[type="submit"] {
	background: #28a745;
	color: #fff;
	font-weight: bold;
	font-size: 1em;
	border: none;
	border-radius: 4px;
	padding: 10px 16px;
	cursor: pointer;
}

button[type="submit"]:hover {
	background: #218838;
}

/* Блок для общих сообщений (об успехе/ошибке) */
#resultMessage {
	margin-bottom: 20px;
	font-weight: bold;
}

/* Дополнительно можно стилизовать и адаптировать под мобильные устройства */
@media (max-width: 480px) {
	.container {
		padding: 10px 15px;
	}

	h1 {
		font-size: 1.4em;
	}
}

label {
	display: block !important;
}

/* Стили для документов */
#drop-files {
	position: relative;
	margin: 0 auto;
	background: rgba(0, 0, 0, 0.1);
	border-radius: 10px;
	border: 4px dashed rgba(0, 0, 0, 0.2);
	padding: 80px;
	text-align: center;
	font-size: 2em;
	font-weight: bold;
}

#drop-files input {
	opacity: 0;
	font-size: 20px;
	display: none;
}

#drop-files p {
	clear: none;
	padding: 0;
	margin: 0;
}

#uploaded-holder {
	display: none;
	position: relative;
	margin: 0 auto;
}

#dropped-files {
	display: block;
	margin: 0 auto;
	/* width: 950px; */
}

#upload-button {
	z-index: 9999;
	display: none;
	margin: 20px 0;
}

.drop-button {
	display: block;
	position: absolute;
	z-index: 9999;
	padding: 10px;
	width: 100%;
	background: rgba(0, 0, 0, 0.6);
	font-size: 1.5em;
	bottom: 0;
	text-align: center;
	text-decoration: none;
	font-weight: 700;
	color: #fff;
}

#dropped-files .image {
	position: relative;
	height: 200px;
	width: 300px;
	border: 4px solid #fff;
	box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
	background: #fff;
	float: left;
	border-radius: 4px;
	margin: 0 7px 7px 0;
	overflow: hidden;
}

#upload-button .ss-upload {
	font-size: 0.7em;
}

#upload-button a {
	text-decoration: none;
	color: #fff;
	font-weight: bold;
	box-shadow: 0 0 1000px 62px rgba(255, 255, 255, 1),
		inset 0 -35px 40px -10px #0a9fca;
	font-size: 20px;
	padding: 10px 20px;
	background-color: #4bc1e3;
	border-radius: 10px;
}

#upload-button span {
	position: relative;
	text-align: center;
	background: white;
	border-radius: 10px;
	font-size: 1.1em;
	padding: 6px;
	margin-right: 8px;
}

#upload-button a:hover {
	box-shadow: 0 0 1000px 62px rgba(255, 255, 255, 1),
		inset 0 -5px 40px 0px #0a9fca;
}

#dropped-files #upload-button .delete {
	display: block;
	padding: 7px 6px 4px 6px;
	border-radius: 100px;
	background: rgba(0, 0, 0, 0.6);
	box-shadow: none;
	font-size: 1em;
	margin-top: 8px;
	margin-left: 8px;
}

#dropped-files #upload-button .delete:hover {
	background: rgba(0, 0, 0, 0.8);
}

#loading {
	display: none;
	width: 100%;
	position: relative;
	margin: 20px;
}

#loading-bar {
	width: 404px;
	height: 40px;
	background: #fff;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
	border-radius: 5px;
	padding: 2px;
}

.loading-color {
	width: 0%;
	height: 100%;
	-webkit-transition: all 0.1s ease-in;
	-moz-transition: all 0.1s ease-in;
	-ms-transition: all 0.1s ease-in;
	-o-transition: all 0.1s ease-in;
	transition: all 0.1s ease-in;
	border-radius: inherit;
	background-color: #4edbf1;
}

#loading-content {
	position: relative;
	top: 15px;
	font-size: 1.2em;
	font-weight: bold;
	text-align: center;
	width: 405px;
}

#file-name-holder {
	width: 100%;
	float: left;
}

#file-name-holder h1 {
	text-align: center;
	padding: 20px 0;
	font-size: 3em;
	margin: 0;
}

#uploaded-files {
	width: 500px;
	list-style: none;
	margin: 0 auto;
	padding: 10px;
	color: #545454;
}

#uploaded-files li {
	padding: 10px;
	border-bottom: 1px solid #eee;
	font-size: 1.5em;
	font-weight: bold;
	line-height: 25px;
	color: #545454;
}

#uploaded-files a {
	color: #1bacbf;
}

.divbutton {
	display: inline-table;
	width: 100%;
}

@media (max-width: 850px) {
	.divbutton button {
		width: 100%;
		margin-top: 10%;
	}
}

.bg-white.p-6.rounded-lg.shadow-lg.w-full.max-w-sm {
	padding: 0px 5% 5% 5%;
}

.bg-gray-100 h1 {
	padding: 3%;
}

.pad {
	padding: 0% 15% 10% 15% !important;
}

button[disabled] {
	opacity: 0.5;
	cursor: not-allowed;
}

.infoform {
	color: blue;
	font-size: 1em;
	text-align: right;
	position: relative;
	top: 10px;
	right: 10px;
}

.infoform a {
	color: inherit !important;
	text-decoration: inherit !important;
	font-family: Arial, sans-serif;
}