/* style/support.css */

/* Custom properties for colors */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #f9f9f9;
    --background-dark: #2087b7; /* A slightly darker shade of primary for contrast */
    --button-login: #EA7C07;
}

.page-support {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--secondary-color); /* Matches body background from shared.css */
    padding-top: 0; /* Assuming shared.css handles body padding-top */
}

.page-support__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.page-support__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

.page-support__section-title--light {
    color: var(--text-light);
}

.page-support__section-description {
    font-size: 18px;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-dark);
}

.page-support__section-description--light {
    color: var(--text-light);
}

/* HERO Section - Main visual for Support Page */
.page-support__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    background-color: var(--primary-color); /* Use primary color as background */
    color: var(--text-light);
    padding-top: var(--header-offset, 120px);
}

.page-support__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.page-support__hero-image {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 30px;
    min-width: 200px; /* Ensure minimum size */
    min-height: 200px;
}

.page-support__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
}

.page-support__hero-title {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: var(--text-light);
}

.page-support__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
}

/* CTA Button Styles */
.page-support__cta-button,
.page-support__btn-primary,
.page-support__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-support__cta-button {
    background: var(--button-login); /* Use specific login color */
    color: var(--text-light);
    border: 2px solid transparent;
}

.page-support__cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-support__btn-primary {
    background: var(--primary-color);
    color: var(--text-light);
    border: 2px solid transparent;
}

.page-support__btn-primary:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-support__btn-secondary {
    background: var(--secondary-color);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-support__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-support__btn-large {
    padding: 18px 50px;
    font-size: 20px;
}

/* Contact Methods Section */
.page-support__contact-methods {
    padding: 60px 0;
    background-color: var(--background-light);
}

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

.page-support__method-card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__method-icon {
    width: 100%;
    height: auto;
    max-width: 250px; /* Adjust max-width for smaller icons */
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-support__method-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.page-support__method-text {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 25px;
    flex-grow: 1;
}

/* FAQ Section */
.page-support__faq-section {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-light);
}

.page-support__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* FAQ item styles */
.page-support__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

/* FAQ default state - answer hidden */
.page-support__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
  background-color: var(--background-light); /* Light background for answer */
  color: var(--text-dark);
}

/* FAQ expanded state - \u26A0\uFE0F Use!important and sufficiently large max-height */
.page-support__faq-item.active .page-support__faq-answer {
  max-height: 2000px !important; /* \u26A0\uFE0F Use!important ensure priority, value large enough for content */
  padding: 20px 15px !important;
  opacity: 1;
  border-radius: 0 0 5px 5px;
}

/* Question styles */
.page-support__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  background: var(--secondary-color);
  color: var(--text-dark);
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  cursor: pointer;
  user-select: none;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.page-support__faq-question:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.page-support__faq-question:active {
  background: #eeeeee;
}

/* Question title styles */
.page-support__faq-question h3 {
  margin: 0;
  padding: 0;
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  pointer-events: none; /* Prevent h3 from blocking click event */
  color: var(--primary-color);
}

/* Toggle icon */
.page-support__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.3s ease, color 0.3s ease;
  flex-shrink: 0;
  margin-left: 15px;
  pointer-events: none; /* Prevent icon from blocking click event */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.page-support__faq-item.active .page-support__faq-toggle {
  color: var(--primary-color); /* Keep primary color for toggle */
  transform: rotate(45deg); /* Optional: rotate for 'x' effect */
}


/* Guide Section */
.page-support__guide-section {
    padding: 60px 0;
    background-color: var(--background-light);
}

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

.page-support__step-card {
    background: var(--secondary-color);
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__step-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    min-width: 200px;
    min-height: 200px;
}

.page-support__step-title {
    font-size: 22px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.page-support__step-text {
    font-size: 16px;
    color: var(--text-dark);
}

/* Why Choose Section */
.page-support__why-choose {
    padding: 60px 0;
    background-color: var(--primary-color); /* Dark background */
    color: var(--text-light);
}

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

.page-support__advantage-item {
    background: var(--background-dark); /* Slightly darker than primary for contrast */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-support__advantage-icon {
    width: 100%;
    height: auto;
    max-width: 200px; /* Ensure minimum display size */
    margin-bottom: 15px;
    min-width: 200px;
    min-height: 200px;
}

.page-support__advantage-title {
    font-size: 20px;
    font-weight: bold;
    color: var(--text-light);
    margin-bottom: 10px;
}

.page-support__advantage-text {
    font-size: 15px;
    color: var(--text-light);
}

/* Bottom CTA Section */
.page-support__cta-bottom {
    padding: 80px 0;
    background-color: var(--background-light);
    text-align: center;
}

.page-support__cta-container {
    max-width: 900px;
}

.page-support__cta-title {
    font-size: 38px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.page-support__cta-description {
    font-size: 20px;
    color: var(--text-dark);
    margin-bottom: 40px;
}

.page-support__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow wrapping for multiple buttons */
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-support__hero-title {
        font-size: 40px;
    }
    .page-support__hero-description {
        font-size: 18px;
    }
    .page-support__section-title {
        font-size: 30px;
    }
    .page-support__cta-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-support {
        font-size: 16px;
        line-height: 1.6;
    }

    /* Mobile Hero Section */
    .page-support__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-support__hero-title {
        font-size: 32px;
    }
    .page-support__hero-description {
        font-size: 16px;
    }
    .page-support__cta-button {
        padding: 12px 30px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* General sections */
    .page-support__container {
        padding: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-support__section-title {
        font-size: 28px;
        padding-top: 30px;
    }
    .page-support__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* Contact Methods Grid */
    .page-support__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__method-card {
        padding: 20px;
    }
    .page-support__method-icon {
        max-width: 200px;
        min-width: 200px; /* Ensure minimum size */
        min-height: 200px;
    }
    .page-support__method-title {
        font-size: 20px;
    }

    /* FAQ Section */
    .page-support__faq-question {
        padding: 15px;
        flex-wrap: wrap;
    }
    .page-support__faq-question h3 {
        font-size: 15px;
        margin-bottom: 0;
        width: calc(100% - 40px);
    }
    .page-support__faq-toggle {
        margin-left: 10px;
        width: 24px;
        height: 24px;
        font-size: 20px;
    }
    .page-support__faq-answer {
        padding: 0 15px;
    }
    .page-support__faq-item.active .page-support__faq-answer {
        padding: 15px !important;
    }

    /* Guide Section */
    .page-support__guide-steps {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__step-icon {
        max-width: 200px;
        min-width: 200px; /* Ensure minimum size */
        min-height: 200px;
    }

    /* Why Choose Section */
    .page-support__advantages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-support__advantage-item {
        padding: 20px;
    }
    .page-support__advantage-icon {
        max-width: 200px; /* Ensure minimum size */
        min-width: 200px;
        min-height: 200px;
    }
    .page-support__advantage-title {
        font-size: 18px;
    }

    /* Bottom CTA Section */
    .page-support__cta-bottom {
        padding: 60px 0;
    }
    .page-support__cta-title {
        font-size: 28px;
    }
    .page-support__cta-description {
        font-size: 16px;
    }
    .page-support__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-support__btn-large {
        padding: 15px 30px;
        font-size: 18px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Image responsive handling */
    .page-support img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    .page-support__section,
    .page-support__card,
    .page-support__container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
    }
}

@media (max-width: 480px) {
    .page-support__hero-title {
        font-size: 28px;
    }
    .page-support__section-title {
        font-size: 24px;
    }
    .page-support__cta-title {
        font-size: 24px;
    }
}