/* style/contact.css */

/* Variables */
:root {
    --primary-color: #26A9E0;
    --secondary-color: #EA7C07; /* From custom colors 'Login' */
    --text-dark: #333333;
    --text-light: #ffffff;
    --background-light: #ffffff;
    --background-dark: #1a1a1a; /* Assuming a dark background for some sections if primary color is used */
    --border-color: #e0e0e0;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.2);
}

/* Base styles for page content, assuming body background is light from shared.css */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark); /* Default text color for light backgrounds */
    background-color: var(--background-light); /* Default background, though body handles main background */
}

/* Ensure all images are responsive by default within page-contact scope */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
  /* No filter properties allowed */
}

/* Section general styling */
.page-contact__section-title {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 20px;
    padding-top: 20px;
}

.page-contact__section-description {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
    color: #555555;
}

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

/* HERO Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    overflow: hidden; /* Ensure no overflow */
}

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

.page-contact__hero-image-main {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 30px;
    box-shadow: 0 8px 20px var(--shadow-medium);
}

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

.page-contact__hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Using clamp for H1 font-size */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.25rem;
    color: var(--text-dark);
    max-width: 900px;
    margin: 0 auto 30px;
}

.page-contact__hero-cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    flex-shrink: 0;
}

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

.page-contact__cta-button--primary:hover {
    background: #1e87b7; /* Darker shade of #26A9E0 */
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}

.page-contact__cta-button--secondary {
    background: var(--text-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-contact__cta-button--secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px var(--shadow-medium);
}


/* Contact Info Section */
.page-contact__info-section {
    padding: 60px 0;
    background: #f9f9f9;
}

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

.page-contact__info-card {
    background: var(--background-light);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px var(--shadow-light);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__info-card-image {
    width: 100%; /* Ensure image fills card width */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-contact__info-card-text {
    font-size: 16px;
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1; /* Allow text to grow and push button to bottom */
}

.page-contact__info-detail {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-contact__link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
}

.page-contact__link:hover {
    text-decoration: underline;
}

.page-contact__btn-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    margin-top: auto; /* Push to bottom of card */
    transition: background-color 0.3s ease;
}

.page-contact__btn-link:hover {
    background: #1e87b7; /* Darker shade of #26A9E0 */
}

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    color: var(--text-light);
    font-size: 18px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
    background: #1e87b7; /* Darker shade of #26A9E0 */
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background: var(--primary-color); /* Using brand color for dark section */
    color: var(--text-light); /* Light text for dark background */
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
    color: var(--text-light);
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.1); /* Slightly transparent white for form background */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-medium);
    position: relative;
    z-index: 1; /* Ensure form is above image if layered */
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    font-size: 16px;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    font-size: 16px;
    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: rgba(255, 255, 255, 0.7);
}

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

.page-contact__btn-submit {
    display: block;
    width: 100%;
    padding: 18px;
    background: var(--secondary-color); /* Login color #EA7C07 */
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
}

.page-contact__btn-submit:hover {
    background: #cc6d06; /* Darker shade of #EA7C07 */
    transform: translateY(-2px);
}

.page-contact__form-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-medium);
}

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--background-light);
  box-shadow: 0 2px 10px var(--shadow-light);
}
details.page-contact__faq-item summary.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--text-dark);
}
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: #f5f5f5;
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: var(--primary-color);
}
.page-contact__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #666;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}
details.page-contact__faq-item[open] .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to become cross */
}
details.page-contact__faq-item .page-contact__faq-answer {
  padding: 0 25px 20px;
  background: #f9f9f9;
  border-radius: 0 0 8px 8px;
  color: #555555;
  font-size: 16px;
}
.page-contact__faq-answer p {
    margin-bottom: 15px;
}
.page-contact__btn-small {
    display: inline-block;
    padding: 8px 15px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 10px;
}
.page-contact__btn-small:hover {
    background: #1e87b7; /* Darker shade of #26A9E0 */
}
.page-contact__faq-image {
    width: 100%;
    height: auto;
    max-width: 800px;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--shadow-medium);
}


/* CTA Banner Section */
.page-contact__cta-banner {
    background: linear-gradient(90deg, var(--primary-color) 0%, #1e87b7 100%); /* Gradient background */
    padding: 80px 20px;
    text-align: center;
    color: var(--text-light);
}

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

.page-contact__cta-banner-description {
    font-size: 20px;
    max-width: 900px;
    margin: 0 auto 40px;
}

.page-contact__cta-banner-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: clamp(2rem, 4.5vw, 3rem);
    }
    .page-contact__hero-description {
        font-size: 1.1rem;
    }
    .page-contact__section-title {
        font-size: 32px;
    }
    .page-contact__cta-banner-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: 10px !important; /* Small top padding for mobile, body handles --header-offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__hero-image-main {
        border-radius: 8px;
        margin-bottom: 20px;
    }

    .page-contact__hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        margin-bottom: 10px;
    }

    .page-contact__hero-description {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .page-contact__hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    .page-contact__cta-button {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 16px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__section-title {
        font-size: 28px;
    }
    .page-contact__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-contact__container {
        padding: 0 15px; /* Adjust container padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    /* Mobile image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-contact__info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .page-contact__info-card {
        padding: 25px;
    }
    .page-contact__info-card-title {
        font-size: 20px;
    }
    .page-contact__info-card-image {
        height: 180px;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
    }
    .page-contact__form-group {
        margin-bottom: 20px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea,
    .page-contact__btn-submit {
        padding: 12px;
        font-size: 16px;
    }

    details.page-contact__faq-item summary.page-contact__faq-question {
        padding: 15px 20px;
    }
    .page-contact__faq-qtext {
        font-size: 16px;
    }
    .page-contact__faq-toggle {
        font-size: 24px;
        width: 24px;
    }
    details.page-contact__faq-item .page-contact__faq-answer {
        padding: 0 20px 15px;
        font-size: 15px;
    }

    .page-contact__cta-banner {
        padding: 60px 15px;
    }
    .page-contact__cta-banner-title {
        font-size: 28px;
    }
    .page-contact__cta-banner-description {
        font-size: 16px;
    }
    .page-contact__cta-banner-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    .page-contact__section-title {
        font-size: 24px;
    }
    .page-contact__cta-banner-title {
        font-size: 24px;
    }
}