body {
    font-family: 'Inter', sans-serif;
    background-color: #121212; /* Dark background */
    color: #e1e1e1; /* Light text color */
}

/* Custom styles for focus rings and accent colors */
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #4f46e5; /* Primary color */
    box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.5); /* Primary color with transparency */
}

/* Styles for validation errors */
.form-input.error,
.form-textarea.error {
    border-color: #ef4444; /* Red-500 for error */
}

.error-message {
    color: #ef4444; /* Red-500 for error message text */
    font-size: 0.875rem; /* text-sm */
    margin-top: 0.25rem; /* mt-1 */
}

/* NEW: Styles for horizontal form groups */
.form-group-horizontal {
    display: flex;
    flex-direction: column; /* Default to column on small screens */
    align-items: flex-start; /* Align label to start */
    gap: 0.5rem; /* Space between label and input on column layout */
}

.form-group-horizontal label {
    flex-shrink: 0; /* Prevent label from shrinking */
    width: 100%; /* Full width on small screens */
}

.form-group-horizontal input,
.form-group-horizontal textarea {
    flex-grow: 1; /* Allow input/textarea to take available space */
    width: 100%; /* Full width on small screens */
}

/* Medium screens and up: horizontal layout */
@media (min-width: 640px) {
    .form-group-horizontal {
        flex-direction: row; /* Change to row on larger screens */
        align-items: center; /* Vertically center label and input */
        gap: 1rem; /* Space between label and input on row layout */
    }

    .form-group-horizontal label {
        width: 120px; /* Fixed width for labels on larger screens */
        text-align: right; /* Align label text to the right */
    }

    .form-group-horizontal input,
    .form-group-horizontal textarea {
        width: auto; /* Allow input/textarea to size based on flex-grow */
    }
}