/* Custom form styles */
.form-section {
    transition: all 0.3s ease;
}

.file-input-container {
    position: relative;
    overflow: hidden;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.file-input-label {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
}

.file-input-label:hover {
    border-color: #2563eb;
    background-color: #eff6ff;
}

.file-input:focus + .file-input-label {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

/* Form validation styles */
input:invalid,
textarea:invalid,
select:invalid {
    border-color: #ef4444;
}

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

/* Service type specific styling */
.service-type-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .form-section {
        padding: 1rem;
    }
}

/* Custom placeholder text color for RTL inputs */
::placeholder {
    opacity: 0.7;
}

/* Loader for form submission */
.form-loader {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-loader.active {
    display: flex;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
