.contact-main { 
    padding: 2.5rem 1rem; 
}
.contact-page { 
    max-width: 1000px; 
    margin: 0 auto; 
}
.contact-page-heading h1 {
    font-size: clamp(2.8rem, 5vw, 4rem);
    line-height: 1.02;
    margin: 0 0 0.85rem;
    letter-spacing: -0.03em;
    color: #111;
}

.contact-intro {
    margin: 2.5rem 0 2.5rem 0;
}

.contact-intro p {
    color: #444;
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.65;
}

.contact-section-header {
    margin-bottom: 1.5rem;
}

.contact-section-header h2 {
    font-size: 1.3rem;
    margin-bottom: 0.35rem;
}

.contact-section-header p {
    color: #555;
    margin: 0;
}

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

.contact-card {
    background: #fff;
    border: 1px solid #e6e6e6;
    padding: 1rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    display: grid;
    gap: 0.9rem;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.contact-card-link {
    color: inherit;
    text-decoration: none;
}

.contact-card-link:hover,
.contact-card-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(13, 110, 253, 0.35);
    box-shadow: 0 16px 32px rgba(0,0,0,0.12);
}

.contact-card-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.contact-card-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.contact-card-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.instagram-icon {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 50%, #515bd4 100%);
}

.email-icon {
    background: #0d6efd;
}

.contact-card h2 {
    margin: 0;
    font-size: 1.2rem;
}

.contact-link-text {
    display: inline-block;
    color: #0d6efd;
    text-decoration: none;
    font-weight: 600;
}

.contact-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.contact-help-card {
    background: #f8fbff;
    border: 1px solid #dceafe;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5);
}

.contact-help-card h3 {
    margin-top: 0;
    font-size: 1.05rem;
}

.contact-help-card p {
    margin: 0.6rem 0 0.8rem;
    color: #3b4756;
}

.contact-help-card ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #3b4756;
}

.contact-help-card li {
    margin-bottom: 0.45rem;
}

.line-qr {
    margin-top: 0.6rem;
}

.line-qr img {
    max-width: 140px;
    height: auto;
    display: block;
}

.ai-section {
    margin-top: 1.6rem;
}

.ai-info {
    background: #f7fbff;
    border: 1px solid #dbeafe;
    padding: 1rem;
    border-radius: 8px;
}

.ai-button {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
}

.ai-button:hover {
    opacity: 0.95;
}

.ai-note {
    margin-top: 0.6rem;
    color: #555;
    font-size: 0.95rem;
}

.ai-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    z-index: 1200;
}

.ai-modal[aria-hidden="false"] {
    display: flex;
}

.ai-modal-content {
    width: 90%;
    max-width: 900px;
    height: 80vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.ai-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    font-size: 0.95rem;
    cursor: pointer;
}

.ai-modal-content iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.ai-bubble {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1100;
}

.ai-bubble-btn {
    background: #0d6efd;
    color: #fff;
    border: none;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(13,110,253,0.18);
    cursor: pointer;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #020617;
        color: #e2e8f0;
    }

    .contact-page-heading h1,
    .contact-section-header h2 {
        color: #ffffff;
    }

    .contact-intro p,
    .contact-section-header p,
    .contact-help-card p,
    .contact-help-card ul,
    .ai-note {
        color: #cbd5e1;
    }

    .contact-card,
    .contact-help-card,
    .ai-info {
        background: #111827;
        border-color: rgba(148, 163, 184, 0.22);
        box-shadow: 0 8px 24px rgba(2, 6, 23, 0.35);
    }

    .contact-card h2,
    .contact-help-card h3 {
        color: #f8fafc;
    }

    .contact-link-text {
        color: #7dd3fc;
    }

    .contact-card-link:hover,
    .contact-card-link:focus-visible {
        border-color: rgba(125, 211, 252, 0.35);
        box-shadow: 0 16px 32px rgba(2, 6, 23, 0.42);
    }
}

@media (max-width: 600px) {
    .contact-intro h1 {
        font-size: 1.4rem;
    }
}
