/* Общие стили полей согласия на формах */
.form-checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	font-size: 0.875rem;
	line-height: 1.45;
	color: #ccc;
	margin-top: 0.75rem;
	max-width: 100%;
	user-select: none;
	-webkit-user-select: none;
}

.form-checkbox input[type="checkbox"] {
	margin-top: 0.28rem;
	flex-shrink: 0;
	width: 1rem;
	height: 1rem;
	accent-color: #f44336;
	cursor: pointer;
}

.form-checkbox a {
	color: #f44336;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.form-checkbox a:hover {
	color: #ff7961;
}

/* ==========================================================================
   МОДАЛЬНОЕ ОКНО И ФОРМА (MODAL & FORM DIALOG)
   ========================================================================== */
.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.8) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 99999 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.modal-content {
  background: #232428;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 32px 28px;
  max-width: 520px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(244, 67, 54, 0.2);
  color: #ffffff;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  animation: modalPopIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(15px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 0;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.modal-content p {
  color: #9ca3af;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 20px;
}

.modal-content .close {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 32px;
  font-weight: 300;
  color: #9ca3af;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.modal-content .close:hover {
  color: #f44336;
  transform: scale(1.15);
}

/* Элементы ввода внутри формы */
.contact-form label {
  display: block;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #e5e7eb;
  text-align: left;
}

.contact-form input[type="text"],
.contact-form input[type="tel"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  margin-top: 6px;
  background: #161719;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.95rem;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="tel"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #f44336;
  box-shadow: 0 0 0 3px rgba(244, 67, 54, 0.3);
}

.contact-form .btn-primary {
  background: linear-gradient(135deg, #f44336, #d32f2f);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(244, 67, 54, 0.4);
  transition: all 0.2s ease;
}

.contact-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(244, 67, 54, 0.55);
}

/* ==========================================================================
   СТИЛЬНАЯ КНОПКА ЗАГРУЗКИ ФАЙЛОВ / ЧЕРТЕЖЕЙ / РЕЗЮМЕ
   ========================================================================== */
.file-upload-wrapper {
  margin-top: 14px;
  margin-bottom: 16px;
  text-align: left;
}

.file-upload-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px !important;
  background: rgba(244, 67, 54, 0.12) !important;
  border: 1.5px dashed #f44336 !important;
  border-radius: 10px !important;
  color: #ffffff !important;
  font-size: 0.92rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.25s ease !important;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
}

.file-upload-btn:hover {
  background: rgba(244, 67, 54, 0.22) !important;
  border-color: #ff7961 !important;
  transform: translateY(-1px);
}

.file-upload-btn input[type="file"] {
  display: none !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
}

.file-name-display {
  display: block;
  font-size: 0.88rem;
  color: #fbbf24;
  margin-top: 8px;
  font-weight: 600;
  word-break: break-all;
}


