/* ======================================= */
/* النافذة المنبثقة بكل تفاصيلها (Modal Full) */
/* ======================================= */
.quote-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(13, 19, 42, 0.7);
    display: none; justify-content: center; align-items: center;
    z-index: 9999; backdrop-filter: blur(5px);
}
.quote-modal-box {
    background: #ffffff; width: 95%; max-width: 850px;
    border-radius: 20px; padding: 40px 50px; 
    max-height: 90vh; overflow-y: auto;
    font-family: 'DM Sans', sans-serif;
}

/* الرأس */
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.modal-header h2 { font-family: 'DM Serif Display', serif; font-size: 32px; color: #1a1a24; margin: 0 0 5px 0; }
.modal-header p { color: #8a8d9e; font-size: 15px; margin: 0; }
.close-modal { background: #f4f5f8; border: none; width: 35px; height: 35px; border-radius: 50%; font-size: 18px; color: #888; cursor: pointer; transition: 0.3s; }
.close-modal:hover { background: #e0e2e8; color: #333; }

/* شريط التقدم */
.modal-progress { display: flex; align-items: center; margin-bottom: 40px; padding-bottom: 25px; border-bottom: 1px solid #f0f0f0; }
.progress-step { display: flex; align-items: center; gap: 8px; color: #b0b4c4; font-size: 13px; font-weight: 500; }
.step-circle { width: 24px; height: 24px; border-radius: 50%; background: #f0f2f5; display: flex; justify-content: center; align-items: center; font-size: 12px; }
.progress-step.active { color: #1a1a24; }
.progress-step.active .step-circle { background: #d32f2f; color: #fff; }
.progress-step.completed { color: #1a1a24; }
.progress-step.completed .step-circle { background: #d32f2f; color: #fff; }
.progress-line { flex-grow: 1; height: 2px; background: #f0f2f5; margin: 0 15px; transition: 0.3s; }
.progress-line.active { background: #d32f2f; }

/* العناوين داخل الخطوات */
.step-content { display: none; animation: fadeIn 0.4s; }
.step-content.active { display: block; }
.step-content h3 { font-size: 20px; color: #1a1a24; margin: 0 0 5px 0; font-weight: bold; }
.step-subtitle { color: #b0b4c4; font-size: 14px; margin: 0 0 20px 0; }
.mt-4 { margin-top: 30px; }
.mt-3 { margin-top: 20px; }

/* شبكات الاختيار (Cards) */
.services-grid { display: grid;  gap: 15px; }
.budget-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.timeline-grid { display: grid; grid-template-columns: 1fr; gap: 15px; }

.selectable-card input { display: none; }
.selectable-card .card-content { display: flex; align-items: center; padding: 18px 20px; border: 1px solid #eef0f4; border-radius: 10px; font-size: 14px; font-weight: 600; color: #4a4d5e; cursor: pointer; transition: 0.3s; background: #fafbfc; }
.selectable-card input:checked + .card-content { border-color: #d32f2f; background-color: #fff; color: #1a1a24; box-shadow: 0 4px 15px rgba(211,47,47,0.08); }

/* الدائرة في خطوة الوقت (Timeline) */
.timeline-card .card-content { justify-content: flex-start; gap: 15px; }
.radio-circle { width: 18px; height: 18px; border: 2px solid #ddd; border-radius: 50%; display: inline-block; }
.selectable-card input:checked + .card-content .radio-circle { border: 5px solid #d32f2f; }

/* الفورم (الخطوة 3) */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.input-group label { display: block; font-size: 11px; font-weight: bold; color: #6b7083; margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.5px; }
.input-group input, .input-group textarea { width: 100%; padding: 15px; border: 1px solid #eef0f4; border-radius: 8px; font-family: 'DM Sans', sans-serif; font-size: 14px; outline: none; transition: 0.3s; }
.input-group input:focus, .input-group textarea:focus { border-color: #d32f2f; }
.phone-inputs { display: grid; grid-template-columns: 80px 1fr; gap: 10px; }

/* خطوة المراجعة (الخطوة 4) */
.review-card { border: 1px solid #eef0f4; border-radius: 12px; padding: 25px; margin-bottom: 15px; }
.review-header { font-size: 12px; font-weight: bold; color: #8a8d9e; margin-bottom: 15px; letter-spacing: 1px; }
.review-tags { display: flex; gap: 10px; flex-wrap: wrap; }
.tag-red { background: #fff0f0; color: #d32f2f; padding: 8px 15px; border-radius: 20px; font-size: 13px; font-weight: bold; }
.tag-gray { background: #f4f5f8; color: #1a1a24; padding: 8px 15px; border-radius: 20px; font-size: 13px; font-weight: bold; }
.text-red { color: #d32f2f; }
.review-info p { margin: 0 0 5px 0; font-size: 15px; }

/* خطوة النجاح (الخطوة 5) */
.text-center { text-align: center; }
.success-icon { font-size: 60px; margin-bottom: 10px; }
.success-desc { color: #777; font-size: 15px; line-height: 1.6; max-width: 500px; margin: 0 auto 30px auto; }
.contact-card-pink { background: #fff4f4; border: 1px solid #ffebeb; border-radius: 12px; padding: 20px; display: flex; align-items: center; justify-content: center; gap: 15px; font-size: 14px; }
.phone-icon { font-size: 24px; }
.w-100 { width: 100%; padding: 16px; font-size: 16px; border-radius: 10px; }

/* أزرار الفوتر */
.modal-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; }
.btn-cancel { background: #ffffff; border: 1px solid #eef0f4; color: #666; padding: 14px 28px; border-radius: 8px; font-size: 15px; font-weight: bold; cursor: pointer; transition: 0.3s; }
.btn-cancel:hover { background: #f4f5f8; }
.step-indicator { color: #b0b4c4; font-size: 14px; font-weight: 500; }
/* ======================================= */
/* التنسيق الأساسي للأزرار */
/* ======================================= */
.btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 28px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

/* لون الزر الأحمر */
.btn-red {
    background-color: #d32f2f; /* بناءً على درجة اللون في صورة التصميم */
    color: #ffffff;
}

.btn-red:hover {
    background-color: #e57373;
    transform: translateY(-2px);
}
/* استجابة الموبايل */
@media (max-width: 768px) {
    .services-grid, .form-grid-2, .budget-grid { grid-template-columns: 1fr; }
    .quote-modal-box { padding: 30px 20px; }
    .modal-progress span { display: none; /* إخفاء النص في شريط التقدم في الموبايل */ }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }