

a { text-decoration: none;
    color:inherit;}

/* Sections */
.section {
    padding: 5rem 2rem;
    max-width: 1400px; /* Add this line */
    margin:0 auto;
}

.section h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section p {
    max-width: 800px;
    margin: 0 auto 2rem;
}



/* Contact Section */
#contact {
    padding: 5rem 2rem;
}

.contact-container {
    display: flex;
    gap: 2rem;
}

.contact-image {
    flex: 0 0 60%; /* Image takes 60% width */
    max-width: 60%;  /* Limit maximum width */
}

.old-contact-form {/* oriringal */
    flex: 1; /* Form takes remaining space */
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
}

.contact-form {
    //flex: 0 0 300px; /* Form has a fixed width of 300px */
    flex:1;
    padding: 20px;
    background-color: #f8f8f8;
    border-radius: 5px;
    width: 300px;  /* Explicitly set the width for consistency*/
}

.contact-image img {
    width: auto;
    height: 100vh;
    border-radius: 5px;
}

.form-fields {
    display: flex;
    flex-direction: column; /* Stack fields vertically */
    gap: 1rem;
}

.field {
    margin-bottom: 0.5rem;
}

.field label {
    font-weight: bold;
    margin-bottom: 0.25rem;
}

.field input, .field textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

button[type="submit"] {
    background-color: black;
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    width: 100%; /* Full width button */
    margin-top: 1rem;
}

/* Social Media Buttons */
.social-icons {
    //display: block;
    //flex-direction: column;
    justify-content: flex-start;  /* Left align the buttons */
    margin-top: 2rem;
}

.social-icons a {
    display: block;
}

.social-icons a img {
    width: 3rem;                /* Set icon size to 1rem */
    height: auto;
    margin-right: 1rem;         /* Add spacing between icons */
    vertical-align: middle;
    align-items: center;          /* Vertically center items */
}


/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }

    .contact-image {
        flex: 1; /* Image takes full width on smaller screens */
        max-width: none;
    }

    .contact-form {
        padding: 1rem;
        width: auto; /*newly added*/
    }
}


/* Style for the QR Code Container */
.qr-code-container {
    /display: none; /* Initially hidden */
    display: flex;
    flex-direction: row;
    position: fixed;  /* Fixed positioning, covers entire screen */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8); /* White with 80% opacity */
    z-index: 999; /* Ensure it's on top of other elements */
    justify-content: center;
    text-align: center;
    align-items: center;
    
}

.qr-code {
    display: flex;
    flex-direction: column;
    width: 750px;
    max-width: 25%;  /* Adjust size as needed */
    height: auto;
    margin: 1rem; /* Add some margin around the QR code */

}

.qr-code img {
    width:100%;
}

.hidden {
    display: none;
}

/* Hover effect for WeChat icon (optional) - to visually indicate the QR code will appear */
#wechat-icon:hover + .qr-code-container {
    //display: block; /* Show on hover */
}

#closeButton {
    vertical-align: top;
    align-items:start;
    background-color: rgba(0, 0, 0, 0.9);
    font-family: monospace;
    width:30px;
    font-size: 22px;
    line-height:1.5;
    color: white;
    border:none;
    border-radius: 15px;
    cursor: pointer;
}


/* Responsive Design */
@media (max-width: 768px) {
    .section {
        padding: 3rem 1rem;
    }
}

