/* Contact Hero Section */
.contact-hero {
    background: linear-gradient(145deg, #53BA46, #46A5DC, #6a5acd);
    position: relative;
    padding: 130px 0 110px;
    color: #fff;
    text-align: center;
    overflow: hidden;
    margin-bottom: 70px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.1" d="M0,288L48,272C96,256,192,224,288,197.3C384,171,480,149,576,165.3C672,181,768,235,864,234.7C960,235,1056,181,1152,176C1248,171,1344,213,1392,234.7L1440,256L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center bottom;
    z-index: 0;
}

.contact-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;charset=utf8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"%3E%3Cpath fill="%23ffffff" fill-opacity="0.05" d="M0,96L40,117.3C80,139,160,181,240,208C320,235,400,245,480,218.7C560,192,640,128,720,122.7C800,117,880,171,960,197.3C1040,224,1120,224,1200,202.7C1280,181,1360,139,1400,117.3L1440,96L1440,0L1400,0C1360,0,1280,0,1200,0C1120,0,1040,0,960,0C880,0,800,0,720,0C640,0,560,0,480,0C400,0,320,0,240,0C160,0,80,0,40,0L0,0Z"%3E%3C/path%3E%3C/svg%3E');
    background-size: cover;
    background-position: center top;
    opacity: 0.6;
    z-index: 0;
}

.contact-hero .container {
    position: relative;
    z-index: 1;
}

.contact-hero h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 35px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    display: inline-block;
    color: #fff;
}

.contact-hero h1::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 5px;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0.5));
    border-radius: 10px;
}

.contact-hero p {
    font-size: 1.5rem;
    max-width: 850px;
    margin: 0 auto 35px;
    line-height: 1.8;
    opacity: 0.95;
    font-weight: 400;
}

/* Impact Hero Icons for Contact */
.impact-hero-icons {
    margin-top: 45px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.impact-hero-icons i {
    font-size: 2.8rem;
    background: rgba(255, 255, 255, 0.2);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
}

.impact-hero-icons i::before {
    position: relative;
    z-index: 2;
}

.impact-hero-icons i::after {
    content: '';
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.impact-hero-icons i:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.impact-hero-icons i:hover::after {
    bottom: 0;
}

/* Contact Info Section */
.contact-info {
    background: #f8f9fa;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.info-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 3rem;
    color: #46A5DC;
    margin-bottom: 20px;
}

.info-card h3 {
    color: #53BA46;
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.info-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Form Section */
.contact-form-section {
    padding: 80px 0;
}

.form-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.form-content h2 {
    color: #53BA46;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.form-content p {
    color: #666;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: #53BA46;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #46A5DC;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-primary {
    background: #53BA46;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #46A5DC;
    transform: translateY(-2px);
}

.form-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Map Section */
.map-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.map-section h2 {
    text-align: center;
    color: #53BA46;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ Section */
.faq-section {
    background-color: #f8f9fa;
    padding: 80px 0;
}

.faq-section h2 {
    text-align: center;
    color: #53BA46;
    font-size: 2.5rem;
    margin-bottom: 40px;
}

.faq-grid {
    display: grid;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

/* استایل برای عنصر details و حذف علامت پیش‌فرض */
details.faq-item {
    transition: all 0.3s ease;
}

details.faq-item summary {
    list-style: none;
}

details.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    position: relative;
    z-index: 2;
}

.faq-question:hover {
    background-color: #f8f9fa;
}

.faq-question h3 {
    color: #53BA46;
    font-size: 1.2rem;
    margin: 0;
    flex: 1;
    padding-right: 20px;
}

.faq-question i {
    color: #46A5DC;
    font-size: 1.2rem;
    transition: transform 0.4s ease;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    color: #666;
    line-height: 1.8;
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.faq-answer p {
    margin: 0;
    padding: 10px 0 20px;
}

/* چرخش آیکون و انیمیشن نمایش پاسخ */
details.faq-item[open] .faq-question i {
    transform: rotate(180deg);
}

details.faq-item[open] .faq-answer {
    opacity: 1;
}

/* FAQ Section Styles - Ensuring dropdowns work */
.faq-section .faq-item {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    border-radius: 5px;
}

.faq-section .faq-item summary.faq-question {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 15px 20px !important;
    cursor: pointer !important;
    font-weight: bold;
    background-color: #f9f9f9;
    border-radius: 5px;
    position: relative; /* For custom marker positioning if needed */
}

.faq-section .faq-item[open] summary.faq-question {
    background-color: #eee;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.faq-section .faq-item summary.faq-question:hover {
    background-color: #f1f1f1;
}

.faq-section .faq-item summary.faq-question h3 {
    margin: 0 !important;
    font-size: 1.1em;
}

.faq-section .faq-item .faq-answer {
    padding: 0 20px !important;
    background-color: #fff;
    overflow: hidden !important;
    max-height: 0 !important;
    transition: max-height 0.7s ease-in-out, padding 0.7s ease-in-out !important;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.faq-section .faq-item .faq-answer p {
    opacity: 0 !important;
    transform: translateY(-10px) !important;
    transition: opacity 0.5s ease-in-out 0.25s, transform 0.5s ease-in-out 0.25s !important;
    margin: 0 !important;
    padding: 0 !important;
}

.faq-section .faq-item[open] > .faq-answer {
    max-height: 1000px !important;
    padding: 20px 20px !important;
    border-top: 1px solid #ddd; 
}

.faq-section .faq-item[open] > .faq-answer p {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.faq-section .faq-item summary.faq-question i {
    font-size: 1.2em;
    transition: transform 0.6s ease-in-out !important;
}

/* Remove default marker for summary */
.faq-section .faq-item summary::-webkit-details-marker {
    display: none !important;
}
.faq-section .faq-item summary::marker { /* Firefox */
    display: none !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .contact-hero h1 {
        font-size: 3.6rem;
    }
}

@media (max-width: 992px) {
    .contact-hero {
        padding: 110px 0 90px;
    }
    .contact-hero h1 {
        font-size: 3.2rem;
    }
    .contact-hero p {
        font-size: 1.4rem;
        max-width: 90%;
        margin-bottom: 30px;
    }
    .impact-hero-icons {
        gap: 25px;
    }
    .impact-hero-icons i {
        width: 75px;
        height: 75px;
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .contact-hero {
        padding: 90px 20px 80px;
    }
    .contact-hero h1 {
        font-size: 2.8rem;
    }
    .contact-hero h1::after {
        width: 80px;
        height: 4px;
        bottom: -12px;
    }
    .contact-hero p {
        font-size: 1.3rem;
        line-height: 1.6;
        margin-bottom: 25px;
    }
    .impact-hero-icons {
        gap: 20px;
    }
    .impact-hero-icons i {
        width: 65px;
        height: 65px;
        font-size: 2.2rem;
    }
    
    .form-container {
        grid-template-columns: 1fr;
    }
    
    .form-image {
        display: none;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .contact-hero {
        padding: 80px 15px 70px;
        margin-bottom: 50px;
    }
    .contact-hero h1 {
        font-size: 2.4rem;
    }
    .contact-hero h1::after {
        width: 60px;
        height: 3px;
        bottom: -10px;
    }
    .contact-hero p {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    .impact-hero-icons {
        gap: 15px;
        flex-wrap: wrap;
    }
    .impact-hero-icons i {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 70px 15px 60px;
    }
    .contact-hero h1 {
        font-size: 2.1rem;
    }
    .contact-hero p {
        font-size: 1.1rem;
    }
    .impact-hero-icons i {
        width: 55px;
        height: 55px;
        font-size: 1.8rem;
    }
    
    .info-card,
    .faq-item {
        padding: 20px;
    }
} 