
.form-container {
  background-color: var(--bg-card);
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

form {
  width: 100%;
}

fieldset {
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

legend {
  padding: 0 1rem;
  color: var(--accent-primary);
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
}

input[type="text"],
select,
textarea {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-primary);
  font-family: "Roboto", sans-serif;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.25);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

.radio-group,
.checkbox-group {
  margin-bottom: 1rem;
}

.radio-group p,
.checkbox-group p {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.radio-option,
.checkbox-option {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.radio-option label,
.checkbox-option label {
  margin-bottom: 0;
  margin-left: 0.75rem;
  cursor: pointer;
}

input[type="radio"],
input[type="checkbox"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-color);
  margin: 0;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
}

input[type="radio"] {
  border-radius: 50%;
}

input[type="checkbox"] {
  border-radius: 3px;
}

input[type="radio"]:checked,
input[type="checkbox"]:checked {
  background-color: var(--accent-primary);
  border-color: var(--accent-primary);
}

input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bg-primary);
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 5px;
  height: 10px;
  border-right: 2px solid var(--bg-primary);
  border-bottom: 2px solid var(--bg-primary);
}

input[type="radio"]:focus,
input[type="checkbox"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(187, 134, 252, 0.25);
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1rem;
}

.btn-submit,
.btn-reset {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-submit {
  background-color: var(--accent-primary);
  color: var(--bg-primary);
}

.btn-reset {
  background-color: var(--border-color);
  color: var(--text-primary);
}

.btn-submit:hover,
.btn-reset:hover {
  transform: translateY(-2px);
}

.btn-submit:hover {
  background-color: #ca97ff;
}

.btn-reset:hover {
  background-color: #444444;
}

.btn-submit:active,
.btn-reset:active {
  transform: translateY(0);
}

::placeholder {
  color: var(--text-secondary);
  opacity: 0.7;
}

@media (max-width: 768px) {
  fieldset {
    padding: 1rem;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .btn-submit,
  .btn-reset {
    width: 100%;
  }
}