/* General styling for the contact page */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Light text color for dark background */
    background-color: transparent; /* Inherit from body --bg-color */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, assuming body handles --header-offset */
    padding-bottom: 0;
    margin-bottom: 40px;
    display: flex;
    flex-direction: column; /* Ensure image is above content */
    align-items: center;
    text-align: center;
}

.page-contact__hero-image-container {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px; /* Space between image and content */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.page-contact__hero-content {
    max-width: 900px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.page-contact__main-title {
    font-size: 2.8em;
    color: #F2C14E; /* Brand color for main title */
    margin-bottom: 15px;
    font-weight: bold;
    letter-spacing: 1px;
}

.page-contact__description {
    font-size: 1.1em;
    color: #FFF6D6;
    margin-bottom: 20px;
}

/* General Section Styling */
.page-contact__info-section,
.page-contact__form-section,
.page-contact__faq-section,
.page-contact__location-section,
.page-contact__cta-section {
    max-width: 1200px;
    margin: 0 auto 60px auto;
    padding: 0 20px;
}

.page-contact__section-title {
    font-size: 2.2em;
    color: #F2C14E;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1em;
    color: #FFF6D6;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Methods Grid */
.page-contact__contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__contact-card {
    background: #111111; /* Card background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12; /* Border color */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-contact__card-title {
    font-size: 1.5em;
    color: #FFD36B; /* Accent color for card titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card-text {
    font-size: 0.95em;
    color: #FFF6D6;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to grow and push button down */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary,
.page-contact__social-icon,
.page-contact__form-submit-btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-contact__btn-primary,
.page-contact__form-submit-btn {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text on bright button */
    border: none;
}

.page-contact__btn-primary:hover,
.page-contact__form-submit-btn:hover {
    background: linear-gradient(180deg, #FFE080 0%, #E8B42C 100%);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
}

.page-contact__btn-secondary {
    background: transparent;
    color: #FFD36B;
    border: 2px solid #FFD36B;
}

.page-contact__btn-secondary:hover {
    background: #FFD36B;
    color: #111111;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.page-contact__social-icon {
    background: #FFD36B;
    color: #111111;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    font-size: 0.9em;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden; /* Hide extra text if any */
    text-indent: -9999px; /* Hide text, use background icon later */
    position: relative;
}
.page-contact__social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: 60%;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: 0; /* Make icon visible */
}
.page-contact__social-icon:nth-child(1)::before { /* Facebook */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23111111"><path d="M12 2C6.477 2 2 6.477 2 12c0 5.016 3.655 9.182 8.438 9.878V14.62h-2.92V12h2.92V9.32c0-2.87 1.754-4.437 4.302-4.437 1.22 0 2.27.09 2.578.132v2.79h-1.652c-1.296 0-1.547.615-1.547 1.517V12h3.097l-.4 2.62h-2.697v7.258C18.345 21.182 22 17.016 22 12c0-5.523-4.477-10-10-10z"/></svg>');
}
.page-contact__social-icon:nth-child(2)::before { /* Telegram */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23111111"><path d="M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2zm4.5 8.1l-1.9 8.2c-.15.65-.54.81-.88.54l-3.08-2.28-1.5-1.46-2.06-1.32c-.7-.4-.71-.6-.15-.81l8.52-3.3c.66-.26 1.25.16.96.67z"/></svg>');
}
.page-contact__social-icon:nth-child(3)::before { /* Zalo - using generic chat icon as Zalo specific icon might be harder to find in SVG */
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23111111"><path d="M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm-2 12H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z"/></svg>');
}
.page-contact__social-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 211, 107, 0.4);
}


/* Contact Form */
.page-contact__contact-form {
    background: #111111;
    padding: 40px;
    border-radius: 10px;
    max-width: 700px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12;
}

.page-contact__form-group {
    margin-bottom: 20px;
}

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    color: #FFD36B;
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A2A12;
    background: #0A0A0A;
    color: #FFF6D6;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #888;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #F2C14E;
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__form-submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.1em;
}

/* FAQ Section */
.page-contact__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.page-contact__faq-item {
    background: #111111;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.1em;
    color: #FFD36B;
    cursor: pointer;
    font-weight: bold;
    background: #111111;
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

.page-contact__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for details/summary */
}

.page-contact__faq-question:hover {
    background-color: #1a1a1a;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg);
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 0.95em;
    color: #FFF6D6;
    line-height: 1.7;
}

.page-contact__faq-answer p {
    margin-bottom: 10px;
}
.page-contact__faq-answer p:last-child {
    margin-bottom: 0;
}
.page-contact__faq-answer a {
    color: #F2C14E;
    text-decoration: none;
    font-weight: bold;
}
.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

/* Location Section */
.page-contact__location-details {
    background: #111111;
    padding: 40px;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12;
    text-align: center;
}

.page-contact__address-text {
    font-size: 1.1em;
    color: #FFF6D6;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.page-contact__icon-location {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23FFD36B"><path d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5S10.62 6.5 12 6.5s2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.page-contact__map-container {
    width: 100%;
    height: 0;
    padding-bottom: 75%; /* 4:3 aspect ratio (600/800) */
    position: relative;
    background: #0A0A0A;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 25px;
}

.page-contact__map-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-contact__note-text {
    font-size: 0.9em;
    color: #888;
    font-style: italic;
}

/* CTA Section */
.page-contact__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

/* Images responsive base */
.page-contact img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 2.5em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__contact-methods-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    /* HERO 主图区域 */
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding */
        margin-bottom: 30px;
    }
    .page-contact__hero-image-container {
        max-height: 300px;
    }
    .page-contact__hero-content {
        padding: 0 15px;
        margin-bottom: 30px;
    }
    .page-contact__main-title {
        font-size: clamp(1.8em, 7vw, 2.2em);
        margin-bottom: 10px;
    }
    .page-contact__description {
        font-size: 1em;
    }

    /* 其他内容模块 */
    .page-contact__info-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__location-section,
    .page-contact__cta-section {
        margin-bottom: 40px;
        padding: 0 15px; /* Add padding to prevent content touching edges */
    }
    .page-contact__section-title {
        font-size: clamp(1.5em, 6vw, 1.8em);
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* 通用图片与容器 */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__map-container {
        padding-bottom: 100%; /* Make map square on mobile for better view */
    }

    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__contact-form,
    .page-contact__faq-item,
    .page-contact__location-details {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-image-container {
         padding-left: 0 !important;
         padding-right: 0 !important;
    }
    .page-contact__contact-methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__contact-card {
        padding: 25px;
    }

    /* 按钮与按钮容器 */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .page-contact__social-icon,
    .page-contact__form-submit-btn,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container,
    .page-contact__social-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important;
        gap: 15px !important;
    }
    .page-contact__social-icon {
        width: auto !important;
        height: 50px !important;
        line-height: 50px !important;
        border-radius: 8px !important;
        font-size: 1.1em !important;
        text-indent: 0 !important;
        position: relative;
        padding-left: 60px;
        justify-content: flex-start;
    }
    .page-contact__social-icon::before {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 30px;
        height: 30px;
        background-size: contain;
    }

    /* FAQ specific adjustments */
    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-contact__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9em;
    }
    .page-contact__contact-form {
        padding: 25px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
    }
    .page-contact__form-submit-btn {
        padding: 12px;
    }

    /* Contrast emergency fix for specific elements if needed */
    .page-contact__contrast-fix {
      background: #ffffff !important;
      color: #333333 !important;
      border: 1px solid #e0e0e0 !important;
    }

    .page-contact__text-contrast-fix {
      color: #333333 !important;
      text-shadow: none !important;
    }
}