@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  background: linear-gradient(to right, #6a11cb, #2575fc);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 10px;
  color: #333;
}

.container {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 650px;
  position: relative;
  overflow: hidden;
  margin: auto;
}

.header {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  max-width: 350px;
  height: auto;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

h2 {
  color: #333;
  margin-bottom: 15px;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

h3 {
  color: #4a4a4a;
  margin-bottom: 25px;
  font-weight: 500;
  text-align: center;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
}

.progress-bar {
  width: 100%;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 15px;
}

.progress {
  height: 100%;
  width: 0%;
  background: linear-gradient(to right, #2575fc, #6a11cb);
  border-radius: 4px;
  transition: width 0.4s ease-in-out;
}

.step-indicators {
  display: flex;
  justify-content: space-around;
  margin-bottom: 25px;
}

.step {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #e0e0e0;
  color: #777;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #e0e0e0;
}

.step.active {
  background-color: #2575fc;
  color: white;
  border-color: #2575fc;
}

.step.completed {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

.form-step {
  display: none;
  opacity: 0;
  transform: translateX(100%);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
  width: 100%;
  position: static;
}

.form-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
  max-height: 70vh;
  overflow-y: auto;
}

.form-step.prev {
  transform: translateX(-100%);
}

.form-group {
  margin-bottom: 25px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #555;
}

input[type="number"],
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="datetime-local"],
select,
textarea,
.coordinates-display input[type="text"] {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2575fc;
  box-shadow: 0 0 0 3px rgba(37, 117, 252, 0.2);
  outline: none;
}

input[readonly] {
  background-color: #f0f0f0;
  cursor: not-allowed;
}

input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f8f8f8;
  cursor: pointer;
}

small {
  color: #888;
  font-size: 0.85rem;
  margin-top: 5px;
  display: block;
}

.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: #28a745;
  color: white;
}

.btn-primary:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(40, 167, 69, 0.2);
}

.btn-next,
.btn-prev {
  background-color: #2575fc;
  color: white;
}

.btn-next:hover,
.btn-prev:hover {
  background-color: #1a5ac9;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(37, 117, 252, 0.2);
}

.btn-secondary {
  background-color: #6c757d;
  color: white;
  margin-top: 15px;
}

.btn-secondary:hover {
  background-color: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(108, 117, 125, 0.2);
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 30px;
}

#map {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-top: 15px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.05);
}

.coordinates-display {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.coordinates-display input {
  flex: 1;
}

@media (max-width: 768px) {
  .container {
    padding: 1.5rem;
    margin: 1rem;
  }

  .form-navigation {
    flex-direction: column;
    gap: 15px;
  }

  .btn-prev {
    order: 2;
  }

  .btn-next,
  .btn-primary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 1rem;
  }

  .step {
    width: 24px;
    height: 24px;
    font-size: 0.8rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 10px 18px;
  }

  .coordinates-display {
    flex-direction: column;
    gap: 8px;
  }
}
