/* style/contact.css */

/* Reset & Base Styles */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--white-color, #ffffff); /* Default text color for dark body background */
    background-color: var(--black-color, #0d0d0d); /* Inherit from shared, assumed dark */
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
}

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

.page-contact__section-title {
    font-size: 3em;
    color: var(--main-color, #26A9E0);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: var(--white-color, #f0f0f0);
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #26A9E0, #1a7bb0);
    color: #ffffff;
}

.page-contact__dark-bg {
    color: #ffffff;
    background-color: var(--black-color, #0d0d0d);
}

.page-contact__light-bg {
    color: #333333;
    background-color: #ffffff;
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.3;
}

.page-contact__hero-container {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
}

.page-contact__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    color: #ffffff;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.3em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-contact__btn-primary {
    background-color: var(--main-color, #26A9E0);
    color: #ffffff;
    border: 2px solid var(--main-color, #26A9E0);
}

.page-contact__btn-primary:hover {
    background-color: #1a7bb0;
    transform: translateY(-3px);
}

.page-contact__btn-secondary {
    background-color: #ffffff;
    color: var(--main-color, #26A9E0);
    border: 2px solid var(--main-color, #26A9E0);
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
}

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

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

.page-contact__method-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: #ffffff;
}

.page-contact__method-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.page-contact__card-title {
    font-size: 1.8em;
    color: var(--main-color, #26A9E0);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__card-text {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-contact__card-email, .page-contact__card-phone {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
}

.page-contact__card-button {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95em;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

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

.page-contact__social-icon {
    display: inline-block;
    padding: 10px 15px;
    background-color: var(--main-color, #26A9E0);
    color: #ffffff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-contact__social-icon:hover {
    background-color: #1a7bb0;
}

/* Contact Form Section */
.page-contact__form-section {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
    background: linear-gradient(135deg, #1a7bb0, #26A9E0);
    color: #ffffff;
}

.page-contact__form-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 0.2;
}

.page-contact__contact-form {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 40px auto 0;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #4a4a4a;
    border-radius: 5px;
    background-color: #333333;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-contact__form-textarea {
    resize: vertical;
}

.page-contact__submit-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 50px;
    background-color: var(--main-color, #26A9E0);
    color: #ffffff;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    white-space: normal;
    word-wrap: break-word;
    max-width: 100%;
    box-sizing: border-box;
}

.page-contact__submit-button:hover {
    background-color: #1a7bb0;
    transform: translateY(-3px);
}

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

.page-contact__faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.page-contact__faq-item {
    background-color: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--main-color, #26A9E0);
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.05);
    transition: background-color 0.3s ease;
}

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

.page-contact__faq-toggle {
    font-size: 1.5em;
    font-weight: normal;
    transition: transform 0.3s ease;
    color: #ffffff;
}

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

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Use !important to ensure override */
    padding: 15px 25px 20px;
}

.page-contact__faq-answer p {
    margin: 0;
    color: #f0f0f0;
}

/* Location Section */
.page-contact__location-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.page-contact__location-details {
    text-align: center;
    margin-bottom: 40px;
    color: #f0f0f0;
    font-size: 1.1em;
}

.page-contact__address, .page-contact__working-hours {
    margin-bottom: 10px;
}

.page-contact__map-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #333333;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__map-image {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(80%) brightness(80%); /* Example filter, ensure contrast */
    transition: filter 0.3s ease;
}

.page-contact__map-image:hover {
    filter: grayscale(0%) brightness(100%);
}

/* CTA Bottom Section */
.page-contact__cta-bottom-section {
    padding: 80px 0;
    background-color: var(--main-color, #26A9E0);
    color: #ffffff;
    text-align: center;
}

.page-contact__cta-bottom-section .page-contact__section-title {
    color: #ffffff;
}

.page-contact__cta-bottom-section .page-contact__section-description {
    color: #f0f0f0;
}

.page-contact__cta-buttons-group {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__hero-description {
        font-size: 1.2em;
    }
    .page-contact__section-title {
        font-size: 2.5em;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 16px;
        line-height: 1.6;
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
    }
    .page-contact__hero-section {
        min-height: 500px;
        padding: 60px 0;
    }
    .page-contact__hero-title {
        font-size: 2.5em;
    }
    .page-contact__hero-description {
        font-size: 1.1em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__section-description {
        font-size: 1em;
    }
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }
    .page-contact__method-card,
    .page-contact__contact-form,
    .page-contact__faq-list,
    .page-contact__map-container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-contact__cta-button,
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .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-group {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }

    /* Image responsive */
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-contact__hero-image,
    .page-contact__form-background-image,
    .page-contact__map-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* Video responsive (if any) */
    .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: var(--header-offset, 120px) !important; /* Ensure video section has correct mobile padding */
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__cta-button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-contact__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-contact__faq-answer {
        padding: 0 20px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 10px 20px 15px;
    }
}