/* Enhanced Service Request Form Styles */
.service-form {
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 172, 193, 0.1);
    transform: translateY(0);
}

.service-form:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1) !important;
}

.service-form .form-control,
.service-form .form-select,
.service-form .form-check-input {
    border-color: rgba(0, 172, 193, 0.2);
    transition: all 0.3s ease;
}

.service-form .form-control:focus,
.service-form .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(0, 172, 193, 0.25);
}

.service-form .form-floating label {
    color: #6c757d;
    font-weight: 500;
}

.service-form .form-floating label i {
    opacity: 0.8;
}

.service-form .form-check-input:checked {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
}

.service-form button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.service-form button[type="submit"]::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.service-form button[type="submit"]:hover::before {
    left: 100%;
}

/* Form input animations */
.service-form .form-control,
.service-form .form-select {
    transform: translateX(0);
}

.service-form .form-control:focus,
.service-form .form-select:focus {
    transform: translateX(5px);
}

/* Custom date input styling */
input[type="date"] {
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: transparent;
    cursor: pointer;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

/* Form validation styling */
.service-form .form-control.is-valid,
.service-form .form-select.is-valid {
    border-color: #28a745;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.service-form .form-control.is-invalid,
.service-form .form-select.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

/* Form accessibility improvements */
.service-form .form-control:focus,
.service-form .form-select:focus,
.service-form .form-check-input:focus {
    outline: 2px solid var(--bs-primary);
    outline-offset: 1px;
}

/* Form responsive adjustments */
@media (max-width: 767px) {
    .service-form {
        padding: 1.5rem !important;
    }
    
    .service-form .btn-lg {
        width: 100%;
        margin-top: 1rem;
    }
    
    .service-form .d-md-flex {
        flex-direction: column;
    }
}
