/* Reset */
* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 20px;
  direction: rtl;
}

form {
  max-width: 450px;
  margin: 30px auto;
  background: #fff;
  padding: 25px 30px 30px 30px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

form:focus-within {
  box-shadow: 0 12px 30px rgba(52, 152, 219, 0.4);
}

h2 {
  text-align: center;
  margin-bottom: 25px;
  color: #2c3e50;
  font-weight: 700;
}

label {
  display: block;
  margin-top: 15px;
  font-weight: 600;
  font-size: 1.1em;
  color: #34495e;
  cursor: pointer;
}

input[type="text"],
select {
  width: 100%;
  padding: 10px 12px;
  margin-top: 6px;
  border-radius: 6px;
  border: 1.5px solid #aaa;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
select:focus {
  border-color: #3498db;
  outline: none;
  box-shadow: 0 0 6px #a8d0ff;
}

input[type="radio"] {
  margin-left: 8px;
  transform: scale(1.2);
  cursor: pointer;
}

.period-group label {
  display: inline-block;
  margin-left: 20px;
  font-weight: normal;
  font-size: 1em;
  cursor: pointer;
}

button {
  padding: 10px 20px;
  margin-top: 25px;
  border: none;
  border-radius: 7px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(52, 152, 219, 0.4);
  font-weight: 600;
}

button[type="button"] {
  background-color: #2980b9;
  color: #fff;
  margin-right: 12px;
}
button[type="button"]:hover {
  background-color: #1c5980;
  transform: scale(1.05);
}

button[type="submit"] {
  background-color: #27ae60;
  color: #fff;
  margin-right: 10px;
}
button[type="submit"]:hover {
  background-color: #1e8449;
  transform: scale(1.05);
}

.download {
  text-align: center;
  background-color: #1e8449;
  color: #fff;
  margin-right: 10px;
  margin-bottom: 30px;
  font-weight: bold;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  transition: 0.3s;
}
.download:hover {
  background-color: #166135;
  transform: scale(1.05);
}

.down-div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.buttons {
  display: flex;
  justify-content: center;
  align-items: center;
}

.step {
  display: none;
  animation: fadeIn 0.5s ease forwards;
}

.step.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
