/* TradeAnalyzer.Pro – Contact (homepage-aligned) */
body.contact-page {
    --bg: #070b14;
    --bg-elevated: #0d1524;
    --bg-panel: #111a2b;
    --line: rgba(148, 163, 184, 0.18);
    --text: #e8eef7;
    --text-primary: #e8eef7;
    --text-secondary: #94a3b8;
    --muted: #94a3b8;
    --cyan: #38bdf8;
    --cyan-strong: #0ea5e9;
    --accent: #38bdf8;
    --gold: #eab308;
    --ok: #34d399;
    --warning: #eab308;
    --radius: 16px;
    --font-display: "Sora", system-ui, sans-serif;
    --font-body: "IBM Plex Sans", system-ui, sans-serif;
    background:
        radial-gradient(1200px 600px at 12% -10%, rgba(14, 165, 233, 0.12), transparent 55%),
        radial-gradient(900px 500px at 90% 8%, rgba(234, 179, 8, 0.06), transparent 50%),
        var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    padding-top: 70px;
    overflow-x: hidden;
    margin: 0;
    line-height: 1.65;
}

body.contact-page h1,
body.contact-page h2,
body.contact-page h3,
body.contact-page h4 {
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

body.contact-page p,
body.contact-page li {
    color: var(--muted);
}

body.contact-page strong {
    color: var(--text);
}

/* Content links only — keep navbar white */
body.contact-page .contact-content a,
body.contact-page .breadcrumb-nav a {
    color: var(--cyan);
    text-decoration: none;
}

body.contact-page .contact-content a:hover,
body.contact-page .breadcrumb-nav a:hover {
    color: #7dd3fc;
}

body.contact-page .breadcrumb-nav {
    background: rgba(13, 21, 36, 0.92) !important;
    border-bottom: 1px solid var(--line) !important;
}

body.contact-page .breadcrumb-item.active {
    color: var(--muted) !important;
}

body.contact-page .preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

body.contact-page .preloader.loaded {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

body.contact-page .spinner {
    width: 42px;
    height: 42px;
    border: 3px solid rgba(56, 189, 248, 0.2);
    border-radius: 50%;
    border-top-color: var(--cyan);
    animation: contact-spin 0.8s linear infinite;
}

@keyframes contact-spin {
    to { transform: rotate(360deg); }
}

.contact-content {
    padding: 1.5rem 0 3.5rem;
}

.contact-wrap {
    width: min(980px, calc(100% - 2rem));
    margin: 0 auto;
}

.section-header {
    text-align: left;
    margin: 0 0 1.75rem;
    max-width: none;
}

.contact-eyebrow {
    display: inline-flex;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.75rem;
}

.section-header h1 {
    font-size: clamp(1.65rem, 3.4vw, 2.35rem);
    margin: 0 0 0.75rem;
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text);
    line-height: 1.2;
}

.section-header p,
.contact-lead {
    font-size: clamp(1rem, 1.35vw, 1.1rem);
    color: var(--muted);
    margin: 0;
    max-width: 54ch;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.5rem;
}

.contact-card {
    background: var(--bg-panel);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.4rem 1.25rem;
    text-align: left;
    transition: border-color 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.contact-card:hover {
    transform: none;
    border-color: rgba(56, 189, 248, 0.35);
    box-shadow: none;
    background: var(--bg-panel);
}

.contact-icon-wrapper {
    width: 48px;
    height: 48px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    transition: background 0.2s ease;
}

.contact-card:hover .contact-icon-wrapper {
    transform: none;
    background: rgba(14, 165, 233, 0.16);
}

.contact-icon-wrapper i {
    font-size: 1.2rem;
    color: var(--cyan);
}

.contact-card h3 {
    font-size: 1.1rem;
    margin: 0 0 0.55rem;
}

.contact-card p {
    margin: 0 0 1.15rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.btn-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.88rem;
    background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
    color: #fff !important;
    border: none;
    width: auto;
    align-self: flex-start;
    transition: filter 0.2s ease;
}

.btn-contact:hover {
    background: linear-gradient(135deg, var(--cyan-strong), #2563eb);
    color: #fff !important;
    transform: none;
    box-shadow: none;
    filter: brightness(1.05);
}

.social-links {
    display: flex;
    gap: 0.65rem;
    justify-content: flex-start;
    margin-top: auto;
    width: 100%;
}

.social-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted) !important;
    border: 1px solid var(--line);
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.social-btn:hover {
    background: rgba(14, 165, 233, 0.1);
    color: var(--cyan) !important;
    border-color: rgba(56, 189, 248, 0.4);
    transform: none;
}

.social-btn i {
    font-size: 1.1rem;
}

.faq-section {
    margin-top: 1.75rem;
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
}

.faq-section .text-center {
    text-align: left !important;
    margin-bottom: 1.25rem !important;
}

.faq-section h2 {
    font-size: clamp(1.25rem, 2.2vw, 1.55rem);
    margin: 0 0 0.4rem;
}

.faq-section .text-center p {
    margin: 0;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
    margin-top: 0;
}

.faq-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.15rem 1.1rem;
}

.faq-item h4 {
    font-size: 1rem;
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.faq-item h4 i {
    color: var(--cyan);
    font-size: 0.95rem;
}

.faq-item ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-item li {
    margin-bottom: 0.55rem;
    padding-left: 1.1rem;
    position: relative;
    font-size: 0.92rem;
}

.faq-item li:last-child {
    margin-bottom: 0;
}

.faq-item li::before {
    content: "•";
    color: var(--cyan);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.response-banner {
    margin-top: 1.75rem;
    background: rgba(14, 165, 233, 0.06);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 14px;
    padding: 1.25rem 1.35rem;
    display: flex;
    align-items: flex-start;
    gap: 1.15rem;
    flex-wrap: wrap;
}

.response-icon {
    width: 48px;
    height: 48px;
    background: var(--bg-elevated);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan);
    font-size: 1.2rem;
    flex-shrink: 0;
    border: 1px solid var(--line);
}

.response-content {
    flex-grow: 1;
    min-width: 220px;
}

.response-content h3 {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.response-content > p {
    margin: 0;
}

.response-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.9rem;
    margin-top: 1rem;
}

.response-item {
    display: flex;
    flex-direction: column;
}

.response-label {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.2rem;
}

.response-value {
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--text);
    font-size: 0.95rem;
}

.response-value.is-priority {
    color: var(--gold);
}

.coming-soon-banner {
    background: rgba(52, 211, 153, 0.08);
    border: 1px solid rgba(52, 211, 153, 0.22);
    border-radius: 14px;
    padding: 1.1rem 1.2rem;
    margin: 0 0 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.coming-soon-icon {
    color: var(--ok);
    font-size: 1.25rem;
    margin-top: 0.15rem;
}

.coming-soon-banner h4 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    color: var(--text);
}

.coming-soon-banner p {
    margin: 0;
    font-size: 0.9rem;
}

html[dir="rtl"] .section-header,
html[dir="rtl"] .faq-section .text-center,
html[dir="rtl"] .contact-card,
html[dir="rtl"] .social-links {
    text-align: right;
}

html[dir="rtl"] .faq-item li {
    padding-left: 0;
    padding-right: 1.1rem;
}

html[dir="rtl"] .faq-item li::before {
    left: auto;
    right: 0;
}

html[dir="rtl"] .btn-contact,
html[dir="rtl"] .contact-card {
    align-items: flex-end;
}

html[dir="rtl"] .contact-card {
    align-items: stretch;
}

@media (max-width: 768px) {
    .contact-content {
        padding-top: 1.15rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .response-banner {
        flex-direction: column;
    }
}
