/* Contact Form Styles */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900&display=swap');

.contact-form-style-03 form {
    position: relative;
    font-family: 'Cairo', sans-serif;
}

.form-group {
    position: relative;
}

.form-control {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    font-family: 'Cairo', sans-serif;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-invalid:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.field-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: block;
    animation: fadeIn 0.3s ease-in;
    font-family: 'Cairo', sans-serif;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-results {
    transition: all 0.3s ease;
}

.form-results .alert {
    border-radius: 8px;
    border: none;
    padding: 15px 20px;
    margin-bottom: 0;
    font-weight: 500;
}

.form-results .alert-success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.form-results .alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.btn.loading {
    position: relative;
    color: transparent;
}

.btn.loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* تحسين مظهر الحقول عند التركيز */
.form-control:focus + .form-icon {
    color: #007bff;
}

/* تحسين مظهر الحقول عند الخطأ */
.form-control.is-invalid + .form-icon {
    color: #dc3545;
}

/* تحسين مظهر النصarea */
textarea.form-control {
    resize: vertical;
    min-height: 80px;
}

/* تحسين مظهر الأيقونات */
.form-icon {
    transition: color 0.3s ease;
}

/* تحسين مظهر الزر عند التعطيل */
.btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* تحسين مظهر الرسائل */
.form-results .alert {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* تحسين مظهر الحقول المطلوبة */
.form-control.required::placeholder {
    color: #6c757d;
}

.form-control.required:focus::placeholder {
    color: #007bff;
}

/* تحسين مظهر رسائل التحقق */
.field-error {
    background-color: rgba(220, 53, 69, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #dc3545;
}

/* تنسيق Canvas للشاشات الصغيرة */
@media (max-width: 991px) {
    #canvas {
        width: 100% !important;
        max-width: 400px !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

@media (max-width: 767px) {
    #canvas {
        width: 100% !important;
        max-width: 350px !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

@media (max-width: 575px) {
    #canvas {
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
        aspect-ratio: 1/1 !important;
        margin: 0 auto !important;
        display: block !important;
    }
}

/* تنسيق قائمة الموبايل */
@media (max-width: 991px) {
    [data-mobile-nav-style=full-screen-menu] .navbar-full-screen-menu-inner .navbar-nav .nav-item .nav-link {
        font-size: 28px !important;
        line-height: 1.5 !important;
        font-weight: 600 !important;
    }
}

@media (max-width: 767px) {
    [data-mobile-nav-style=full-screen-menu] .navbar-full-screen-menu-inner .navbar-nav .nav-item .nav-link {
        font-size: 32px !important;
        line-height: 1.6 !important;
        font-weight: 700 !important;
    }
}

@media (max-width: 575px) {
    [data-mobile-nav-style=full-screen-menu] .navbar-full-screen-menu-inner .navbar-nav .nav-item .nav-link {
        font-size: 36px !important;
        line-height: 1.7 !important;
        font-weight: 700 !important;
    }
}
