/* ===== Contact Page — Open & Spacious Layout ===== */

.contact-page {
    width: 100%;
    min-height: 100vh;
    padding: 120px 0 80px 0;
    background: var(--bg-primary, #fafafa);
}

/* ===== Hero Section ===== */
.contact-hero {
    max-width: 1200px;
    margin: 0 auto 80px auto;
    padding: 0 40px;
    text-align: center;
}

.story-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 40px;
    /* opacity: 0; */
    /* animation: fadeDown 0.8s ease forwards 0.2s; */
}
.badge-line {
    display: block;
    width: 48px;
    height: 1px;
    background: var(--accent);
    opacity: 0.5;
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.contact-hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 20px 0;
    line-height: 1.3;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.1s forwards;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary, #6b7280);
    margin: 0;
    line-height: 1.7;
    opacity: 0;
    animation: fadeIn 0.6s ease 0.2s forwards;
}

/* ===== Main Container ===== */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    gap: 60px;
}

/* ===== Map Section ===== */
.contact-map-wrapper {
    width: 100%;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.3s forwards;
}

.contact-map {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.1);
    background: #1a1a2e;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    filter: saturate(0.9) contrast(1.05);
    transition: filter 0.5s ease;
}

.contact-map:hover iframe {
    filter: saturate(1) contrast(1.1);
}

.map-badge {
    position: absolute;
    bottom: 24px;
    left: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 14px;
    color: #1a1a2e;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.map-badge svg {
    flex-shrink: 0;
}

.map-badge:hover {
    background: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

/* ===== Info Section ===== */
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 60px;
}

.info-section {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-primary, #1a1a2e);
    margin: 0 0 32px 0;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--border-color, #e5e7eb);
}

/* ===== Info Cards Grid ===== */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.info-card {
    display: flex;
    gap: 20px;
    padding: 28px;
    border-radius: 18px;
    background: var(--bg-secondary, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: rgba(94, 234, 212, 0.4);
    background: var(--bg-hover, #f0fdfa);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(94, 234, 212, 0.15);
}

.card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--accent);
    color: #ffffff;
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.card-label {
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-secondary, #9ca3af);
    font-weight: 600;
}

.card-value {
    margin: 0;
    font-size: 0.95rem;
    color: var(--text-primary, #374151);
    line-height: 1.8;
}

.card-link {
    font-size: 0.95rem;
    color: var(--text-primary, #374151);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    direction: ltr;
    display: inline-block;
}

.card-link:hover {
    color: #2dd4bf;
}

/* ===== Social Links ===== */
.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    border-radius: 16px;
    background: var(--bg-secondary, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
    color: var(--text-primary, #374151);
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link svg {
    flex-shrink: 0;
    stroke: var(--text-secondary, #6b7280);
    transition: stroke 0.3s ease;
}

.social-link:last-child svg {
    fill: var(--text-secondary, #6b7280);
    stroke: none;
    transition: fill 0.3s ease;
}

.social-link:hover {
    background: var(--accent);
    border-color: transparent;
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(94, 234, 212, 0.3);
}

.social-link:hover svg {
    stroke: #ffffff;
}

.social-link:last-child:hover svg {
    fill: #ffffff;
}

/* ===== Dark Theme ===== */
[data-theme="dark"] .contact-page {
    background: var(--bg-primary);
}

[data-theme="dark"] .contact-hero h1 {
    color: #f1f5f9;
}

[data-theme="dark"] .hero-subtitle {
    color: #94a3b8;
}

[data-theme="dark"] .section-title {
    color: #f1f5f9;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .info-card {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .info-card:hover {
    background: rgba(94, 234, 212, 0.08);
    border-color: rgba(94, 234, 212, 0.25);
}

[data-theme="dark"] .card-label {
    color: #64748b;
}

[data-theme="dark"] .card-value,
[data-theme="dark"] .card-link {
    color: #cbd5e1;
}

[data-theme="dark"] .social-link {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

[data-theme="dark"] .social-link svg {
    stroke: #94a3b8;
}

[data-theme="dark"] .social-link:last-child svg {
    fill: #94a3b8;
}

[data-theme="dark"] .map-badge {
    background: rgba(26, 26, 46, 0.92);
    color: #e2e8f0;
}

[data-theme="dark"] .map-badge:hover {
    background: rgba(26, 26, 46, 0.98);
}

[data-theme="dark"] .contact-map {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
}

/* ===== Suggestion Form ===== */
.suggestion-section {
    opacity: 0;
    animation: fadeUp 0.8s ease 0.5s forwards;
}

.suggestion-description {
    margin: 0 0 16px 0;
    font-size: 0.95rem;
    color: var(--text-secondary, #6b7280);
    line-height: 1.8;
}

.suggestion-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    border-radius: 18px;
    background: var(--bg-secondary, #ffffff);
    border: 1px solid var(--border-color, #e5e7eb);
}

.suggestion-field-wrapper {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, #6b7280);
}

.suggestion-textarea {
    width: 100%;
    min-height: 120px;
    border-radius: 14px;
    border: 1px solid var(--border-color, #d1d5db);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary, #111827);
    resize: vertical;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    /* background: var(--bg-secondary, #ffffff); */
}

.suggestion-textarea::placeholder {
    color: #9ca3af;
}

.suggestion-textarea:focus {
    outline: none;
    border-color: #2dd4bf;
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
    background-color: #ffffff;
}

.suggestion-submit-btn {
    align-self: flex-start;
    padding: 10px 22px;
    border-radius: 999px;
    border: none;
    background: var(--accent);
    font-family: 'Vazirmatn';
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    box-shadow: 0 8px 24px rgba(94, 234, 212, 0.3);
}

.suggestion-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(94, 234, 212, 0.4);
}

.suggestion-submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 5px 16px rgba(94, 234, 212, 0.25);
}

.suggestion-privacy-note {
    margin: 0;
    font-size: 0.8rem;
    color: var(--text-secondary, #9ca3af);
}

/* Dark theme for suggestion form */
[data-theme="dark"] .suggestion-form {
    background: (255, 255, 255, 0.728);
    border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .suggestion-textarea {
    background: (255, 255, 255, 0.728);
    border-color: rgba(148, 163, 184, 0.6);
    color: #e2e8f0;
}

[data-theme="dark"] .suggestion-textarea::placeholder {
    color: #64748b;
}

[data-theme="dark"] .suggestion-description,
[data-theme="dark"] .suggestion-label,
[data-theme="dark"] .suggestion-privacy-note {
    color: #94a3b8;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .contact-hero h1 {
        font-size: 2.2rem;
    }

    .contact-map {
        height: 420px;
    }
}

@media (max-width: 768px) {
    .contact-page {
        padding: 100px 0 60px 0;
    }

    .contact-hero {
        margin-bottom: 60px;
        padding: 0 24px;
    }

    .contact-hero h1 {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .contact-container {
        padding: 0 24px;
        gap: 48px;
    }

    .contact-map {
        height: 360px;
        border-radius: 20px;
    }

    .info-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .info-card {
        padding: 22px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 24px;
    }

    .social-links {
        flex-direction: column;
    }

    .social-link {
        justify-content: center;
    }

    .suggestion-form {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .contact-page {
        padding: 90px 0 40px 0;
    }

    .contact-hero {
        margin-bottom: 48px;
        padding: 0 20px;
    }

    .contact-hero h1 {
        font-size: 1.5rem;
    }

    .contact-container {
        padding: 0 20px;
        gap: 40px;
    }

    .contact-map {
        height: 300px;
        border-radius: 16px;
    }

    .map-badge {
        bottom: 16px;
        left: 16px;
        padding: 10px 16px;
        font-size: 0.8rem;
    }

    .info-card {
        padding: 20px;
        gap: 16px;
    }

    .card-icon {
        width: 48px;
        height: 48px;
    }
    .suggestion-form {
        padding: 18px;
    }
    .suggestion-submit-btn {
        width: 100%;
    }
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.suggestion-textarea-error {
    border-color: #f97373 !important;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.25);
}

.suggestion-input {
    width: 100%;
    border-radius: 14px;
    border: 1px solid var(--border-color, #d1d5db);
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-primary, #111827);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    background: var(--bg-secondary, #ffffff);
}

.suggestion-input::placeholder {
    color: #9ca3af;
}

.suggestion-input:focus {
    outline: none;
    border-color: #2dd4bf;
    box-shadow: 0 0 0 3px rgb(255, 255, 255);
    background-color: #ffffff;
}

[data-theme="dark"] .suggestion-input {
    background: rgb(255, 255, 255);
    border-color: rgba(148, 163, 184, 0.6);
    color: #e2e8f0;
}

[data-theme="dark"] .suggestion-input::placeholder {
    color: #64748b;
}
