﻿

#PartnerOrderModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75); /* تعتيم الخلفية */
    display: none; /* مخفي افتراضياً */
    justify-content: center;
    align-items: center;
    z-index: 9999999999999999999999; /* أولوية ظهور قصوى */
    padding: 20px;
}

    /* كلاس التفعيل الذي يجعله يظهر */
    #PartnerOrderModal.active {
        display: flex !important;
    }

.contact-modal {
    background: #fff;
    padding: 30px;
    border-radius: 20px;
    max-width: 550px;
    width: 100%;
    position: relative;
    box-shadow: 0 15px 50px rgba(0,0,0,0.4);
}

.contact-modal-close {
    position: absolute;
    top: 15px;
    left: 15px; 
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
}




.image-upload {
    max-width: -webkit-fill-available;
    margin-bottom: 30px;
}

.upload-box {
    border: 2px dashed #ced4da;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: .3s;
    cursor: pointer;
    position: relative;
}

    .upload-box.dragover {
        border-color: var(--primary-color);
        background-color: #e7f1ff;
    }

.upload-placeholder i {
    font-size: 40px;
    color: var(--primary-color);
}

.preview {
    width: 50%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.contact-form-section {
    padding: 5rem 2rem;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
    text-align: center;
}

.contact-form-container {
    max-width: 700px;
    margin: 0 auto;
}

.contact-form-header {
    margin-bottom: 2rem;
}

.contact-form-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.contact-form-subtitle {
    font-size: 1.1rem;
    color: #64748b;
}

.contact-form-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(26, 115, 167, 0.25);
}

    .contact-form-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 15px 40px rgba(26, 115, 167, 0.35);
    }

    .contact-form-btn svg {
        width: 20px;
        height: 20px;
        transition: transform 0.3s ease;
    }

    .contact-form-btn:hover svg {
        transform: translateX(-5px);
    }


.contact-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

    .contact-modal-overlay.active {
        opacity: 1;
        visibility: visible;
    }

.contact-modal {
    background: white;
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.contact-modal-overlay.active .contact-modal {
    transform: scale(1) translateY(0);
}

.contact-modal-close {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

    .contact-modal-close:hover {
        background: #fee2e2;
        color: #ef4444;
    }

    .contact-modal-close svg {
        width: 20px;
        height: 20px;
    }

.contact-modal-header {
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-bottom: 1px solid #f1f5f9;
}

.contact-modal-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(26, 115, 167, 0.1) 0%, rgba(36, 194, 236, 0.1) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

    .contact-modal-icon svg {
        width: 32px;
        height: 32px;
        color: var(--primary-color);
    }

.contact-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.contact-modal-header p {
    font-size: 0.95rem;
    color: #64748b;
}

.contact-modal-form {
    padding: 1.5rem 2rem 2rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

    .form-group label {
        display: block;
        font-size: 0.9rem;
        font-weight: 600;
        color: #374151;
        margin-bottom: 0.5rem;
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrapper svg {
        position: absolute;
        right: 1rem;
        width: 18px;
        height: 18px;
        color: #9ca3af;
        pointer-events: none;
    }

    .input-wrapper input {
        width: 100%;
        padding: 0.875rem 2.75rem 0.875rem 1rem;
        border: 2px solid #e5e7eb;
        border-radius: 12px;
        font-size: 0.95rem;
        font-family: inherit;
        transition: all 0.2s ease;
        background: #fafafa;
    }

        .input-wrapper input:focus {
            outline: none;
            border-color: var(--primary-color);
            background: white;
            box-shadow: 0 0 0 4px rgba(26, 115, 167, 0.1);
        }

.textarea-wrapper textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.95rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
    background: #fafafa;
}

    .textarea-wrapper textarea:focus {
        outline: none;
        border-color: var(--primary-color);
        background: white;
        box-shadow: 0 0 0 4px rgba(26, 115, 167, 0.1);
    }

.file-upload-wrapper {
    position: relative;
}

    .file-upload-wrapper input[type="file"] {
        position: absolute;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        opacity: 0;
        cursor: pointer;
        z-index: 2;
    }

.file-upload-content {
    border: 2px dashed #d1d5db;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.2s ease;
    background: #fafafa;
}

.file-upload-wrapper:hover .file-upload-content {
    border-color: var(--primary-color);
    background: rgba(26, 115, 167, 0.02);
}

.file-upload-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(26, 115, 167, 0.1) 0%, rgba(36, 194, 236, 0.1) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
}

    .file-upload-icon svg {
        width: 24px;
        height: 24px;
        color: var(--primary-color);
    }

.file-upload-text {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.25rem;
}

.file-upload-hint {
    font-size: 0.8rem;
    color: #9ca3af;
}

.image-preview {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--primary-color);
}

    .image-preview img {
        width: 100%;
        height: 150px;
        object-fit: cover;
    }

.remove-image {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: rgba(239, 68, 68, 0.9);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

    .remove-image:hover {
        background: #ef4444;
        transform: scale(1.05);
    }

    .remove-image svg {
        width: 16px;
        height: 16px;
    }

.submit-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
}

    .submit-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 30px rgba(26, 115, 167, 0.3);
    }

    .submit-btn svg {
        width: 18px;
        height: 18px;
    }

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }

    .contact-modal {
        max-width: 100%;
        margin: 0.5rem;
        border-radius: 20px;
    }

    .contact-modal-form {
        padding: 1rem 1.5rem 1.5rem;
    }

    .contact-form-title {
        font-size: 2rem;
    }
}
