/* Form Message Styles */
.form-message {
  margin: 20px 0;
  padding: 15px 20px;
  border-radius: 5px;
  font-weight: 500;
  text-align: center;
  font-size: 16px;
  line-height: 1.4;
  display: none;
}

.form-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* Form Submit Button Loading State */
.formSubmitButton:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: #6c757d !important;
}

/* Form Section Styling */
.formSection {
  margin: 40px 0;
}

.formSectionInner {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px;
}

.formHeader {
  margin-bottom: 30px;
  text-align: center;
}

.formTitle {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #333;
}

.formIntroduction {
  font-size: 1.1rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Form Row Styles */
.formRow {
  margin-bottom: 20px;
}

.formRowFlex {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.formColumn {
  flex: 1;
}

/* Form Input Styles */
.formRow label, .formRow legend,
.formColumn label, .formColumn legend {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.formRow input,
.formRow textarea,
.formColumn input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 15px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.formRow input:focus,
.formRow textarea:focus,
.formColumn input:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

/* Radio and Checkbox Groups */
fieldset {
  border: none;
}

.radioGroup,
.checkboxGroup {
  display: flex;
  gap: 20px;
  margin-top: 10px;
}

.radioGroup label,
.checkboxGroup label {
  display: flex;
  align-items: center;
  font-weight: normal;
  margin-bottom: 0;
}

.radioGroup input[type="radio"],
.checkboxGroup input[type="checkbox"] {
  width: auto;
  margin: 0 8px 0 0;
}

/* Submit Button */
.formSubmitButton {
  background-color: #007bff;
  color: white;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.formSubmitButton:hover:not(:disabled) {
  background-color: #0056b3;
  transform: translateY(-1px);
}

.formSubmitButton:active:not(:disabled) {
  transform: translateY(0);
}

/* Form Validation Error Styles */
.error {
  color: #dc3545;
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
  .formRowFlex {
    flex-direction: column;
    gap: 0;
  }

  .radioGroup,
  .checkboxGroup {
    flex-direction: column;
    gap: 10px;
  }

  .formTitle {
    font-size: 1.5rem;
  }

  .formIntroduction {
    font-size: 1rem;
  }

}