body {
  font-family: Arial, sans-serif;
  background-color: #f4f6f8;
  margin: 0;
  padding: 20px;
  color: #333;
}

.container {
  max-width: 500px;
  margin: auto;
  background: white;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.logo img {
  width: 70px;
  margin-bottom: 15px;
}

h1 {
  color: #7A0026;
  font-size: 24px;
  margin-bottom: 10px;
}

.es {
  color: #7A0026;
  font-weight: bold;
  font-size: 20px;
}

.sub {
  color: #555;
  font-size: 16px;
  margin-bottom: 20px;
}

.upload-box {
  border: 2px dashed #ccc;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.upload-box input {
  margin-bottom: 10px;
}

.upload-box button {
  background-color: #7A0026;
  color: white;
  padding: 10px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
}

.upload-box button:hover {
  background-color: #5c001d;
}

.hidden {
  display: none;
}

.thank-you {
  font-size: 18px;
  color: green;
  font-weight: bold;
}
.upload-box input[type="text"] {
  padding: 10px;
  width: 90%;
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-bottom: 10px;
}
.upload-box {
  border: 2px dashed #ccc;
  padding: 25px;
  margin: 20px 0;
  border-radius: 12px;
  background-color: #fff;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  display: none;
}

.upload-box.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  box-shadow: 0 0 12px rgba(200, 0, 50, 0.2);
  border-color: #800020;
}

.upload-box button {
  margin-top: 15px;
  background-color: #800020;
  border: none;
  padding: 12px 25px;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.upload-box button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.hidden {
  display: none !important;
}
.step-counter {
  font-weight: bold;
  font-size: 16px;
  color: #800020;
  text-align: center;
  margin-top: 10px;
}

.upload-box {
  border: 2px dashed #ccc;
  padding: 25px;
  margin: 20px 0;
  border-radius: 12px;
  background-color: #fff;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.4s ease;
  display: none;
}

.upload-box.active {
  display: block;
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 15px rgba(128, 0, 32, 0.25);
  border-color: #800020;
  animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.step-img {
  width: 100%;
  max-width: 260px;
  margin: 10px auto 15px;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.15);
  display: block;
}
/* Скрывает стандартный input */
.file-upload input[type="file"] {
  display: none;
}

/* Стилизованная кнопка */
.custom-file-upload {
  display: inline-block;
  padding: 10px 20px;
  background-color: #730028;
  color: white;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 14px;
}

.custom-file-upload:hover {
  background-color: #a60036;
}

.modal {
      display: flex;
      align-items: center;
      justify-content: center;
      position: fixed;
      top: 0; left: 0;
      width: 100%; height: 100%;
      background: rgba(0,0,0,0.6);
      opacity: 0;
      pointer-events: none;
      transition: opacity 0.4s ease;
      z-index: 1000;
    }

    .modal.show {
      opacity: 1;
      pointer-events: auto;
    }

    .modal-content {
      background: #fff;
      padding: 24px;
      border-radius: 4px;
      text-align: center;
      max-width: 300px;
      color: #000;
      font-size: 14px;
      box-shadow: 0 0 10px rgba(0,0,0,0.3);
    }

    .modal-content strong {
      color: #d00;
    }

    .close-btn {
      margin-top: 16px;
      background: #E30709;
      color: #fff;
      border: none;
      padding: 8px 16px;
      cursor: pointer;
      font-size: 13px;
    }

    .close-btn:hover {
      background: #333;
    }