/* ==================================================================
   ФОРМЫ (ОБЩИЕ)
   ================================================================== */
.form-section {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  display: none;
}

.form-section.active {
  display: block;
}

.required-field::after {
  content: " *";
  color: #dc3545;
}

.form-label.required-field {
  position: relative;
}

.form-label.required-field::after {
  content: " *";
  color: #dc3545;
  font-weight: bold;
}

.form-control:invalid {
  border-color: #dc3545;
}

.form-control:valid {
  border-color: #198754;
}

.form-check-input:checked {
  background-color: #0d6efd;
  border-color: #0d6efd;
}

.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
}

.form-group {
  position: relative;
}

.form-group .form-control {
  padding-left: 45px;
}

.form-step {
  font-size: 0.9rem;
  color: #6c757d;
}

.form-required {
  color: #dc3545;
}

.privacy-checkbox {
  font-size: 0.9rem;
}

/* ==================================================================
   ФОРМЫ ОБРАЩЕНИЙ
   ================================================================== */
.appeal-option-card {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
  height: 100%;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.appeal-option-card:nth-child(1) { animation-delay: 0.1s; }
.appeal-option-card:nth-child(2) { animation-delay: 0.2s; }
.appeal-option-card:nth-child(3) { animation-delay: 0.3s; }

.appeal-option-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  border-color: #0d6efd;
}

.appeal-option-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #e7f3fd;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.appeal-option-icon i {
  font-size: 1.5rem;
  color: #0d6efd;
}

/* ==================================================================
   ВЫБОР ТИПА ЮРИДИЧЕСКОГО ЛИЦА
   ================================================================== */
.legal-type-options {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.legal-type-option {
  flex: 1;
  cursor: pointer;
  padding: 1.5rem 1rem;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
  background-color: white;
}

.legal-type-option:hover {
  border-color: #0d6efd;
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

.legal-type-option.selected {
  border-color: #0d6efd;
  background-color: #e7f3fd;
  box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.legal-type-option .icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #6c757d;
}

.legal-type-option.selected .icon {
  color: #0d6efd;
}

.legal-type-option .title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #212529;
}

.legal-type-option .description {
  font-size: 0.85rem;
  color: #6c757d;
}

/* ==================================================================
   ШАГИ ФОРМЫ
   ================================================================== */
.form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
  position: relative;
}

.form-progress:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background-color: #dee2e6;
  z-index: 1;
}

.progress-step {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #dee2e6;
  color: #6c757d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.step-label {
  font-size: 0.85rem;
  color: #6c757d;
  text-align: center;
}

.progress-step.active .step-number {
  background-color: #0d6efd;
  color: white;
}

.progress-step.active .step-label {
  color: #0d6efd;
  font-weight: 600;
}

.progress-step.completed .step-number {
  background-color: #198754;
  color: white;
}

.progress-step.completed .step-label {
  color: #198754;
}

/* ==================================================================
   ЗАГРУЗКА ФАЙЛОВ
   ================================================================== */
.file-upload {
  border: 2px dashed #dee2e6;
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.file-upload:hover {
  border-color: var(--primary);
  background: #f8f9fa;
}

.file-upload input {
  display: none;
}

.file-upload-icon {
  font-size: 2.5rem;
  color: var(--gray);
  margin-bottom: 1rem;
}

.file-upload-text {
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.file-upload-hint {
  font-size: 0.9rem;
  color: var(--gray);
}

.file-list {
  margin-top: 1rem;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.file-item:last-child {
  margin-bottom: 0;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.file-icon {
  color: var(--primary);
  font-size: 1.2rem;
}

.file-name {
  font-weight: 500;
  color: var(--text);
}

.file-size {
  font-size: 0.85rem;
  color: var(--gray);
}

.file-remove {
  background: none;
  border: none;
  color: var(--danger);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.file-remove:hover {
  background: var(--danger);
  color: white;
}

/* ==================================================================
   ФОРМЫ ЗАКАЗА
   ================================================================== */
.order-cart-item {
  padding: 0.75rem;
  border-bottom: 1px solid #dee2e6;
}

.order-cart-item:last-child {
  border-bottom: none;
}

.order-cart-total {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0d6efd;
}

.order-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.order-success-icon {
  font-size: 4rem;
  color: #198754;
  margin-bottom: 1.5rem;
}

/* ==================================================================
   УСПЕШНАЯ ОТПРАВКА
   ================================================================== */
.success-notification {
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeIn 0.3s ease;
}

.success-icon {
  font-size: 4rem;
  color: var(--success);
  margin-bottom: 1.5rem;
}

.success-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark-blue);
  margin-bottom: 1rem;
}

.success-description {
  color: var(--gray);
  margin-bottom: 2rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.submit-success {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: white;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  text-align: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s ease;
}

.submit-success.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.submit-success-icon {
  font-size: 4rem;
  color: #198754;
  margin-bottom: 1rem;
  animation: bounce 1s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.overlay.show {
  opacity: 1;
  visibility: visible;
}