form {
  width: 400px;
}

fieldset {
  border: 2px solid #4a6fa5;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  background-color: white;
}

legend {
  font-weight: bold;
  color: #2c3e50;
  padding: 0 10px;
  font-size: 1.1em;
}

.form-group {
  margin-bottom: 15px;
  border-radius: 4px;
}

.form-group:nth-child(even) {
  padding-left: 5px;
  background-color: #f8fafc;
  border-left: 2px solid #4a6fa5;
}

.form-group:nth-child(odd) {
  padding-left: 5px;
  background-color: #ffffff;
  border-left: 2px solid #a250ff;
}

label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  color: #333;
}

label.required::after {
  content: " *";
  color: #e74c3c;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s;
}

input:required,
select:required {
  border-left: 3px solid #e74c3c;
  background-color: #fff8f8;
}

input:focus,
select:focus {
  outline: none;
  border-color: #4a6fa5;
  box-shadow: 0 0 0 2px rgba(74, 111, 165, 0.2);
}

.gender-group {
  display: flex;
  gap: 20px;
  margin-top: 5px;
}

.gender-option {
  display: flex;
  align-items: center;
}

.gender-option input {
  margin-right: 8px;
}

.gender-option input[type="radio"]:checked + label {
  color: #4a6fa5;
  font-weight: bold;
  padding: 5px 10px;
  background-color: #e8f0fe;
  border-radius: 4px;
  position: relative;
}

.hint {
  font-size: 12px;
  color: #666;
  margin-top: 3px;
  font-style: italic;
}

.interval-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 5px;
}

.interval-option {
  display: flex;
  align-items: center;
}

.interval-option input {
  margin-right: 8px;
}

.interval-option input[type="checkbox"]:checked + label {
  color: #27ae60;
  font-weight: bold;
  text-decoration: line-through;
  padding: 5px 10px;
  background-color: #e8f7ef;
  border-radius: 4px;
  position: relative;
}

.btn-submit {
  background-color: #4a6fa5;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.btn-submit:hover {
  background-color: #3a5a8c;
}

.btn-submit:active {
  transform: scale(0.95);
}

.btn-submit-icon {
  margin-left: 5px;
  height: 20px;
  width: 20px;
}
