/* style/contact.css */
/* body đã padding-top: var(--header-offset) bởi shared.css, không lặp lại ở đây */

:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color: #08160F;
    --text-main: #F2FFF6;
    --text-secondary: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green: #0A4B2C;
}

.page-contact {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page, assuming dark body bg */
    background-color: var(--background-color); /* Apply the specified background color */
    line-height: 1.6;
    font-size: 16px;
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-contact__section-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive font size */
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 30px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.05em;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: var(--text-secondary);
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-contact__hero-section {
    display: flex;
    flex-direction: column; /* Stacks children vertically */
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px 0 60px 0; /* Small top padding, then larger bottom padding */
    background-color: var(--background-color); /* Fallback background */
    overflow: hidden; /* Ensure no overflow from image */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height of the image */
    overflow: hidden;
}

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

.page-contact__hero-content {
    padding: 20px;
    max-width: 900px;
    color: var(--text-main);
    margin-top: 30px; /* Spacing between image and content */
}

.page-contact__main-title {
    font-size: clamp(32px, 5vw, 56px); /* Use clamp for responsive H1 */
    color: var(--gold-color);
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.03em;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 100%; /* Ensure H1 doesn't overflow */
}

.page-contact__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
    line-height: 1.5;
}

.page-contact__cta-button {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    opacity: 0.9;
}

/* Intro Section */
.page-contact__intro-section {
    padding: 60px 0;
    background-color: var(--background-color);
    border-bottom: 1px solid var(--divider-color);
}

/* Why Contact Section */
.page-contact__why-contact-section {
    padding: 80px 0;
    background-color: var(--deep-green); /* Using Deep Green for a dark section */
    color: var(--text-main);
}

.page-contact__why-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__why-contact-item {
    background-color: var(--card-bg); /* Darker background for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__why-contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__why-contact-image {
    width: 100%;
    max-width: 250px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-contact__item-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-contact__item-description {
    color: var(--text-secondary);
    font-size: 1em;
}

/* Methods Section */
.page-contact__methods-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-contact__method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__method-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-contact__card-title {
    font-size: 1.6em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-contact__card-description {
    color: var(--text-secondary);
    font-size: 1em;
    margin-bottom: 25px;
    flex-grow: 1; /* Allows description to take available space */
}

.page-contact__btn-primary {
    display: inline-block;
    background: var(--button-gradient);
    color: var(--text-main);
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1em;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    max-width: 100%; /* Button responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

/* Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: var(--deep-green);
    color: var(--text-main);
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0 auto;
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-main);
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

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

/* FAQ Section */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: var(--background-color);
}

.page-contact__faq-list {
    margin-top: 40px;
}

.page-contact__faq-item {
    background-color: var(--card-bg);
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05); /* Slightly lighter background for summary */
    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 Chrome */
}

.page-contact__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-contact__faq-qtext {
    flex-grow: 1;
    color: var(--gold-color);
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    margin-left: 15px;
    color: var(--primary-color);
}

.page-contact__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--text-secondary);
    font-size: 1em;
    line-height: 1.6;
    max-height: 0; /* Initial state for div-based FAQ, browser handles for details */
    overflow: hidden;
    transition: max-height 0.5s ease-out;
}

.page-contact__faq-item[open] .page-contact__faq-answer {
    max-height: fit-content; /* Adjust for details tag */
    max-height: 1000px; /* Fallback for older browsers or if content is dynamic */
    transition: max-height 0.5s ease-in;
}

/* Commitment Section */
.page-contact__commitment-section {
    padding: 80px 0;
    background-color: var(--background-color); /* Still a dark background for consistency */
    text-align: center;
    border-top: 1px solid var(--divider-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .page-contact__hero-content {
        padding: 15px;
    }

    .page-contact__main-title {
        font-size: clamp(28px, 4.5vw, 48px);
    }

    .page-contact__hero-description {
        font-size: 1em;
    }

    .page-contact__section-title {
        font-size: clamp(24px, 3.5vw, 40px);
    }
}

@media (max-width: 768px) {
    .page-contact__container {
        padding: 0 15px; /* Adjust padding for smaller screens */
    }

    .page-contact__hero-section {
        padding-bottom: 40px;
    }
    
    .page-contact__hero-image-wrapper {
        max-height: 300px;
    }

    .page-contact__hero-content {
        padding: 10px;
        margin-top: 20px;
    }

    .page-contact__main-title {
        font-size: clamp(26px, 6vw, 36px); /* Further adjustment for mobile H1 */
        margin-bottom: 15px;
    }

    .page-contact__hero-description {
        font-size: 0.95em;
        margin-bottom: 25px;
    }

    .page-contact__cta-button,
    .page-contact__btn-primary {
        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;
        font-size: 1em;
    }

    .page-contact__why-contact-grid,
    .page-contact__method-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__section-title {
        font-size: clamp(22px, 5vw, 32px);
        margin-bottom: 20px;
    }

    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-contact__why-contact-section,
    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section {
        padding: 50px 0;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
    }

    .page-contact__form-label {
        font-size: 0.95em;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        font-size: 0.9em;
    }

    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }

    .page-contact__faq-answer {
        font-size: 0.95em;
        padding: 0 20px 15px 20px;
    }

    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-contact__hero-image {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important; /* Allow height to auto-adjust for aspect ratio */
      object-fit: cover !important;
    }

    /* Container for images/videos in mobile */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__why-contact-item,
    .page-contact__method-card,
    .page-contact__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        margin-left: 0;
        margin-right: 0;
    }
    .page-contact__why-contact-item,
    .page-contact__method-card,
    .page-contact__faq-item {
        padding-left: 20px; /* Internal padding for cards/items */
        padding-right: 20px;
    }
    .page-contact__form-section .page-contact__container {
        padding-left: 0;
        padding-right: 0;
    }
    .page-contact__contact-form {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Color Contrast Enforcement */
/* Assuming body background (var(--background)) is dark based on #08160F */
.page-contact {
    color: var(--text-main); /* #F2FFF6 */
}

.page-contact__dark-section,
.page-contact__card,
.page-contact__contact-form {
    background-color: var(--card-bg); /* #11271B */
    color: var(--text-main); /* #F2FFF6 */
}

.page-contact__hero-content {
    color: var(--text-main); /* #F2FFF6 */
}

.page-contact__section-description,
.page-contact__item-description,
.page-contact__card-description,
.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder,
.page-contact__faq-answer {
    color: var(--text-secondary); /* #A7D9B8 */
}

.page-contact__section-title,
.page-contact__main-title,
.page-contact__item-title,
.page-contact__card-title,
.page-contact__faq-qtext {
    color: var(--gold-color); /* #F2C14E */
}

.page-contact__cta-button,
.page-contact__btn-primary {
    background: var(--button-gradient);
    color: var(--text-main); /* #F2FFF6 */
}

.page-contact a {
    color: var(--primary-color); /* Default link color for contrast, can be overridden */
    text-decoration: none;
}

.page-contact a:hover {
    text-decoration: underline;
}

/* Ensure images do not have filters */
.page-contact img {
    filter: none;
}

/* Content area images CSS size lower limit */
.page-contact img:not(.page-contact__hero-image) { /* Exclude hero image from this specific rule if it's already covered by object-fit cover */
    min-width: 200px;
    min-height: 200px;
}
.page-contact__why-contact-image {
    width: 100%; /* Ensure images within cards are responsive */
    height: auto;
    max-width: 400px; /* Example max-width for content images */
}

/* Video responsiveness (if any, though not in current contact page) */
.page-contact video,
.page-contact__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

.page-contact__video-section,
.page-contact__video-container,
.page-contact__video-wrapper {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-contact video,
  .page-contact__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__video-section,
  .page-contact__video-container,
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  
  .page-contact__video-section {
    padding-top: 10px !important; /* Small top padding for video section */
  }
  
  .page-contact__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}