/* Form Elements Base */
form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #2d3748;
  letter-spacing: 0.015em;
  text-transform: uppercase;
}

/* Input Fields Typography */
input, 
textarea, 
select {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: #2d3748;
  padding: 0.75rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.375rem;
  background-color: #ffffff;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

/* Placeholder Styling */
input::placeholder, 
textarea::placeholder {
  color: #a0aec0;
  font-style: italic;
  font-weight: 400;
  opacity: 0.8;
}

/* Focus States */
input:focus, 
textarea:focus, 
select:focus {
  outline: none;
  border-color: #4c51bf;
  box-shadow: 0 0 0 3px rgba(76, 81, 191, 0.1);
}

/* Hover States */
input:hover, 
textarea:hover, 
select:hover {
  border-color: #cbd5e0;
}

/* Textarea Specific */
textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.8;
}

/* Select Styling */
select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23718096' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5L4.5 5 8 8.5 11.5 5 13 6.5l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 16px;
  padding-right: 2.5rem;
}

/* Radio & Checkbox Container */
.radio-group,
.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Radio & Checkbox Items */
.radio-item,
.checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  cursor: pointer;
}

/* Radio & Checkbox Input Styling */
input[type="radio"],
input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  margin: 0;
  flex-shrink: 0;
}

/* Radio & Checkbox Labels */
.radio-item label,
.checkbox-item label {
  text-transform: none;
  font-size: 1rem;
  letter-spacing: 0;
  cursor: pointer;
}

/* Help Text */
.help-text {
  font-size: 0.875rem;
  color: #718096;
  margin-top: 0.25rem;
  line-height: 1.5;
}

/* Error State */
input.error,
textarea.error,
select.error {
  border-color: #e53e3e;
}

.error-message {
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Success State */
input.success,
textarea.success,
select.success {
  border-color: #38a169;
}

/* Button Styling */
button {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  color: white;
  background-color: #FB9E3A;;
  border: none;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 0.5rem;
}

button:hover {
  opacity: 0.8;
  transform: translateY(-1px);
}

button:active {
  transform: translateY(0);
}

/* Disabled State */
input:disabled,
textarea:disabled,
select:disabled,
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Field Group (for inline fields) */
.field-group {
  display: flex;
  gap: 1rem;
}

.field-group .form-group {
  flex: 1;
}

/* Responsive Adjustments */
@media (max-width: 600px) {
  body {
    padding: 1rem;
  }
  
  .field-group {
    flex-direction: column;
    gap: 1.5rem;
  }
}