.contact-title {
    color: var(--heading-color);
    margin-bottom: 1rem;
}

.contact-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 2.5rem auto;
}

.contact-topics-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 850px;
    margin: 0 auto 2.5rem auto;
}

.contact-topic-pill {
    background: var(--surface-glass, rgba(255, 255, 255, 0.7));
    border: 1px solid rgba(107, 33, 168, 0.25);
    color: var(--heading-color);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

body.dark-mode .contact-topic-pill {
    border-color: rgba(192, 132, 252, 0.3);
    color: var(--color-yellow);
}

.contact-card-wrapper {
    width: 92%;
    max-width: 850px;
    margin: 0 auto 3rem auto;
    border-radius: 24px;
    background: var(--surface-glass, rgba(255, 255, 255, 0.75));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--surface-glass-border, rgba(107, 33, 168, 0.2));
    border-top: 8px solid var(--color-purple);
    box-shadow: 0 15px 40px var(--surface-glass-shadow, rgba(0, 0, 0, 0.1));
    overflow: hidden;
    transition: border-top-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-card-wrapper:hover {
    border-top-color: var(--color-yellow);
}

.contact-card-header {
    padding: 1.5rem 2rem;
    background: linear-gradient(90deg, rgba(107, 33, 168, 0.08), rgba(234, 179, 8, 0.08));
    border-bottom: 1px solid rgba(107, 33, 168, 0.12);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    text-align: left;
}

.contact-card-header h2 {
    font-size: 1.4rem;
    margin: 0;
    color: var(--heading-color);
}

.contact-card-header h2::after {
    display: none;
}

.direct-email-pill {
    background-color: var(--color-purple);
    color: var(--color-white);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 18px;
    border-radius: 100px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s ease, background-color 0.15s ease;
}

.direct-email-pill:hover {
    background-color: var(--color-yellow);
    color: var(--color-black);
    transform: translateY(-2px);
}

.notion-embed-container {
    width: 100%;
    padding: 0.5rem;
    box-sizing: border-box;
    background: #ffffff;
    transition: background-color 0.3s ease;
}

.notion-form-iframe {
    width: 100%;
    height: 640px;
    border: 0;
    border-radius: 16px;
    display: block;
    transition: filter 0.3s ease;
}

body.dark-mode .notion-embed-container {
    background: #141923;
}

body.dark-mode .notion-form-iframe {
    filter: invert(0.92) hue-rotate(180deg) contrast(1.05);
}

@media (max-width: 600px) {
    .contact-card-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }
    .notion-form-iframe {
        height: 700px;
    }
}