/* =================================================================
   1. Global Styles: Energetic Orange & Dark Theme v3
   ================================================================= */
@font-face {
    font-family: "IRANYekan";
    /* Changed name for clarity */
    src: url("../fonts/YekanBakhFaNum-SemiBold.woff") format("woff");
}

:root {
    --primary-color: #ff6600;
    /* Energetic Orange */
    --primary-rgb: 255, 102, 0;
    --smart-color: #00ff89;
    /* A vibrant green for "smart" features */
    --traditional-color: #ff4d4d;
    /* A soft red for "traditional" features */
    --dark-bg: #101010;
    --dark-card: #1e1e1e;
    --light-text: #ffffff;
    --muted-text: #e5e5e5;
    --font-family-base: "IRANYekan", sans-serif;
    --border-radius: 0.75rem;
    --transition-speed: 0.4s ease;
}

body {
    font-family: var(--font-family-base);
    line-height: 1.8;
    /* <<< این خط را از 1.8 به 1.6 تغییر دهید */
    color: var(--muted-text);
    background-color: var(--dark-bg);
    text-align: right;
    position: relative;
    padding-top: 80px;
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand {
    font-weight: 500;
    line-height: 1.6;
    color: var(--light-text);
}

p,
li,
a,
span,
.lead,
.card-text,
.hero-subtitle,
.author,
.step-title {
    /* تضمین می‌کند که تمام متون اصلی و پاراگراف‌ها فاصله خط ۱.۶ را بگیرند */
    line-height: 1.8;
}

section {
    direction: rtl;
    padding: 50px 0;
    overflow: hidden;
    position: relative;
    z-index: 2;
    background-color: var(--dark-bg);
}

.section-title h2 {
    font-size: calc(1.25rem + 1vw);
    font-weight: 800;
}

.section-title .lead {
    color: var(--light-text);
    max-width: 700px;
    margin: 2rem auto 1.5rem auto;
}

.btn {
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 50px;
    transition: var(--transition-speed);
    border-width: 2px;
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 0 20px rgba(var(--primary-rgb), 0.4);
}

.btn-primary:hover {
    background-color: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.6);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light:hover {
    background-color: #fff;
    color: var(--dark-bg);
}

/* =================================================================
   2. Header & Navigation (Auto-Hiding)
   ================================================================= */
/* ======================= Premium Hero Elements ======================= */
.text-gradient-animated {
    background: linear-gradient(90deg, #ff6600, #ffcc00, #ff8800, #ff6600);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 4s linear infinite;
    display: inline-block;
}

@keyframes gradientFlow {
    to {
        background-position: 200% center;
    }
}

.hero-title {
    line-height: 1.3;
    letter-spacing: -1px;
}

/* Benefit Items */
.hero-benefits {
    max-width: 800px;
    margin: 0 auto;
}

.benefit-item {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 102, 0, 0.25);
    border-radius: 15px;
    padding: 25px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
    text-align: right;
}

.benefit-item:hover {
    background: rgba(255, 102, 0, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 102, 0, 0.25);
}

.benefit-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    flex-shrink: 0;
    filter: drop-shadow(0 0 10px rgba(255, 102, 0, 0.5));
}

.benefit-item span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.6;
}

/* CTA Buttons Enhancement */
.hero-cta-primary {
    background: linear-gradient(135deg, var(--primary-color), #ff8c00);
    border: none;
    box-shadow: 0 10px 40px rgba(255, 102, 0, 0.4);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.hero-cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero-cta-primary:hover::before {
    left: 100%;
}

.hero-cta-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 50px rgba(255, 102, 0, 0.6);
}

.hero-cta-secondary {
    border: 2px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
}

.hero-cta-secondary:hover {
    background: #fff;
    color: var(--dark-bg);
    border-color: #fff;
    transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem !important;
    }

    .benefit-item {
        padding: 20px 15px;
    }

    .benefit-icon {
        font-size: 1.8rem;
    }

    .benefit-item span {
        font-size: 1rem;
    }
}

#main-nav {
    background: rgba(18, 18, 18, 0.7);
    backdrop-filter: blur(15px);
    padding: 0.75rem 0;
    transition: top 0.4s ease-in-out;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#main-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    transition: color var(--transition-speed);
}

#main-nav .nav-link:hover {
    color: var(--primary-color);
}

/* Navbar Logo */
.navbar-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

@media (max-width: 768px) {
    .navbar-logo {
        height: 32px;
    }
}

/* =================================================================
   3. Hero Section (Cinematic Glassmorphism)
   ================================================================= */
.hero-section-v3 {
    min-height: 53vh;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background-animation {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150vmax;
    height: 150vmax;
    background: radial-gradient(circle,
            rgba(var(--primary-rgb), 0.15) 0%,
            rgba(var(--primary-rgb), 0) 60%);
    transform: translate(-50%, -50%);
    animation: pulse 8s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
}

.hero-glass-card {
    background: rgb(28, 28, 28);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 3rem;
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    color: #fff;
    text-shadow: 0 0 20px rgba(var(--primary-rgb), 0.5);
    font-size: calc(1.5rem + 0.5vw);
}

.hero-subtitle {
    color: #eee;
    font-size: calc(18px + 0.2vw);
}

.hero-buttons .btn {
    margin: 0.5rem;
}

/* Mobile Button Styles */
@media (max-width: 767.98px) {
    .hero-glass-card {
        padding: 2rem;
    }

    .hero-buttons {
        display: flex;
        flex-direction: column;
    }

    .hero-buttons .btn {
        width: 100%;
        padding: 12px 12px;
        font-size: 0.95rem;
    }
}

/* =================================================================
   4. Services, Portfolio, Blog, Testimonials (Unified Card Style)
   ================================================================= */
.services-section,
.portfolio-section,
.blog-section,
.testimonials-section,
.process-section {
    background-color: var(--dark-card);
    padding-top: 5px;
}

.service-card,
.testimonial-card,
.blog-card,
.process-step,
.comparison-card {
    background-color: var(--dark-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition-speed);
    height: 100%;
}

.service-card:hover,
.blog-card:hover,
.process-step:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
}

.service-card .icon {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.blog-card,
.service-card,
.process-step {
    display: flex;
    flex-direction: column;
}

.blog-card .card-body,
.service-card .card-body {
    flex-grow: 1;
}

.blog-card .card-title a {
    color: var(--light-text);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.blog-card .card-title a:hover {
    color: var(--primary-color);
}

/* Portfolio Specific */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    cursor: pointer;
}

.portfolio-card img {
    transition: transform 0.6s ease;
}

.portfolio-card:hover img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #fff;
    opacity: 0;
    transition: opacity var(--transition-speed);
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

/* Process Specific */
.process-step .step-number {
    width: 50px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: var(--transition-speed);
}

.process-step:hover .step-number {
    background-color: var(--primary-color);
    color: #fff;
}

/* Testimonial Specific */
.testimonial-card {
    border-left: 4px solid var(--primary-color);
}

.testimonial-card .author {
    color: var(--light-text);
    font-weight: 600;
    margin-top: 1rem;
}

/* =================================================================
   5. Why Smart Design Section (NEW)
   ================================================================= */
.comparison-card {
    padding: 2rem;
}

.comparison-card .card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.comparison-card ul li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.comparison-card ul li i {
    font-size: 1.1rem;
    width: 30px;
    /* For alignment */
}

.comparison-card.traditional .card-title,
.comparison-card.traditional ul li i {
    color: var(--traditional-color);
}

.comparison-card.smart {
    border: 2px solid var(--primary-color);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.3);
}

.comparison-card.smart .card-title,
.comparison-card.smart ul li i {
    color: var(--smart-color);
}

/* =================================================================
   6. Contact & Footer
   ================================================================= */
.contact-section {
    padding: 3rem 0;
}

.contact-box {
    background: linear-gradient(45deg, var(--primary-color), #ff8c00);
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
    border-radius: var(--border-radius);
}

.contact-box .btn-light {
    background-color: #fff;
    color: var(--primary-color);
    font-weight: 700;
}

.contact-box .btn-light:hover {
    background-color: var(--dark-bg);
    color: #fff;
}

.footer-section {
    padding: 4rem 0;
    background-color: var(--dark-bg);
    color: var(--muted-text);
}

/* Responsive Fix for Navbar Padding */
@media (max-width: 991.98px) {
    body {
        padding-top: 70px;
    }
}

.list-unstyled {
    padding-right: 0 !important;
}

.portfolio-card .portfolio-button {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    padding: 8px 20px;
    font-size: 0.85rem;
    border-radius: 30px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    z-index: 3;
    /* To be on top of the overlay */
}

.portfolio-card:hover .portfolio-button {
    opacity: 1;
    transform: translateY(0);
}

/* Modal Customization */
.modal-content {
    background-color: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

.modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-title {
    color: var(--light-text);
}

.btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    /* Makes the close button white */
}

.portfolio-card .portfolio-button.visible {
    opacity: 1;
    transform: translateY(0);
    /* Adding a subtle background to make text more readable */
    background-color: rgba(var(--primary-rgb), 0.9);
    border-color: rgba(255, 255, 255, 0.7);
    color: #fff;
}

.portfolio-card:hover .portfolio-button.visible {
    background-color: var(--primary-color);
    border-color: #fff;
    transform: scale(1.05);
    /* Add a little pop on hover */
}

/* =================================================================
   Testimonials Section v5 - Foolproof CSS Horizontal Scroll
   ================================================================= */
.testimonial-slider {
    /* This is the container that will have the scrollbar */
    display: flex;
    overflow-x: auto;

    /* This makes the scrolling smooth on touch devices like iOS */
    -webkit-overflow-scrolling: touch;

    /* This adds a nice snapping effect */
    scroll-snap-type: x mandatory;

    /* Adds some padding so cards don't touch the edges */
    padding: 1.5rem 0;

    /* Hide the scrollbar visually */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hiding scrollbar for Chrome, Safari */
.testimonial-slider::-webkit-scrollbar {
    display: none;
}

.testimonial-track {
    /* This is the container for all the items, it will be very wide */
    display: flex;
    flex-wrap: nowrap;
    gap: 1.5rem;
    /* The space between cards */
}

.testimonial-item-v2 {
    /* This is each individual card container */
    flex-shrink: 0;
    /* Prevents items from shrinking */
    width: 90vw;
    /* On mobile, each item takes up 90% of the viewport width */
    max-width: 400px;
    /* But it won't get bigger than 400px on desktop */
    scroll-snap-align: start;
    /* Each item will snap to the start of the container */
}

.title_style {
    background: #2f2f2f;
    border-radius: 10px;
    box-shadow: 1px 1px 5px #393939;
    padding: 10px 0;
}

.lead {
    font-size: calc(1rem + 0.2vw);
}

/* =================================================================
   Blog Section v2 - Modern Card with Orange Accent
   ================================================================= */
.blog-card-v2 {
    background-color: var(--dark-card);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform var(--transition-speed),
        box-shadow var(--transition-speed);
    display: flex;
    flex-direction: column;
    border-left: 4px solid transparent;
    /* The accent bar placeholder */
}

.blog-card-v2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-left-color: var(--primary-color);
    /* The orange accent appears on hover */
}

.blog-card-image-wrapper {
    overflow: hidden;
    height: 200px;
    /* Fixed height for all images */
}

.blog-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Ensures images fill the space without distortion */
    transition: transform 0.5s ease;
}

.blog-card-v2:hover .blog-card-image-wrapper img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    /* This makes the content area fill the remaining space */
}

.blog-card-content .card-title {
    flex-grow: 1;
    /* Pushes the "read more" link to the bottom */
}

.blog-card-content .card-title a {
    color: var(--light-text);
    text-decoration: none;
    transition: color var(--transition-speed);
}

.blog-card-content .card-title a:hover {
    color: var(--primary-color);
}

.read-more-link {
    color: var(--muted-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--transition-speed);
    align-self: flex-start;
    /* Aligns link to the start (right in RTL) */
    margin-top: 1rem;
}

.read-more-link:hover {
    color: var(--primary-color);
}

.read-more-link i {
    font-size: 0.8rem;
    margin-right: 0.5rem;
    transition: transform 0.3s ease;
}

.read-more-link:hover i {
    transform: translateX(-5px);
}

/* ======================= AI Consultant Modal Styles (V8 - FOOLPROOF LAYOUT) ======================= */
.consultant-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    direction: rtl;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.consultant-modal-overlay.is-visible {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}

.consultant-modal {
    background: var(--dark-card, #1e1e1e);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--muted-text, #c5c5c5);
    width: 100%;
    max-width: 650px;
    height: 90vh;
    max-height: 700px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.consultant-modal-overlay.is-visible .consultant-modal {
    opacity: 1;
    transform: scale(1);
}

/* <<-- بازطراحی نهایی و قطعی هدر با ساختار جدید -->> */
.modal-top-bar {
    position: relative;
    text-align: center;
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

#modal-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
}

.modal-close-btn {
    position: absolute;
    top: 50%;
    left: 1.25rem;
    /* دکمه در سمت چپ قرار میگیرد */
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #888;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #fff;
}

.progress-container {
    width: 100%;
    height: 4px;
    background-color: transparent;
    flex-shrink: 0;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color, #ff6600);
    border-radius: 0;
    width: 0%;
    transition: width 0.5s ease-out;
}

.modal-content-wrapper {
    overflow-y: auto;
    flex-grow: 1;
    padding: 0 1rem;
}

.modal-body,
.modal-options-container,
.modal-submit-container,
hr.question-separator {
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.content-swapping .modal-body,
.content-swapping .modal-options-container,
.content-swapping .modal-submit-container,
.content-swapping hr.question-separator {
    opacity: 0;
    transform: translateY(10px);
}

#modal-question-text {
    font-size: calc(18px + 0.2vw);
    color: #ff6b09;
    font-weight: 500;
    background: #0c0c0c;
    border-radius: 16px;
    line-height: 1.7;
    margin-top: 9px;
    box-shadow: 2px 2px 5px #6f6f6f75;
    text-align: center;
    padding: 1.5rem 0.5rem 1rem 0.5rem;
}

hr.question-separator {
    display: block;
    width: 80%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 0;
    margin: 0.5rem auto 1.5rem auto;
}

.modal-options-container {
    padding: 0 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.option-button {
    background-color: #2f2f2f;
    border: 1px solid #101010;
    color: var(--muted-text);
    border-radius: 20px;
    padding: 0.6rem 0.5rem;
    margin: 3px;
    font-size: calc(13px + 0.2vw);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease-out;
    min-width: 80%;
    box-shadow: 3px 3px 4px #000000;
}

.option-button:hover {
    background-color: #444;
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: #fff;
}

.option-button.selected {
    background-color: var(--primary-color);
    color: #ffffff;
    border-color: #ff8c00;
    font-weight: 700;
}

.modal-submit-container {
    padding: 1rem;
    text-align: center;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.submit-answer-btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-answer-btn:hover {
    background-color: var(--primary-color);
    color: #fff;
}

@media (max-width: 768px) {
    .consultant-modal {
        height: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .modal-top-bar {
        padding: 1.25rem 1rem;
    }

    #modal-title {
        font-size: 1.2rem;
    }

    .modal-close-btn {
        left: 1rem;
    }
}

.text-input-area {
    /* --- ظاهر اصلی --- */
    background-color: #2f2f2f;
    /* پس‌زمینه تیره‌تر برای تمایز */
    color: var(--muted-text, #c5c5c5);
    /* رنگ متن */
    width: 100%;
    min-height: 150px;
    /* حداقل ارتفاع مناسب */
    padding: 1rem;
    /* فاصله داخلی */

    /* --- حاشیه و گوشه‌ها --- */
    border-radius: 12px;
    border: 2px solid #555;
    /* حاشیه مشخص‌تر */

    /* --- فونت و متن --- */
    font-family: inherit;
    /* ارث‌بری فونت اصلی سایت */
    font-size: 1rem;
    line-height: 1.7;

    /* --- رفتار و انیمیشن --- */
    resize: vertical;
    /* اجازه تغییر ارتفاع فقط به صورت عمودی */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* --- استایل هنگام فوکوس (وقتی کاربر داخل آن کلیک می‌کند) --- */
.text-input-area:focus {
    outline: none;
    /* حذف حاشیه پیش‌فرض مرورگر */
    border-color: var(--primary-color, #ff6600);
    /* حاشیه به رنگ اصلی تم */
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.25);
    /* ایجاد یک هاله نورانی */
}

/* --- استایل متن راهنما (Placeholder) --- */
.text-input-area::placeholder {
    color: #777;
    font-style: italic;
    opacity: 1;
    /* اطمینان از نمایش در همه مرورگرها */
}

.text-input-area::-webkit-input-placeholder {
    /* برای مرورگرهای Chrome, Safari */
    color: #777;
    font-style: italic;
}

.text-input-area::-moz-placeholder {
    /* برای مرورگر Firefox */
    color: #777;
    font-style: italic;
    opacity: 1;
}

.text-input-area:-ms-input-placeholder {
    /* برای مرورگر Internet Explorer */
    color: #777;
    font-style: italic;
}

.loading-message-container {
    width: 100%;
    text-align: center;
    padding: 3rem 0;
    position: relative;
    /* برای قرارگیری متن‌ها روی هم */
    min-height: 100px;
    /* ایجاد فضای کافی برای متن و اسپینر */
}

.loading-message-container .spinner-border {
    color: var(--primary-color, #ff6600) !important;
    width: 3.5rem !important;
    height: 3.5rem !important;
    border-width: 0.28em !important;
    margin-bottom: 1.5rem;
    /* فاصله از متن */
}

/* <<-- حذف کامل انیمیشن خودکار از اینجا -->> */
.loading-message-container .loading-text {
    color: #f5f5f5;
    font-weight: 600;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    right: 0;
    top: 6.5rem;
    opacity: 0;
    /* در حالت اولیه مخفی */
    transition: opacity 0.5s ease-in-out;
    /* فقط انیمیشن نرم برای ظاهر و پنهان شدن */
}

/* کلاسی که با جاوااسکریپت برای نمایش متن اضافه می‌شود */
.loading-message-container .loading-text.is-visible {
    opacity: 1;
}



/* ۳. اصلاح رنگ خط جداکننده زیر سوال */
hr.question-separator {
    background-color: rgba(255, 255, 255, 0.4) !important;
    /* سفیدتر و واضح‌تر کردن خط */
}


/* ======================= Option Button & Scrollbar Polish ======================= */

/* --- بخش اول: اصلاح عرض دکمه‌ها --- */

/* در حالت دسکتاپ، دکمه‌ها عرض خودکار دارند */
.option-button {
    flex-grow: 1;
    /* اجازه می‌دهد دکمه‌ها در یک سطر فضا را پر کنند */
    flex-basis: 40%;
    /* هر دکمه حداقل ۴۰٪ فضا می‌گیرد تا مرتب در دو ستون قرار گیرند */
    text-align: center;
}

/* فقط روی گوشی، دکمه‌ها عرض کامل می‌گیرند */
@media (max-width: 768px) {
    .option-button {
        flex-basis: 95%;
        /* عرض هر دکمه ۹۵٪ می‌شود */
    }
}


/* --- بخش دوم: استایل سفارشی اسکرول بار --- */

/* برای مرورگرهای WebKit (Chrome, Safari, Edge) */
.modal-content-wrapper::-webkit-scrollbar {
    width: 6px;
    /* عرض اسکرول بار */
}

.modal-content-wrapper::-webkit-scrollbar-track {
    background: #2f2f2f;
    /* رنگ پس‌زمینه اسکرول بار */
}

.modal-content-wrapper::-webkit-scrollbar-thumb {
    background-color: var(--primary-color, #ff6600);
    /* رنگ نارنجی برای خود اسکرول */
    border-radius: 10px;
    /* گرد کردن گوشه‌ها */
    border: 1px solid #2f2f2f;
}

/* برای مرورگر Firefox */
.modal-content-wrapper {
    scrollbar-width: thin;
    /* باریک کردن اسکرول بار */
    scrollbar-color: var(--primary-color, #ff6600) #2f2f2f;
    /* رنگ اسکرول و پس‌زمینه آن */
}

/* --- اصلاح نهایی رنگ Placeholder در فیلد شماره تماس --- */

.modal-submit-container .form-control::placeholder {
    color: #888 !important;
    /* رنگ طوسی برای متن راهنما */
    opacity: 1;
}

.modal-submit-container .form-control::-webkit-input-placeholder {
    color: #888 !important;
}

.modal-submit-container .form-control::-moz-placeholder {
    color: #888 !important;
    opacity: 1;
}

.modal-submit-container .form-control:-ms-input-placeholder {
    color: #888 !important;
}

/* --- استایل جداکننده "یا" در صفحه نتیجه --- */
.separator-or {
    display: flex;
    align-items: center;
    text-align: center;
    color: #888;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

.separator-or::before,
.separator-or::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.separator-or:not(:empty)::before {
    margin-left: .5em;
    /* RTL support */
}

.separator-or:not(:empty)::after {
    margin-right: .5em;
    /* RTL support */
}


/* ======================= Final CTA Animation Styles ======================= */




.modal-submit-container {
    padding: 1rem;
    text-align: center;
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: #373737;

    /* <<-- حالت پیش‌فرض: قابل مشاهده -->> */
    transform: translateY(0);
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

/* <<-- کلاس جدید فقط برای زمانی که میخواهیم انیمیشن اجرا شود -->> */
.modal-submit-container.prepare-for-reveal {
    transform: translateY(100%);
}

.form-control:focus {
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.25) !important;
    border-color: var(--primary-color, #ff6600) !important;
}


/* --- استایل قیمت با تخفیف در صفحه نتیجه --- */
.price-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.original-price {
    font-size: 1.4rem;
    color: #ef1414;
    text-decoration: line-through;
    margin-right: 1rem;
}

.discounted-price {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--smart-color, #00ff89);
    /* رنگ سبز برای تاکید */
}

/* --- استایل متن CRM رایگان در صفحه نتیجه --- */
.discounted-price-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.crm-bonus {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--light-text, #fff);
    background-color: rgba(var(--primary-rgb), 0.2);
    /* پس‌زمینه نارنجی شفاف */
    border: 1px solid rgba(var(--primary-rgb), 0.5);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    margin-top: 0.75rem;
}

.min-vh-90{
  min-height: 75vh !important;
};

