* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  padding: 20px;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 999;
  animation: fadeIn 0.3s;
}

.popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #fff;
  padding: 25px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  animation: slideIn 0.4s ease-out;
  width: 90%;
  max-width: 450px;
}

h1 {
  color: #3fa3da;
  font-size: 1.8rem;
  text-align: center;
  margin-bottom: 20px;
}

h2 {
  color: #4fb839;
  font-size: 1.4rem;
  margin-bottom: 15px;
}

.progress-bar {
  height: 6px;
  background: #e0e0e0;
  border-radius: 3px;
  margin: 15px 0;
  overflow: hidden;
}

.progress {
  height: 100%;
  background: linear-gradient(90deg, #4fb839, #3fa3da);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.form-step {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.form-step.active {
  display: block;
  opacity: 1;
}

label {
  display: block;
  margin: 8px 0 4px;
  color: #444;
  font-weight: 500;
  font-size: 0.9rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #4fb839;
  box-shadow: 0 0 5px rgba(79, 184, 57, 0.3);
  outline: none;
}

.error {
  border-color: #e74c3c;
}

.error-msg {
  color: #e74c3c;
  font-size: 0.8rem;
  margin: -8px 0 10px;
  display: none;
}

button {
  padding: 10px 18px;
  background: #4fb839;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s, transform 0.2s;
  width: 100%;
  max-width: 200px;
}

button:hover {
  background: #3fa3da;
  transform: translateY(-2px);
}

button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

.activity-row,
.planning-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
  animation: fadeIn 0.3s;
}

.activity-row input,
.planning-row input {
  flex: 1 1 100%;
  min-width: 0;
}

.delete-btn {
  padding: 8px 16px;
  background: #e74c3c;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
  flex: 1 1 100%;
  max-width: 100px;
}

.delete-btn:hover {
  background: #c0392b;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: space-between;
}

.logo {
  display: block;
  margin: 0 auto 20px;
  width: 50px;
  height: 50px;
}

@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 15px;
  }

  h1 {
    font-size: 1.5rem;
  }

  h2 {
    font-size: 1.2rem;
  }

  button {
    font-size: 0.9rem;
    padding: 8px 16px;
  }

  .popup {
    padding: 20px;
  }

  .activity-row input,
  .planning-row input {
    flex: 1 1 48%;
  }

  .delete-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
    max-width: 80px;
  }

  .btn-group {
    flex-direction: column;
  }

  button {
    max-width: 100%;
  }

  .logo {
    width: 40px;
    height: 40px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translate(-50%, -60%);
    opacity: 0;
  }

  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}
