/* ==================== استایل‌های صفحه تماس با ما ==================== */

/* کانتینر اصلی صفحه */
.contact-page {
    direction: rtl;
    text-align: right;
    font-family: 'yekanbakh', 'IRANSans', 'Vazir', Tahoma, sans-serif;
}

/* ==================== انیمیشن‌ها ==================== */
@keyframes contact-tpfadeUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.contact-page .animate__tpfadeUp {
    animation-name: contact-tpfadeUp;
}

@keyframes contact-pulse-slow {
    0%, 100% { 
        opacity: 0.5; 
        transform: scale(1); 
    }
    50% { 
        opacity: 0.8; 
        transform: scale(1.05); 
    }
}

.contact-page .animate__pulse-slow {
    animation: contact-pulse-slow 3s ease-in-out infinite;
}

@keyframes contact-fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.contact-page .animate__fadeIn {
    animation: contact-fadeIn 0.3s ease;
}

@keyframes contact-fadeInLeft {
    from {
        opacity: 0;
        transform: translate3d(-40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.contact-page .animate__fadeInLeft {
    animation-name: contact-fadeInLeft;
}

@keyframes contact-fadeInRight {
    from {
        opacity: 0;
        transform: translate3d(40px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.contact-page .animate__fadeInRight {
    animation-name: contact-fadeInRight;
}

@keyframes contact-fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.contact-page .animate__fadeInUp {
    animation-name: contact-fadeInUp;
}

@keyframes contact-spin {
    to {
        transform: rotate(360deg);
    }
}

.contact-page .animate-spin {
    animation: contact-spin 1s linear infinite;
}

html {
    scroll-behavior: smooth;
}

/* ==================== بک‌گراند‌های داینامیک ==================== */
.contact-page .bg-blur-top {
    width: 300px;
    height: 200px;
    border-radius: 50%;
    position: absolute;
    z-index: -1;
    top: 0;
    left: 0;
    filter: blur(200px);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
}

@media (min-width: 1024px) {
    .contact-page .bg-blur-top {
        width: 500px;
        height: 400px;
    }
}

.contact-page .bg-blur-bottom {
    width: 300px;
    height: 200px;
    border-radius: 50%;
    position: absolute;
    z-index: -1;
    bottom: 0;
    right: 0;
    filter: blur(200px);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, rgba(249, 115, 22, 0.08) 100%);
}

@media (min-width: 1024px) {
    .contact-page .bg-blur-bottom {
        width: 500px;
        height: 400px;
    }
}

/* ==================== هدر صفحه ==================== */
.contact-page .contact-header {
    background: linear-gradient(135deg, #eab308 0%, #f97316 100%);
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
    color: white;
    text-align: center;
}

@media (min-width: 1024px) {
    .contact-page .contact-header {
        padding: 4rem 0;
    }
}

.contact-page .contact-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: contact-header-shine 3s ease-in-out infinite;
}

@keyframes contact-header-shine {
    0%, 100% { 
        transform: translate(-30%, -30%); 
    }
    50% { 
        transform: translate(-20%, -20%); 
    }
}

.contact-page .contact-header-title {
    font-size: 1.875rem;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 1024px) {
    .contact-page .contact-header-title {
        font-size: 2.25rem;
    }
}

.contact-page .contact-header-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    max-width: 42rem;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.contact-page .contact-header-divider {
    width: 6rem;
    height: 0.25rem;
    background: rgba(255, 255, 255, 0.5);
    margin: 1.5rem auto 0;
    border-radius: 9999px;
}

/* ==================== دکمه اصلی ==================== */
.contact-page .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #eab308 0%, #f97316 100%);
    color: white;
    font-weight: bold;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px -5px rgba(234, 179, 8, 0.4);
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9375rem;
    position: relative;
    overflow: hidden;
}

.contact-page .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 30px -10px rgba(234, 179, 8, 0.5);
}

.contact-page .btn-primary:active {
    transform: scale(0.98);
}

.contact-page .btn-primary:focus-visible {
    outline: 2px solid #eab308;
    outline-offset: 2px;
}

.contact-page .btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* ==================== کارت فرم تماس ==================== */
.contact-page .contact-form-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .contact-page .contact-form-card {
        padding: 2rem;
    }
}

.contact-page .contact-form-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-page .contact-form-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-page .contact-form-title svg {
    color: #eab308;
}

/* ==================== المان‌های فرم ==================== */
.contact-page .form-group {
    margin-bottom: 1.5rem;
}

.contact-page .form-group:last-child {
    margin-bottom: 0;
}

.contact-page .form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.5rem;
}

.contact-page .form-label-required {
    color: #ef4444;
}

.contact-page .form-input,
.contact-page .form-select,
.contact-page .form-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 0.75rem;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    background: white;
    color: #1e293b;
    font-family: 'yekanbakh', 'IRANSans', 'Vazir', Tahoma, sans-serif;
}

.contact-page .form-input::placeholder,
.contact-page .form-textarea::placeholder {
    color: #9ca3af;
}

.contact-page .form-input:focus,
.contact-page .form-select:focus,
.contact-page .form-textarea:focus {
    outline: none;
    border-color: #eab308;
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.1);
}

.contact-page .form-input.error,
.contact-page .form-select.error,
.contact-page .form-textarea.error {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.contact-page .form-error-message {
    font-size: 0.75rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

.contact-page .form-select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 0.75rem center;
    background-size: 1.25rem;
    padding-left: 2.5rem;
}

.contact-page .form-textarea {
    resize: vertical;
    min-height: 120px;
}

/* ==================== پیام موفقیت ==================== */
.contact-page .success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
    padding: 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: contact-slideDown 0.3s ease;
}

@keyframes contact-slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== کارت‌های اطلاعات تماس ==================== */
.contact-page .contact-info-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    text-align: center;
}

.contact-page .contact-info-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-4px);
}

.contact-page .contact-info-icon {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
}

.contact-page .contact-info-card:hover .contact-info-icon {
    transform: scale(1.1);
}

.contact-page .contact-info-icon svg {
    width: 2rem;
    height: 2rem;
    color: #eab308;
}

.contact-page .contact-info-title {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-page .contact-info-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.contact-page .contact-info-value {
    font-size: 1.125rem;
    font-weight: bold;
    color: #eab308;
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
}

.contact-page .contact-info-value:hover {
    transform: scale(1.05);
    color: #f97316;
}

.contact-page .contact-info-value[dir="ltr"] {
    font-family: 'yekanbakh', 'Courier New', Courier, monospace;
    direction: ltr;
}

/* ==================== شبکه‌های اجتماعی ==================== */
.contact-page .social-links-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.contact-page .social-links-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-page .social-links-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-page .social-links-title svg {
    color: #eab308;
}

.contact-page .social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.contact-page .social-link-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.05) 0%, rgba(249, 115, 22, 0.05) 100%);
    border: 1px solid rgba(234, 179, 8, 0.1);
}

.contact-page .social-link-item:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.08) 0%, rgba(249, 115, 22, 0.08) 100%);
}

.contact-page .social-link-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #eab308 0%, #f97316 100%);
    flex-shrink: 0;
}

.contact-page .social-link-item:hover .social-link-icon {
    transform: scale(1.1);
}

.contact-page .social-link-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.contact-page .social-link-text h4 {
    font-size: 0.875rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 0.125rem;
}

.contact-page .social-link-text p {
    font-size: 0.75rem;
    color: #64748b;
    margin: 0;
}

/* ==================== ساعات کاری ==================== */
.contact-page .working-hours-card {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.contact-page .working-hours-card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-page .working-hours-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-page .working-hours-title svg {
    color: #eab308;
}

.contact-page .working-hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.contact-page .working-hours-item:last-child {
    border-bottom: none;
}

.contact-page .working-hours-day {
    color: #4b5563;
    font-size: 0.875rem;
}

.contact-page .working-hours-time {
    font-weight: bold;
    color: #1e293b;
    font-size: 0.875rem;
}

.contact-page .working-hours-closed {
    font-weight: bold;
    color: #eab308;
}

.contact-page .working-hours-note {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.05) 0%, rgba(249, 115, 22, 0.05) 100%);
    border: 1px solid rgba(234, 179, 8, 0.1);
    font-size: 0.875rem;
    color: #eab308;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* ==================== سوالات متداول ==================== */
.contact-page .faq-section {
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    border: 1px solid #f1f5f9;
    margin-bottom: 3rem;
}

@media (min-width: 1024px) {
    .contact-page .faq-section {
        padding: 2rem;
    }
}

.contact-page .faq-section:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-page .faq-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 2rem;
    text-align: center;
}

.contact-page .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .contact-page .faq-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.contact-page .faq-item {
    padding: 1.25rem;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.02) 0%, rgba(249, 115, 22, 0.02) 100%);
}

.contact-page .faq-item:hover {
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.contact-page .faq-question {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.contact-page .faq-question svg {
    flex-shrink: 0;
    margin-top: 0.125rem;
    color: #eab308;
}

.contact-page .faq-answer {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    padding-right: 1.75rem;
}

/* ==================== نقشه و آدرس ==================== */
.contact-page .location-section {
    border-radius: 1.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.03) 0%, rgba(249, 115, 22, 0.03) 100%);
    border: 1px solid rgba(234, 179, 8, 0.1);
}

@media (min-width: 1024px) {
    .contact-page .location-section {
        padding: 2rem;
    }
}

.contact-page .location-section:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-page .location-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 1.5rem;
    text-align: center;
}

.contact-page .location-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .contact-page .location-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.contact-page .location-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-page .location-info-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
}

.contact-page .location-info-item:hover .location-info-icon {
    transform: scale(1.1);
}

.contact-page .location-info-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: #eab308;
}

.contact-page .location-info-content h3 {
    font-size: 1.125rem;
    font-weight: bold;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.contact-page .location-info-content p {
    font-size: 0.875rem;
    color: #4b5563;
    line-height: 1.6;
    margin: 0;
}

.contact-page .map-container {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    height: 16rem;
    transition: all 0.3s ease;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.1) 0%, rgba(249, 115, 22, 0.1) 100%);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

@media (min-width: 1024px) {
    .contact-page .map-container {
        height: 100%;
    }
}

.contact-page .map-container:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.contact-page .map-container iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0;
    border: 0;
}

.contact-page .map-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    transition: all 0.3s ease;
    pointer-events: none;
}

.contact-page .map-container:hover .map-overlay {
    background: rgba(0, 0, 0, 0.05);
}

.contact-page .map-tooltip {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    background: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 10;
}

.contact-page .map-container:hover .map-tooltip {
    opacity: 1;
}

/* ==================== Toast Notification ==================== */
.contact-page .toast {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    color: white;
    z-index: 50;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    font-weight: 500;
}

.contact-page .toast-success {
    background: #10b981;
}

.contact-page .toast-error {
    background: #ef4444;
}

/* ==================== Responsive ==================== */
@media (max-width: 640px) {
    .contact-page .social-links-grid {
        grid-template-columns: 1fr;
    }

    .contact-page .contact-form-card {
        padding: 1rem;
    }

    .contact-page .contact-header {
        padding: 2rem 0;
    }

    .contact-page .contact-header-title {
        font-size: 1.5rem;
    }

    .contact-page .faq-section {
        padding: 1rem;
    }

    .contact-page .location-section {
        padding: 1rem;
    }

    .contact-page .map-container {
        height: 12rem;
    }
}

/* ==================== Print Styles ==================== */
@media print {
    .contact-page .contact-header,
    .contact-page .bg-blur-top,
    .contact-page .bg-blur-bottom,
    .contact-page .social-links-card,
    .contact-page .map-container,
    .contact-page .btn-primary {
        display: none;
    }

    .contact-page .contact-form-card,
    .contact-page .contact-info-card,
    .contact-page .faq-section,
    .contact-page .location-section {
        box-shadow: none;
        border: 1px solid #e2e8f0;
        break-inside: avoid;
    }

    body {
        background: white;
    }
}

/* ==================== Accessibility ==================== */
.contact-page .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.contact-page *:focus-visible {
    outline: 2px solid #eab308;
    outline-offset: 2px;
}


/* ==================== End of Contact Page Styles ==================== */