/* style/contact.css */

/* Base styling for the contact page */
.page-contact {
    background-color: var(--background-color, #0D0E12); /* Use global var, fallback to custom */
    color: var(--text-main-color, #FFF3E6); /* Use global var, fallback to custom */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* General padding at bottom */
}

/* Hero Section */
.page-contact__hero-section {
    padding: 10px 20px 40px; /* Small top padding, general side/bottom */
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-contact__hero-image-wrapper {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-contact__main-title {
    font-size: 2.8em;
    font-weight: 700;
    margin-bottom: 20px;
    color: #FF8C1A; /* Brand color for H1 */
    text-shadow: 0 0 10px rgba(255, 140, 26, 0.5);
    line-height: 1.2;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__intro-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #FFF3E6;
}

/* Contact Form Section */
.page-contact__form-section {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 40px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-contact__form-image-wrapper {
    flex: 1;
    min-width: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-container {
    flex: 2;
    min-width: 300px;
    background-color: var(--card-bg-color, #17191F); /* Use global var, fallback to custom */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color, #A84F0C);
    box-sizing: border-box;
}

.page-contact__form-title {
    font-size: 2em;
    color: #FF8C1A;
    margin-bottom: 30px;
    text-align: center;
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color, #A84F0C);
    border-radius: 5px;
    background-color: #0D0E12;
    color: #FFF3E6;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #FFA53A;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 165, 58, 0.5);
}

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

.page-contact__submit-button {
    display: block;
    width: 100%;
    padding: 15px 25px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.page-contact__submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 140, 26, 0.4);
}

/* FAQ Section */
.page-contact__faq-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.page-contact__faq-title {
    font-size: 2.2em;
    color: #FF8C1A;
    text-align: center;
    margin-bottom: 40px;
    text-shadow: 0 0 8px rgba(255, 140, 26, 0.3);
}

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid var(--border-color, #A84F0C);
  overflow: hidden;
  background: var(--card-bg-color, #17191F);
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #FFF3E6;
  font-size: 1.1em;
  font-weight: 600;
}
details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
  display: none;
}
details.page-contact__faq-item summary.page-contact__faq-question:hover {
  background: rgba(255, 140, 26, 0.1); /* Light hover effect with brand color */
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 1em; /* Relative to summary font size */
  line-height: 1.5;
  text-align: left;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFA53A; /* Auxiliary color for toggle icon */
  flex-shrink: 0;
  margin-left: 15px;
  width: 28px;
  text-align: center;
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 20px 20px;
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for answer */
  border-radius: 0 0 5px 5px;
  color: #FFF3E6;
}
.page-contact__faq-answer p {
    margin: 0;
    font-size: 1em;
}

/* Customer Service Info Section */
.page-contact__info-section {
    max-width: 1200px;
    margin: 60px auto;
    padding: 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.page-contact__info-title {
    font-size: 2.2em;
    color: #FF8C1A;
    margin-bottom: 30px;
    text-shadow: 0 0 8px rgba(255, 140, 26, 0.3);
}

.page-contact__info-text {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 30px;
    color: #FFF3E6;
}

.page-contact__cta-button-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Ensure buttons wrap on mobile */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-contact__cta-button {
    padding: 15px 30px;
    background: linear-gradient(180deg, #FFA53A 0%, #D96800 100%);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
    max-width: 300px; /* Limit individual button width */
    width: 100%; /* Ensure it takes full width when wrapped */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-contact__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 140, 26, 0.4);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__main-title {
        font-size: 2.5em;
    }
    .page-contact__form-container {
        padding: 30px;
    }
    .page-contact__form-title {
        font-size: 1.8em;
    }
    .page-contact__faq-title,
    .page-contact__info-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    /* Hero Section */
    .page-contact__hero-section {
        padding: 10px 15px 30px;
    }
    .page-contact__main-title {
        font-size: 1.8em !important;
        margin-bottom: 15px;
    }
    .page-contact__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 5px;
    }

    /* Contact Form Section */
    .page-contact__form-section {
        flex-direction: column;
        padding: 0 15px;
        gap: 30px;
    }
    .page-contact__form-image-wrapper,
    .page-contact__form-container {
        min-width: unset;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__form-container {
        padding: 25px;
    }
    .page-contact__form-title {
        font-size: 1.6em;
        margin-bottom: 20px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea,
    .page-contact__submit-button {
        padding: 12px 15px !important;
        font-size: 1em !important;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-contact__submit-button {
        margin: 0 auto;
    }

    /* FAQ Section */
    .page-contact__faq-section {
        padding: 0 15px;
        margin: 40px auto;
    }
    .page-contact__faq-title {
        font-size: 1.8em;
        margin-bottom: 30px;
    }
    details.page-contact__faq-item summary.page-contact__faq-question {
        padding: 15px;
    }
    .page-contact__faq-qtext {
        font-size: 0.95em;
    }
    .page-contact__faq-toggle {
        font-size: 20px;
        width: 24px;
        height: 24px;
    }
    details.page-contact__faq-item .page-contact__faq-answer {
        padding: 0 15px 15px;
    }
    .page-contact__faq-answer p {
        font-size: 0.95em;
    }

    /* Customer Service Info Section */
    .page-contact__info-section {
        padding: 0 15px;
        margin: 40px auto;
    }
    .page-contact__info-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-contact__info-text {
        font-size: 1em;
    }
    .page-contact__cta-button-group {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__cta-button {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important;
        font-size: 1em !important;
    }

    /* Universal image responsive styles for mobile */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
    }

    /* Universal container responsive styles for mobile */
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__form-section,
    .page-contact__faq-section,
    .page-contact__info-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}