/* =========================================
   استایل اختصاصی لندینگ ثبت سفارش
   ========================================= */
.up-landing-wrapper { font-family: 'Vazirmatn', Tahoma, sans-serif; direction: rtl; background-color: #f8f9fa; padding-bottom: 60px; }

/* هیرو */
.up-landing-hero { background: linear-gradient(135deg, #1a2b4c 0%, #2c3e50 100%); color: #fff; padding: 60px 20px; text-align: center; position: relative; overflow: hidden; border-bottom: 4px solid #D4AF37; }
.up-landing-hero::after { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 60%); pointer-events: none; }
.up-landing-hero h1 { font-size: 42px; font-weight: 900; margin-bottom: 20px; position: relative; z-index: 1; line-height: 1.4; }
.up-landing-hero h1 span { color: #D4AF37; }

/* کانتینر و مراحل */
.up-landing-container { max-width: 1100px; margin: 40px auto 0; padding: 0 20px; position: relative; z-index: 2; }
.up-landing-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 50px; }
.up-step-card { background: #fff; border: 1px solid rgba(212, 175, 55, 0.2); border-radius: 20px; padding: 30px 20px; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); transition: 0.3s; }
.up-step-card:hover { transform: translateY(-5px); border-color: #D4AF37; box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15); }
.up-step-icon { width: 70px; height: 70px; background: linear-gradient(145deg, #1a2b4c, #2c3e50); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; color: #D4AF37; box-shadow: 0 8px 15px rgba(26, 43, 76, 0.3), inset 0 -3px 0 rgba(0,0,0,0.2), inset 0 3px 0 rgba(255,255,255,0.1); transition: 0.3s; }
.up-step-icon svg { width: 32px; height: 32px; stroke: #D4AF37; }
.up-step-card:hover .up-step-icon { transform: translateY(-3px); box-shadow: 0 12px 20px rgba(26, 43, 76, 0.4), inset 0 -3px 0 rgba(0,0,0,0.2), inset 0 3px 0 rgba(255,255,255,0.1); }
.up-step-card h3 { font-size: 18px; color: #1a2b4c; margin-bottom: 10px; font-weight: 800; }
.up-step-card p { font-size: 13px; color: #777; line-height: 1.6; margin: 0; }

/* فرم */
.up-landing-form-section { background: #fff; border-radius: 20px; padding: 30px; box-shadow: 0 10px 40px rgba(0,0,0,0.05); border-top: 4px solid #1a2b4c; margin-bottom: 50px; }
.up-landing-form-section h2 { text-align: center; color: #1a2b4c; margin-bottom: 30px; font-weight: 900; font-size: 28px; }

/* مزایا */
.up-landing-features h2 { text-align: center; color: #1a2b4c; font-weight: 900; margin-bottom: 30px; }
.up-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.up-feature-box { background: #fff; padding: 20px; border-radius: 12px; border-right: 4px solid #D4AF37; box-shadow: 0 5px 20px rgba(0,0,0,0.04); }
.up-feature-box h4 { color: #1a2b4c; margin-bottom: 10px; }
.up-feature-box p { color: #777; font-size: 13px; margin: 0; }

/* =========================================
   استایل کارت‌های داینامیک محتوا
   ========================================= */
.up-landing-dynamic-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.up-content-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #eaeaea;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.up-content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(212, 175, 55, 0.15);
    border-color: #D4AF37;
}

.up-content-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.up-content-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.up-content-card:hover .up-content-card-img img {
    transform: scale(1.05);
}

.up-content-card-body {
    padding: 25px;
    color: #444;
    font-size: 15px;
    line-height: 1.8;
    text-align: justify;
    flex: 1;
}

.up-content-card-body h1, 
.up-content-card-body h2, 
.up-content-card-body h3, 
.up-content-card-body h4 {
    color: #1a2b4c;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 15px;
}

.up-content-card-body p {
    margin-bottom: 15px;
}
.up-content-card-body p:last-child {
    margin-bottom: 0;
}

.up-content-card-body a {
    color: #b8972f;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dashed #b8972f;
    transition: 0.2s;
}

.up-content-card-body a:hover {
    color: #1a2b4c;
    border-bottom-color: #1a2b4c;
}

/* اگر کارتی عکس نداشت، متن آن تمام عرض را بگیرد */
.up-content-card.no-image .up-content-card-body {
    padding: 35px;
}

/* =========================================
   ریسپانسیو
   ========================================= */
@media (max-width: 900px) {
    .up-landing-hero { padding-top: 70px; padding-bottom: 40px; }
    .up-landing-hero h1 { font-size: 32px; }
    .up-features-grid { grid-template-columns: 1fr; }
    .up-landing-steps { grid-template-columns: repeat(2, 1fr); gap: 15px; }
    .up-step-card { padding: 20px 10px; }
    .up-step-icon { width: 55px; height: 55px; margin-bottom: 15px; }
    .up-step-icon svg { width: 24px; height: 24px; }
    .up-step-card h3 { font-size: 15px; margin-bottom: 5px; }
    .up-step-card p { font-size: 12px; }
}

@media (max-width: 600px) {
    .up-landing-hero { padding-top: 80px; padding-bottom: 40px; }
    .up-landing-hero h1 { font-size: 26px; }
    .up-landing-hero p { font-size: 15px; }
    .up-landing-form-section { padding: 20px 15px; }
    .up-landing-dynamic-content { grid-template-columns: 1fr; }
}





/* =========================================
   استایل جدید: عکس بیرون کارت + متن داخل کارت (چیدمان مجله‌ای)
   ========================================= */
.up-landing-dynamic-rows {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-bottom: 60px;
}

.up-dynamic-row {
    display: flex;
    align-items: center;
    gap: 40px;
    background: transparent;
}

/* ردیف‌های زوج (عکس سمت چپ، متن سمت راست) - برای زیبایی بصری */
.up-dynamic-row.row-reverse {
    flex-direction: row-reverse;
}

/* ستون عکس (بزرگ، بدون پس‌زمینه کارت) */
.up-dynamic-image {
    flex: 0 0 40%; /* عکس ۴۰ درصد عرض را می‌گیرد */
    display: flex;
    justify-content: center;
    align-items: center;
}

.up-dynamic-image img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain; /* نمایش کامل عکس بدون بریدگی */
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.12); /* سایه شیک برای عکس */
    border: 4px solid #fff;
}

/* ستون متن (کارت سفید) */
.up-dynamic-card {
    flex: 1;
    background: #fff;
    padding: 35px 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    border: 1px solid #eaeaea;
    border-right: 5px solid #D4AF37; /* خط طلایی */
    color: #444;
    font-size: 15px;
    line-height: 1.9;
    text-align: justify;
}

/* استایل تگ‌ها داخل کارت متن */
.up-dynamic-card h1, 
.up-dynamic-card h2, 
.up-dynamic-card h3, 
.up-dynamic-card h4 {
    color: #1a2b4c;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 15px;
}

.up-dynamic-card p {
    margin-bottom: 15px;
}
.up-dynamic-card p:last-child {
    margin-bottom: 0;
}

.up-dynamic-card a {
    color: #b8972f;
    font-weight: bold;
    text-decoration: none;
    border-bottom: 1px dashed #b8972f;
    transition: 0.2s;
}

.up-dynamic-card a:hover {
    color: #1a2b4c;
    border-bottom-color: #1a2b4c;
}

/* اگر کارتی عکس نداشت، متن تمام عرض شود */
.up-dynamic-row:not(.has-image) .up-dynamic-card {
    width: 100%;
    flex: 1 1 100%;
}

/* ریسپانسیو موبایل و تبلت */
@media (max-width: 900px) {
    .up-dynamic-row, 
    .up-dynamic-row.row-reverse {
        flex-direction: column; /* در موبایل همه زیر هم */
        gap: 25px;
    }
    
    .up-dynamic-image {
        flex: 1 1 100%;
        width: 100%;
    }
    
    .up-dynamic-card {
        padding: 25px;
        width: 100%;
    }
}