

/* Main contact layout */
.contact-page {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 2.5rem auto 5rem;
    padding: 3rem;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 24px;
    box-shadow:
            0 10px 30px rgba(15, 23, 42, 0.06),
            0 1px 2px rgba(15, 23, 42, 0.04);
}

.contact-hero {
    max-width: 760px;
    margin: 0 auto 3rem;
    text-align: center;
}

.contact-hero .lead {
    margin-left: auto;
    margin-right: auto;
}

.contact-button {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.9rem 1.45rem;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
    transition:
            background 0.2s ease,
            color 0.2s ease,
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.contact-button:hover,
.contact-button:focus-visible {
    background: var(--accent-hover);
    color: #ffffff;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.28);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-card {
    padding: 1.5rem;
    background: #f8fafc;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.contact-card h2,
.contact-note h2 {
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
    font-style: normal;
    color: #0f172a;
}

.contact-card p,
.contact-note p {
    margin-bottom: 0;
    color: #4b5563;
}

.contact-note {
    padding: 1.5rem;
    background: #eff6ff;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius);
}

/* Tablet and down */
@media screen and (max-width: 1024px) {
    .contact-page {
        margin: 1.25rem;
        padding: 2.25rem 1.75rem;
        border-radius: 20px;
        width: auto;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile */
@media screen and (max-width: 640px) {
    .contact-page {
        margin: 0.85rem;
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }

    .contact-hero {
        margin-bottom: 2rem;
        text-align: left;
    }

    .contact-button {
        width: 100%;
        text-align: center;
    }

    .contact-card,
    .contact-note {
        padding: 1.15rem;
        border-radius: 14px;
    }
}