.contact-hero {
    background: linear-gradient(to bottom, #f8f1ec, #fff);
    padding: 6em 0 2em;
    text-align: center;
}
.contact-title {
    font-size: 2.5em;
    color: #802440;
    margin-bottom: 0.3em;
}

.contact-subhero {
    background: #fff;
    text-align: center;
    padding-bottom: 2em;
}
.contact-subtitle {
    font-size: 1.5em;
    color: #444;
}
.contact-tagline {
    font-style: italic;
    color: #999;
    margin-top: 0.5em;
}

.contact-info {
    background: #fdf9f7;
    padding: 5em 0;
    font-family: 'Noto Serif TC', serif;
}

.contact-info p:nth-child(1){
    margin-bottom: 2em;
}

.contact-info .section-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 3em;
}
.contact-image {
    flex: 1 1 40%;
    max-width: 500px;
    margin: 0 auto;
}
.contact-image img {
    width: 100%;
    height: auto;
    border-radius: 1em;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}
.contact-text {
    flex: 1 1 50%;
    font-size: 1.05em;
    line-height: 2;
    color: #333;
}
.contact-text a {
    color: #802440;
    text-decoration: underline;
}

.contact-form-section {
    background: #faf6f4;
    padding: 5em 0;
    text-align: center;
}
.contact-form-section h2 {
    color: #802440;
    margin-bottom: 1em;
    font-size: 1.8em;
}
.contact-form {
    max-width: 30em;
    margin: 0 auto;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.2em;
}
.contact-form label {
    font-weight: bold;
    color: #333;
}
.contact-form input,
.contact-form select {
    padding: 0.75em;
    border: 1px solid #ccc;
    border-radius: 0.5em;
    font-size: 1em;
    width: 100%;
    background: #fff;
}
.contact-form button {
    padding: 0.75em;
    border: none;
    background: #802440;
    color: #fff;
    font-size: 1em;
    border-radius: 0.5em;
    cursor: pointer;
    transition: background 0.3s ease;
}
.contact-form button:hover {
    background: #5e1a2f;
}

.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-info .section-container {
        flex-direction: column;
        text-align: left;
    }
    .contact-image,
    .contact-text {
        flex: 1 1 100%;
    }
    .contact-text {
        text-align: center;
    }
}
