/**
 * Smart Directory Pro - Forms Styles
 * Basic form styling for frontend forms
 */

/* Form Container */
.smart-directory-form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

/* Form Fields */
.smart-directory-form input,
.smart-directory-form textarea,
.smart-directory-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.smart-directory-form input:focus,
.smart-directory-form textarea:focus,
.smart-directory-form select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

/* Form Labels */
.smart-directory-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

/* Form Groups */
.smart-directory-form .form-group {
    margin-bottom: 20px;
}

/* Submit Button */
.smart-directory-form button[type="submit"] {
    background-color: #007cba;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.smart-directory-form button[type="submit"]:hover {
    background-color: #005a87;
}

.smart-directory-form button[type="submit"]:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Error Messages */
.smart-directory-form .error {
    color: #d63638;
    font-size: 14px;
    margin-top: 5px;
}

/* Success Messages */
.smart-directory-form .success {
    color: #00a32a;
    font-size: 14px;
    margin-top: 5px;
}

/* Required Field Indicator */
.smart-directory-form .required {
    color: #d63638;
}

/* File Upload */
.smart-directory-form input[type="file"] {
    padding: 8px;
}

/* Checkbox and Radio */
.smart-directory-form input[type="checkbox"],
.smart-directory-form input[type="radio"] {
    width: auto;
    margin-right: 8px;
}

/* Form Row */
.smart-directory-form .form-row {
    display: flex;
    gap: 20px;
}

.smart-directory-form .form-row .form-group {
    flex: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .smart-directory-form .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .smart-directory-form {
        padding: 15px;
    }
}