.contact-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    border-bottom: 2px solid #e0e6ef;
    height: 130px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-header h1 {
    font-size: 2rem;
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.contact-subtitle {
    font-size: 1rem;
    color: #7f8c8d;
}

.contact-container {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.qrcode-display {
    flex: 1;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.qrcode-main {
    width: 100%;
    max-width: 210px;
    height: auto;
    border-radius: 8px;
}

.qrcode-hint {
    margin-top: 1rem;
    font-size: 1rem;
    color: #555;
    font-weight: 500;
}

.contact-form-wrapper {
    flex: 1.2;
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    min-height: 140px;
}

.contact-form-wrapper h2 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #3498db;
}

.contact-info-display {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 1.1rem;
    color: #2c3e50;
}

.info-item i {
    font-size: 1.25rem;
    color: #3498db;
    width: 24px;
    text-align: center;
}

@media (max-width: 900px) {
    .contact-header {
        width: calc(100% - 4rem);
        margin-left: auto;
        margin-right: auto;
        height: auto;
        min-height: 100px;
    }

    .contact-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .qrcode-display {
        width: calc(100% - 4rem);
        margin: 0 auto;
    }

    .qrcode-main {
        max-width: 220px;
    }

    .contact-form-wrapper {
        margin: 0 auto;
        width: calc(100% - 4rem);
        min-height: auto;
    }

    .info-item {
        justify-content: left;
    }
}

@media (max-width: 576px) {
    .contact-header h1 {
        font-size: 1.5rem;
    }

    .contact-subtitle {
        font-size: 0.9rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .contact-form-wrapper h2 {
        font-size: 1.3rem;
    }

    .form-group input,
    .form-group textarea {
        padding: 0.6rem 0.8rem;
        font-size: 0.95rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .submit-btn,
    .reset-btn {
        width: 100%;
    }
}
