/* فونت‌های خاص */
@import url('https://v1.fontapi.ir/css/Vazirmatn');

:root {
    --primary-color: #8e44ad;
    --secondary-color: #9b59b6;
    --dark-purple: #4a2366; /* رنگ بنفش تیره */
    --light-purple: #f5eef8;
    --accent-color: #FFD700;
    --text-color: #333;
    --white: #ffffff;
    --gold: #c79c60;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background-color: var(--light-purple);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

/* منوی فعال */
.header nav ul li a.active {
    color: var(--accent-color);
}

/* بخش چراغ‌ها و میز */
.tm-welcome-section {
    background: var(--dark-purple);
    position: relative;
    text-align: center;
    padding-top: 0;
    overflow: hidden;
    min-height: 680px;
}

.white-text { color: white; }
.gold-text { color: var(--gold); }
.gray-text { color: #e0e0e0; }

.tm-welcome-content {
    margin: 120px auto 0;
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    justify-content: center;
}

.title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 600px;
}

.title-line {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.tm-handwriting-font {
    font-family: 'Great Vibes', cursive;
    font-size: 48px;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    display: inline-block;
    position: relative;
    text-align: center;
}

.tm-header-line {
    width: 90px;
    vertical-align: middle;
}

.left-line {
    margin-right: 10px;
}

.right-line {
    margin-left: 10px;
}

.tm-welcome-header-2 {
    font-family: 'Times New Roman', serif;
    font-size: 42px;
    text-transform: uppercase;
    margin: 10px 0;
    letter-spacing: 4px;
    color: var(--gold);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.tm-welcome-description { 
    text-align: center; 
    font-size: 18px;
    margin: 10px 0 120px; /* افزایش فاصله با میز */
}

.tm-position-relative { 
    position: relative; 
}

.tm-table-set {
    position: absolute;
    bottom: -250px; /* میز پایین‌تر رفت */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 800px;
    z-index: 2;
}

.tm-lights-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.light {
    position: absolute;
    opacity: 0.7;
    width: 280px;
}

.light-1 {
    top: 0px;
    left: 10%;
}

.light-2 {
    top: 0px;
    left: 50%;
    transform: translateX(-50%);
}

.light-3 {
    top: 0px;
    right: 10%;
}

/* بخش اصلی تماس */
.contact-main {
    background-color: var(--light-purple);
    padding: 12rem 0 3rem;
    margin-top: -2rem;
    position: relative;
    z-index: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

/* کارت اطلاعات تماس */
.contact-info-card {
    background: var(--white);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    height: auto;
    display: flex;
    flex-direction: column;
}

.contact-info-card h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-bottom: 0.6rem;
    text-align: right;
}

.contact-info-card h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.2rem;
    text-align: right;
}

.contact-detail i {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-left: 0.8rem;
    padding-top: 0.2rem;
}

.contact-detail h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1rem;
    color: var(--primary-color);
    text-align: right;
}

.contact-detail p {
    margin: 0;
    text-align: right;
    font-size: 0.95rem;
}

.contact-detail a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s;
    text-align: right;
}

.contact-detail a:hover {
    color: var(--primary-color);
}

.social-media {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.social-media h3 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.8rem;
    text-align: right;
}

.social-icons {
    display: flex;
    gap: 0.8rem;
    justify-content: flex-start;
}

.social-icon {
    width: 35px;
    height: 35px;
    background: var(--light-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.1rem;
    transition: all 0.3s;
}

.social-icon:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-5px);
}

/* کارت فرم تماس */
.contact-form-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 100%;
    display: flex;
}

.form-container {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.form-container h2 {
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    text-align: right;
}

.form-container p {
    margin-bottom: 1rem;
    color: #666;
    text-align: right;
    font-size: 0.95rem;
}

.form-container form {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.input-group {
    margin-bottom: 0.8rem;
    text-align: right;
}

.input-group label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 500;
    text-align: right;
    font-size: 0.9rem;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 0.7rem 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-align: right;
    box-sizing: border-box;
}

.input-group textarea {
    height: 60px;
    resize: none;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(142, 68, 173, 0.2);
}

.button-wrapper {
    margin-top: auto;
    margin-bottom: 0.5rem;
}

.submit-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.7rem 1.2rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    box-sizing: border-box;
}

.submit-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* بخش نقشه */
.map-section {
    padding: 2rem 0 3rem;
    background-color: var(--light-purple);
}

.map-section h2 {
    text-align: center;
    color: var(--primary-color);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
}

.map-container {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    height: 350px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* انیمیشن‌ها */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.contact-info-card, .contact-form-card, .map-container {
    animation: fadeIn 0.8s ease-out;
}

/* ریسپانسیو */
@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .tm-table-set {
        width: 95%;
        bottom: -220px;
    }
    
    .tm-welcome-section {
        min-height: 600px;
    }
}

@media (max-width: 768px) {
    .tm-handwriting-font {
        font-size: 40px;
    }
    
    .tm-welcome-header-2 {
        font-size: 36px;
    }
    
    .tm-header-line {
        width: 70px;
    }
    
    .form-container, .contact-info-card {
        padding: 1.3rem;
    }
    
    .light {
        width: 200px;
    }
    
    .tm-table-set {
        bottom: -200px;
    }
}

@media (max-width: 576px) {
    .tm-handwriting-font {
        font-size: 32px;
    }
    
    .tm-welcome-header-2 {
        font-size: 30px;
    }
    
    .tm-welcome-description {
        font-size: 16px;
    }
    
    .tm-header-line {
        width: 50px;
    }
    
    .tm-welcome-section {
        min-height: 500px;
    }
    
    .light {
        width: 160px;
    }
}