/**
 * Contact Page - Optimized
 * Soft UI Fashion Store
 */

.contact-page {
    background: #fafbff;
    font-family: 'Vazirmatn', sans-serif;
}

/* Section Labels */
.contact-page .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.contact-page .section-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #6366f1;
    letter-spacing: 1px;
}

.contact-page .section-label.center {
    justify-content: center;
}

.contact-page .label-line {
    display: block;
    width: 24px;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #a78bfa);
    border-radius: 2px;
}

.contact-page .section-header h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0;
}

/* ===== HERO ===== */
.contact-hero {
    background: linear-gradient(160deg, #312e81 0%, #4338ca 30%, #6366f1 60%, #818cf8 100%);
    padding: 3.5rem 0 2.5rem;
    text-align: center;
    color: white;
}

.contact-hero .hero-content {
    position: relative;
    z-index: 2;
}

.contact-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.12);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.contact-badge .badge-dot {
    width: 6px;
    height: 6px;
    background: #34d399;
    border-radius: 50%;
}

.contact-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 0.5rem;
    line-height: 1.2;
}

.contact-hero .hero-highlight {
    background: linear-gradient(135deg, #c4b5fd, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-hero .hero-subtitle {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
    font-weight: 300;
}

/* ===== INFO CARDS ===== */
.contact-info-section {
    padding: 2.5rem 0 1.5rem;
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.85rem;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: white;
    border-radius: 14px;
    border: 1px solid rgba(99,102,241,0.08);
    box-shadow: 0 2px 8px rgba(99,102,241,0.04);
    transition: transform 0.25s, box-shadow 0.25s;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(99,102,241,0.1);
}

.contact-card-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-card-icon.email-icon {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.contact-card-icon.address-icon {
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
}

.contact-card-icon.time-icon {
    background: linear-gradient(135deg, #7c3aed, #6366f1);
}

.contact-card-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

.contact-card-content h3 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 0.1rem;
}

.contact-card-content p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #6366f1;
    margin: 0;
    direction: ltr;
    text-align: right;
}

.contact-card-sub {
    font-size: 0.65rem;
    color: #94a3b8;
}

/* ===== MAIN SECTION ===== */
.contact-main {
    padding: 1.5rem 0 3rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: start;
}

/* Form */
.contact-form-wrapper {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid rgba(99,102,241,0.08);
    box-shadow: 0 2px 16px rgba(99,102,241,0.03);
}

.contact-form-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0 0 0.25rem;
}

.form-desc {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0 0 1.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.85rem;
    color: #1e1b4b;
    background: #fafbff;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #c1c7d0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.08);
    background: white;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236366f1' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 12px center;
    padding-left: 2rem;
}

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

/* Submit */
.form-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: 0.8rem 2rem;
    border-radius: 12px;
    border: none;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(99,102,241,0.25);
    align-self: flex-start;
}

.form-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(99,102,241,0.35);
}

/* Success */
.form-success {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    gap: 0.75rem;
}

.success-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #10b981, #34d399);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
}

.form-success h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0;
}

.form-success p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

/* ===== MAP ===== */
.contact-map-wrapper {
    position: sticky;
    top: 2rem;
}

.contact-map-wrapper h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e1b4b;
    margin: 0 0 0.75rem;
}

.contact-map {
    width: 100%;
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(99,102,241,0.1);
    box-shadow: 0 2px 12px rgba(99,102,241,0.04);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Map Placeholder (before click) */
.map-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #f0eeff 0%, #e8e5ff 100%);
    cursor: pointer;
    transition: background 0.3s;
}

.map-placeholder:hover {
    background: linear-gradient(135deg, #e8e5ff 0%, #ddd8ff 100%);
}

.map-placeholder-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.map-placeholder-icon svg {
    stroke: white;
}

.map-placeholder p {
    font-size: 0.85rem;
    color: #6366f1;
    font-weight: 600;
    margin: 0;
}

/* Social */
.contact-social {
    margin-top: 1.25rem;
    background: white;
    border-radius: 14px;
    padding: 1rem;
    border: 1px solid rgba(99,102,241,0.08);
}

.contact-social h3 {
    font-size: 0.82rem;
    font-weight: 700;
    color: #1e1b4b;
    margin: 0 0 0.6rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.social-link {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fafbff;
    border: 1.5px solid rgba(99,102,241,0.1);
    color: #6366f1;
    transition: all 0.25s;
    text-decoration: none;
}

.social-link:hover {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

.social-link:hover svg {
    stroke: white;
    fill: white;
}

/* ===== FAQ ===== */
.contact-faq {
    padding: 2.5rem 0 3rem;
    background: white;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background: #fafbff;
    border-radius: 12px;
    border: 1px solid rgba(99,102,241,0.06);
    overflow: hidden;
    transition: border-color 0.25s;
}

.faq-item.active {
    border-color: rgba(99,102,241,0.18);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.8rem 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e1b4b;
    text-align: right;
}

.faq-question:hover {
    color: #6366f1;
}

.faq-question svg {
    flex-shrink: 0;
    color: #6366f1;
    transition: transform 0.25s;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 1rem;
}

.faq-item.active .faq-answer {
    max-height: 150px;
    padding: 0 1rem 0.8rem;
}

.faq-answer p {
    font-size: 0.76rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0;
    padding-top: 0.2rem;
    border-top: 1px solid rgba(99,102,241,0.06);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .contact-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .contact-map-wrapper {
        position: static;
    }
    .faq-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .contact-hero h1 {
        font-size: 2rem;
    }
    .contact-cards {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .contact-form-wrapper {
        padding: 1.5rem;
    }
    .contact-map {
        height: 220px;
    }
}

@media (max-width: 480px) {
    .contact-hero h1 {
        font-size: 1.75rem;
    }
    .contact-form-wrapper {
        padding: 1.25rem;
    }
    .form-submit-btn {
        width: 100%;
    }
}