.key-features-img {
    max-width: 512px !important;
    height: 346.51px !important;
}

/* زر فتح النموذج */
.demo-open-btn {
    background-color: #0d7c66;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.demo-open-btn:hover {
    background-color: #0a5f4f;
}

/* المودال */
.demo-modal {
    display: none;
    /* مخفي افتراضياً */
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 40px 20px;
}

/* محتوى المودال */
.demo-modal-content {
    background-color: rgba(0, 0, 0, 0.75);
    margin: auto;
    padding: 20px;
    border-radius: 16px;
    max-width: 600px;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

/* زر الإغلاق */
.demo-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* أنيميشن */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}


.form-layout {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 28px;
    border-radius: 16px;
    background-color: rgba(0, 0, 0, 0.6);
    /* خلفية داكنة شفافة */
    backdrop-filter: blur(8px);
    max-width: 540px;
    margin: auto;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

h4.newsletter-sub-text {
    font-size: 15px;
    color: #d1d1d1;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.form-grid .form-field {
    flex: 1 1 45%;
    display: flex;
    flex-direction: column;
}

.form-grid .form-field.full-width {
    flex: 1 1 100%;
}

label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #ffffff;
    font-size: 14px;
}

input.w-input,
textarea.w-input {
    padding: 12px 14px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 14px;
    transition: border 0.3s ease, background-color 0.3s ease;
    outline: none;
}

input.w-input::placeholder,
textarea.w-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

input.w-input:focus,
textarea.w-input:focus {
    border-color: #0d7c66;
    background-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.2);
}

/* ✅ زر الإرسال - سطر منفصل وأولوية عالية */
.submit-container {
    flex: 1 1 100% !important;
    display: flex !important;
    justify-content: flex-end !important;
    margin-top: 8px;
}

.email-btn-demo.w-button {
    display: inline-block !important;
    background-color: #0d7c66;
    color: #fff;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: auto !important;
    max-width: 100%;
}

.email-btn-demo.w-button:hover {
    background-color: #0a5f4f;
}

/* ✅ رسائل التنبيه */
.alert-error {
    background-color: #ffecec;
    color: #d8000c;
    border-left: 4px solid #d8000c;
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
}

.alert-success {
    background-color: #e0f7ec;
    color: #0d7c66;
    border-left: 4px solid #0d7c66;
    padding: 16px;
    border-radius: 8px;
    margin-top: 12px;
}

/* ✅ متجاوب للجوال */
@media (max-width: 640px) {
    .form-grid .form-field {
        flex: 1 1 100% !important;
    }

    .submit-container {
        justify-content: center !important;
    }

    .email-btn-demo.w-button {
        width: 100% !important;
    }
}

.form-block-demo-request {
    width: 100% !important;
    max-width: 100% !important;
}

.demo-invite {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 8px;
}

.demo-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}

.demo-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    max-width: 250px;
}

.demo-open-btn {
    background-color: #0d7c66;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.demo-open-btn:hover {
    background-color: #0a5f4f;
}

.brand-image-block {
    display: flex;
    justify-content: center;   /* لتوسيط أفقياً */
    align-items: center;       /* لتوسيط عمودياً */
    height: 100%;              /* تأكد من أن له ارتفاع */
}
.partner-logo {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}