/* ============================================================
   CALL REQUEST MODAL — فرم مشاوره تلفنی / تماس با ما
   Build: 2026-10-28
   ============================================================ */

.callreq-modal .modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 18px 50px rgba(15, 25, 65, 0.22);
}

.callreq-head {
    background: linear-gradient(135deg, #3e88c3 0%, #0694d2 100%);
    color: #fff;
    padding: 22px 24px 20px;
    text-align: center;
    position: relative;
}

.callreq-head h4 {
    color: #fff;
    font-size: 19px;
    font-weight: 800;
    margin: 0 0 6px;
}

.callreq-head p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    margin: 0;
    line-height: 1.8;
}

.callreq-close {
    position: absolute;
    top: 10px;
    left: 12px;
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

[dir="ltr"] .callreq-close {
    left: auto;
    right: 12px;
}

.callreq-close:hover {
    background: rgba(255, 255, 255, 0.32);
}

.callreq-body {
    padding: 22px 24px 24px;
    background: #fff;
}

.callreq-field {
    margin-bottom: 15px;
}

.callreq-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 7px;
}

.callreq-req {
    color: #dc2626;
    margin-right: 3px;
}

[dir="ltr"] .callreq-req {
    margin-right: 0;
    margin-left: 3px;
}

.callreq-input,
.callreq-textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: #1f2937;
    background: #fbfcfe;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.callreq-input::placeholder,
.callreq-textarea::placeholder {
    color: #9ca3af;
    font-size: 13px;
}

.callreq-input:focus,
.callreq-textarea:focus {
    border-color: #0694d2;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(6, 148, 210, 0.12);
}

.callreq-textarea {
    resize: vertical;
    min-height: 88px;
    line-height: 1.85;
}

.callreq-error {
    display: none;
    margin-top: 6px;
    font-size: 12.5px;
    color: #dc2626;
}

.callreq-field.is-invalid .callreq-input,
.callreq-field.is-invalid .callreq-textarea {
    border-color: #dc2626;
}

.callreq-field.is-invalid .callreq-error {
    display: block;
}

/* دکمه اصلی */
.callreq-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 13px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #0694d2, #3e88c3);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 8px 20px rgba(6, 148, 210, 0.26);
}

.callreq-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(6, 148, 210, 0.34);
    filter: brightness(1.05);
}

.callreq-btn:disabled {
    opacity: 0.7;
    cursor: default;
    transform: none;
}

/* پیام موفقیت */
.callreq-success {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    font-size: 13.5px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.callreq-success i {
    font-size: 17px;
}

/* فوتر اینستاگرام */
.callreq-insta {
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px dashed #e5e7eb;
    text-align: center;
}

.callreq-insta p {
    font-size: 12.5px;
    color: #6b7280;
    margin: 0 0 10px;
}

.callreq-insta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 20px;
    border-radius: 999px;
    background: #f1f3f5;
    border: 1px solid #e0e4e8;
    color: #4a5568;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.callreq-insta-btn:hover {
    background: #e9ecf0;
    color: #2d3748;
    border-color: #cfd6dd;
    text-decoration: none;
}

.callreq-insta-btn i {
    font-size: 14px;
    color: #8a94a6;
}

/* دکمه ثانویه سبک برای «درخواست تماس» در صفحه محصول */
.btn-call-request {
    display: block;
    width: 100%;
    text-align: center;
    padding: 9px 16px;
    margin-top: 10px;
    border: 1.5px solid #001e4c;
    border-radius: 6px;
    background: transparent;
    color: #001e4c;
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.btn-call-request:hover {
    background: #001e4c;
    color: #fff;
}

[dir="ltr"] .callreq-modal .modal-dialog {
    direction: ltr;
}


/* ============================================================
   فرم درون‌صفحه‌ای (صفحه تماس) — بدون حالت مدال
   ============================================================ */
.callreq-panel {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 34px rgba(15, 25, 65, 0.10);
    background: #fff;
    border: 1px solid #e9eef3;
}

.callreq-panel .callreq-head {
    padding: 20px 22px;
}

.callreq-panel .callreq-body {
    padding: 22px;
}

.callreq-panel .callreq-close {
    display: none;
}

/* فرم تماس: عرض منطقی داخل ستون */
.contact-form .callreq-panel,
.contact-form .callreq-form {
    direction: inherit;
}
