/* ================= متغیرهای رنگی پلاگین ================= */
:root {
    --cf-primary-blue: #1d4ed8;
    --cf-primary-blue-hover: #1e3a8a;
    --cf-dark-bg-gradient: linear-gradient(135deg, #0a1148 0%, #14225e 100%);
    --cf-text-dark: #1e293b;
    --cf-text-gray: #64748b;
    --cf-text-light: #f8fafc;
    --cf-bg-light: #f1f5f9;
    --cf-border-color: #e2e8f0;
    --cf-success-green: #10b981;
}

/* ================= ریست استایل‌ها (مخصوص کانتینر پلاگین) ================= */
.cf-container, .cf-container * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Vazirmatn', Tahoma, sans-serif; /* فونت وزیرمتن با فالبک امن */
}

/* ================= کانتینر اصلی (پس‌زمینه سرمه‌ای) ================= */
.cf-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    background: var(--cf-dark-bg-gradient);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    direction: rtl; /* تضمین راست‌چین بودن درون ویجت المنتور */
}

/* افکت نوری پس‌زمینه */
.cf-container::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* ================= بخش اطلاعات (سمت راست) ================= */
.cf-info-section {
    padding: 60px;
    color: var(--cf-text-light);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.cf-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.cf-badge svg {
    width: 18px;
    height: 18px;
    fill: #3b82f6;
}

.cf-info-section h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.4;
    color: var(--cf-text-light);
}

.cf-info-section p {
    font-size: 1rem;
    color: #cbd5e1;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* باکس‌های تماس */
.cf-contact-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cf-contact-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 16px 24px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.cf-contact-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.cf-contact-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.cf-contact-label {
    font-size: 0.8rem;
    color: #94a3b8;
}

.cf-contact-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--cf-text-light);
    direction: ltr;
    text-align: right;
}

.cf-contact-item.whatsapp .cf-contact-value {
    direction: rtl;
}

.cf-contact-icon {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cf-contact-icon svg {
    width: 20px;
    height: 20px;
    fill: #cbd5e1;
    transition: fill 0.3s ease;
}

.cf-contact-item:hover .cf-contact-icon svg {
    fill: #3b82f6;
}

/* ================= انیمیشن‌های مینیمال آیکون‌ها ================= */
@keyframes cf-ring {
    0%, 100% { transform: rotate(0); }
    20% { transform: rotate(15deg); }
    40% { transform: rotate(-10deg); }
    60% { transform: rotate(5deg); }
    80% { transform: rotate(-5deg); }
}

@keyframes cf-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes cf-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.15); opacity: 0.7; }
}

.cf-icon-ring svg { animation: cf-ring 2s ease-in-out infinite; }
.cf-icon-float svg { animation: cf-float 3s ease-in-out infinite; }
.cf-icon-pulse svg { animation: cf-pulse 2.5s ease-in-out infinite; }

/* ================= بخش فرم (سمت چپ - کارت شناور) ================= */
.cf-form-section {
    padding: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

.cf-form-card {
    background: #ffffff;
    padding: 50px 40px;
    border-radius: 24px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cf-form-card h2 {
    font-size: 1.5rem;
    color: var(--cf-text-dark);
    margin-bottom: 8px;
    font-weight: 700;
}

.cf-form-card .cf-subtitle {
    font-size: 0.9rem;
    color: var(--cf-text-gray);
    margin-bottom: 32px;
}

/* گروه دکمه‌های انتخابی */
.cf-radio-group {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    background: var(--cf-bg-light);
    padding: 6px;
    border-radius: 12px;
}

.cf-radio-group input[type="radio"] {
    display: none;
}

.cf-radio-group label {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    font-size: 0.9rem;
    color: var(--cf-text-gray);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    white-space: nowrap;
}

.cf-radio-group input[type="radio"]:checked + label {
    background: var(--cf-primary-blue);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.3);
}

/* اینپوت شماره موبایل */
.cf-form-group {
    margin-bottom: 24px;
}

.cf-form-control {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--cf-border-color);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    color: var(--cf-text-dark);
    outline: none;
    transition: border-color 0.3s ease;
    direction: rtl;
}

.cf-form-control:focus {
    border-color: var(--cf-primary-blue);
}

.cf-form-control::placeholder {
    color: #94a3b8;
    text-align: right;
}

/* ================= دکمه ارسال و حالت‌های آن ================= */
.cf-submit-btn {
    width: 100%;
    background: var(--cf-primary-blue);
    color: #ffffff;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.cf-submit-btn:hover {
    background: var(--cf-primary-blue-hover);
    transform: translateY(-2px);
}

.cf-submit-btn:active {
    transform: translateY(0);
}

/* حالت در حال ارسال (غیرفعال) */
.cf-submit-btn:disabled {
    background-color: var(--cf-text-gray);
    cursor: not-allowed;
    transform: none;
    opacity: 0.8;
}

/* حالت موفقیت‌آمیز (توسط جاوااسکریپت اضافه می‌شود) */
.cf-submit-btn.cf-btn-success {
    background-color: var(--cf-success-green) !important;
}

.cf-form-footer {
    font-size: 0.75rem;
    color: #94a3b8;
    text-align: center;
    margin-top: 16px;
    line-height: 1.6;
}

/* ================= ریسپانسیو (موبایل و تبلت) ================= */
@media (max-width: 992px) {
    .cf-container {
        grid-template-columns: 1fr;
    }
    .cf-form-section {
        order: -1;
        padding: 30px 20px;
    }
    .cf-info-section {
        padding: 40px 30px;
    }
    .cf-form-card {
        padding: 30px 20px;
    }
}

/* تنظیمات مخصوص موبایل (حفظ دکمه‌ها در یک ردیف) */
@media (max-width: 576px) {
    .cf-info-section h1 {
        font-size: 1.8rem;
    }
    
    .cf-radio-group {
        gap: 4px;
        padding: 4px;
    }
    
    .cf-radio-group label {
        font-size: 0.75rem;
        padding: 10px 0;
    }
    
    .cf-form-card {
        padding: 24px 16px;
    }
}