.contact-hero {
    padding: 80px 0;
    background: #b0f8f1;
}

.contact-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.contact-text {
    flex: 1;
    text-align: center;
}

.contact-text h1 {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
}

.contact-text p {
    color: #555;
    line-height: 1.8;
}

.contact-image {
    flex: 1;
    text-align: center;
}

.contact-image img {
    max-width: 60%;
}

.contact-boxes {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 60px 100px 60px 0;
}

.info-box {
    flex: 1;
    background: white;
    padding: 25px;
    text-align: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.07);
    transition: 0.3s;
}

.info-box:hover {
    transform: translateY(-5px);
}

.info-box i {
    font-size: 28px;
    color: #129990;
    margin-bottom: 10px;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.contact-form button {
    background: #129990;
    color: white;
    padding: 12px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.contact-form button:hover {
    background: #096B68;
}

.about-section {
    background: #FFFBDE;
    padding: 100px 0;
    position: relative;
}

.about-container {
    width: 85%;
    margin: auto;
    position: relative;
}

.about-content {
    background: white;
    padding: 60px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    position: relative;
    z-index: 2;
}

.about-content h2 {
    font-size: 30px;
    margin-bottom: 25px;
    color: #096B68;
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-content h2 i {
    color: #129990;
}

.about-content p {
    line-height: 2;
    color: #555;
    margin-bottom: 20px;
    font-size: 16px;
}

/* دایره دکوراتیو پس زمینه */
.about-decor {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #90D1CA, #129990);
    border-radius: 50%;
    position: absolute;
    top: -50px;
    left: -80px;
    opacity: 0.25;
    z-index: 1;
}

/* chat buttons */
.chat-buttons {
    position: fixed;
    bottom: 25px;
    left: 25px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 999;
}

.chat-btn {
    width: 55px;
    height: 55px;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.chat-btn.support {
    background: #129990;
}

.chat-btn.ai {
    background: #0c6761;
}

/* chat window */
.chat-window {
    position: fixed;
    bottom: 25px;
    left: 95px;
    width: 340px;
    height: 480px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: none;
    flex-direction: column;
    overflow: hidden;
    z-index: 999;
}

/* header */
.chat-header {
    background: #129990;
    color: white;
    padding: 12px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.status {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    background: #00ff6a;
    border-radius: 50%;
    display: inline-block;
}

/* messages */
.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f7f7f7;
}

.message {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    max-width: 75%;
    font-size: 14px;
}

.user {
    background: #07aa9f;
    color: white;
    margin-left: auto;
}

.bot {
    background: white;
    border: 1px solid #eee;
}

/* input */
.chat-input {
    display: flex;
    border-top: 1px solid #eee;
}

.chat-input input {
    flex: 1;
    border: none;
    padding: 10px;
    outline: none;
}

.chat-input button {
    border: none;
    background: #129990;
    color: white;
    padding: 0 16px;
    cursor: pointer;
}

.chat-btn.faq {
    background: #0e7a73;
}

/* ----- Responsive styles for Mobile ----- */

@media (max-width: 768px) { /* این مدیای کوئری برای تبلت و موبایل اعمال می‌شود */

    /* Contact Section Responsive */
    .contact-hero {
        padding: 50px 0; /* کاهش padding عمودی */
    }

    .contact-hero-content {
        flex-direction: column; /* چینش ستونی در موبایل */
        gap: 20px; /* فاصله بین متن و تصویر */
    }

    .contact-text {
        order: 2; /* نمایش متن بعد از تصویر */
        max-width: 90%; /* تنظیم عرض متن */
        margin: 0 auto; /* وسط چین کردن */
    }

    .contact-text h1 {
        font-size: 28px; /* کاهش اندازه فونت عنوان */
        margin-bottom: 10px;
    }

    .contact-text p {
        line-height: 1.6; /* کاهش ارتفاع خط */
        font-size: 14px; /* تنظیم فونت پاراگراف */
    }

    .contact-image {
        order: 1; /* نمایش تصویر در ابتدا */
        max-width: 70%; /* تنظیم عرض تصویر */
        margin: 0 auto; /* وسط چین کردن */
    }

    .contact-image img {
        max-width: 100%; /* اطمینان از پر شدن عرض کانتینر */
        height: auto;
    }

    .contact-boxes {
        flex-direction: column; /* چینش ستونی جعبه‌ها */
        gap: 15px; /* کاهش فاصله بین جعبه‌ها */
        margin: 30px 15px; /* کاهش margin */
    }

    .info-box {
        padding: 20px; /* کاهش padding */
        width: 100%; /* استفاده از تمام عرض */
        box-sizing: border-box; /* برای در نظر گرفتن padding در عرض */
    }

    /* Hover effects should generally be disabled or adjusted for touch devices */
    .info-box:hover {
        transform: none;
    }

    .info-box i {
        font-size: 24px; /* کاهش سایز آیکون */
        margin-bottom: 8px;
    }

    .contact-form {
        max-width: 90%; /* تنظیم عرض فرم */
        margin: 30px auto; /* تنظیم margin */
        gap: 10px; /* کاهش فاصله بین فیلدها */
    }

    .contact-form input,
    .contact-form textarea {
        padding: 10px; /* کاهش padding */
        font-size: 14px;
    }

    .contact-form button {
        padding: 10px; /* کاهش padding */
    }

    /* About Section Responsive */
    .about-section {
        padding: 60px 0; /* کاهش padding عمودی */
    }

    .about-container {
        width: 90%; /* تنظیم عرض کانتینر */
    }

    .about-content {
        padding: 40px 20px; /* تنظیم padding داخلی */
        margin: 0 10px; /* تنظیم margin */
    }

    .about-content h2 {
        font-size: 26px; /* کاهش فونت عنوان */
        margin-bottom: 20px;
        gap: 8px;
    }

    .about-content h2 i {
        font-size: 22px;
    }

    .about-content p {
        line-height: 1.7;
        font-size: 15px; /* تنظیم فونت پاراگراف */
    }

    /* Hide decorative circle on mobile */
    .about-decor {
        display: none;
    }

    /* Chat Buttons Responsive */
    .chat-buttons {
        bottom: 15px;
        left: 15px;
        gap: 10px;
    }

    .chat-btn {
        width: 50px;
        height: 50px;
        font-size: 18px;
    }

    /* Chat Window Responsive */
    .chat-window {
        bottom: 15px;
        left: 75px;
        width: 300px; /* کمی کوچکتر کردن عرض */
        height: 450px; /* کمی کوچکتر کردن ارتفاع */
    }

    /* Chat Header Responsive */
    .chat-header {
        padding: 10px 12px;
        font-size: 13px;
    }

    .status {
        font-size: 11px;
        gap: 5px;
    }

    .dot {
        width: 7px;
        height: 7px;
    }

    /* Chat Messages Responsive */
    .chat-messages {
        padding: 10px;
    }

    .message {
        margin-bottom: 8px;
        padding: 8px 10px;
        font-size: 13px;
        max-width: 80%; /* کمی افزایش عرض پیام‌ها */
    }

    /* Chat Input Responsive */
    .chat-input {
        gap: 10px;
    }

    .chat-input input {
        padding: 8px;
    }

    .chat-input button {
        padding: 0 12px;
    }
}

/* Media Query for very small screens (e.g., < 360px) */
@media (max-width: 360px) {
    /* Contact Section */
    .contact-hero-content {
        gap: 15px;
    }
    .contact-text h1 {
        font-size: 24px;
    }
    .contact-form {
        width: 95%;
    }

    /* Chat Window adjustments for very small screens */
    .chat-window {
        left: 10px;
        right: 10px;
        width: calc(100% - 20px); /* Use full width minus padding */
        bottom: 10px;
        height: 420px;
    }

    /* Chat Buttons adjustments for very small screens */
    .chat-buttons {
        left: 10px;
    }

    .chat-btn {
        width: 45px;
        height: 45px;
        font-size: 16px;
    }

    /* Message styling for very small screens */
    .message {
        max-width: 85%;
    }
}
/* رسپانسیو شده */