/* Former Component Styling */
.former-component {
    max-width: 2xl;
    margin: 0 auto;
}

.former-form {
    background-color: white;
    padding: 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid #e5e7eb;
}

.former-form h3 {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1f2937;
    margin-bottom: 0.75rem;
}

.former-form p {
    color: #4b5563;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.form-field {
    margin-bottom: 1.25rem;
}

.form-field label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9ca3af;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.former-form button[type="submit"] {
    margin-top: 1.5rem;
    width: 100%;
    background-color: #4f46e5;
    color: white;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.former-form button[type="submit"]:hover {
    background-color: #4338ca;
    transform: translateY(-1px);
}

.former-form button[type="submit"]:active {
    transform: translateY(0);
}

.former-form button[type="submit"]:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

#former-result {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.5rem;
    display: none;
}

#former-result.success {
    border: 1px solid #10b981;
    background-color: #ecfdf5;
    color: #065f46;
}

#former-result.error {
    border: 1px solid #ef4444;
    background-color: #fef2f2;
    color: #991b1b;
}

/* Responsive adjustments */
@media (min-width: 768px) {
    .former-form {
        padding: 2.5rem;
    }
}

/* Required field indicator */
.form-field label .required {
    color: #ef4444;
    margin-left: 0.25rem;
}