/* style/contact.css */

:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --text-dark: #333333;
    --text-light: #ffffff;
    --bg-light: #f9f9f9;
    --bg-dark: #26A9E0;
    --login-button-color: #EA7C07;
}

.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--secondary-color); /* Default light background */
}

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

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

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

/* 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: var(--header-offset, 120px); /* Ensure spacing from fixed header */
    background: linear-gradient(135deg, var(--primary-color), #4db9e7);
    color: var(--text-light);
    overflow: hidden;
}

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

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    margin-top: -150px; /* Overlap with image for visual effect */
    padding-top: 50px;
    background: linear-gradient(to top, rgba(38, 169, 224, 0.8), transparent);
}

.page-contact__main-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-contact__intro-text {
    font-size: 20px;
    margin-bottom: 30px;
    color: var(--text-light);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: var(--login-button-color); /* Use login button color for primary CTA */
    color: var(--text-light);
    text-decoration: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: bold;
    margin-top: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__cta-button:hover {
    background: #e06c00;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Contact Info Section */
.page-contact__info-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.page-contact__info-section .page-contact__section-title {
    color: var(--primary-color);
}

.page-contact__contact-methods {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.page-contact__method-card {
    background: var(--secondary-color);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
    flex: 1 1 calc(33% - 40px);
    max-width: calc(33% - 40px);
    box-sizing: border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

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

.page-contact__method-card p {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.page-contact__email-address, .page-contact__phone-number {
    font-weight: bold;
    color: var(--login-button-color);
    font-size: 18px;
}

.page-contact__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary-color);
    color: var(--text-light);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.page-contact__btn-primary:hover {
    background: #1e87b7;
}

.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid var(--primary-color);
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-contact__btn-secondary:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #209ad6, #1a7fb0);
    color: var(--text-light);
    position: relative;
    overflow: hidden;
}

.page-contact__form-section .page-contact__section-title,
.page-contact__form-section .page-contact__section-description {
    color: var(--text-light);
    position: relative;
    z-index: 2;
}

.page-contact__contact-form {
    max-width: 600px;
    margin: 40px auto 0;
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 2;
}

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

.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: 12px 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.6);
}

.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__submit-button {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    border-radius: 8px;
    background: var(--login-button-color);
    color: var(--text-light);
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: none;
}

.page-contact__submit-button:hover {
    background: #e06c00;
    transform: translateY(-2px);
}

.page-contact__form-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.15;
    overflow: hidden;
}

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

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

.page-contact__faq-section .page-contact__section-title {
    color: var(--primary-color);
}

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

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

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

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

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

.page-contact__faq-question h3 {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-dark);
    pointer-events: none;
}

.page-contact__faq-toggle {
    font-size: 28px;
    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;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

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

.page-contact__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 20px;
    opacity: 0;
    background: #ffffff;
    border-top: none;
    border-left: 1px solid #e0e0e0;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 2000px !important;
    padding: 20px !important;
    opacity: 1;
}

.page-contact__faq-answer p {
    font-size: 16px;
    color: var(--text-dark);
    margin: 0;
}

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

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

.page-contact__support-image {
    text-align: center;
    margin-top: 50px;
}

.page-contact__support-image img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    display: block;
    margin: 0 auto;
}

/* Social Section */
.page-contact__social-section {
    padding: 60px 0;
    background: var(--bg-dark);
    color: var(--text-light);
}

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

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

.page-contact__social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: var(--text-light);
    font-size: 28px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.3s ease;
    position: relative;
}

.page-contact__social-icon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-5px) scale(1.1);
}

/* Placeholder for social icons - in a real scenario, these would be SVG/FontAwesome */
.page-contact__social-facebook::before {
    content: 'f'; /* Example: Font Awesome icon */
    font-family: 'Font Awesome 5 Brands'; /* This would require Font Awesome to be linked */
    font-size: 28px;
}
.page-contact__social-twitter::before {
    content: 't';
    font-family: 'Font Awesome 5 Brands';
    font-size: 28px;
}
.page-contact__social-telegram::before {
    content: 'p';
    font-family: 'Font Awesome 5 Brands';
    font-size: 28px;
}
.page-contact__social-youtube::before {
    content: 'y';
    font-family: 'Font Awesome 5 Brands';
    font-size: 28px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-content {
        margin-top: -100px;
        padding-top: 30px;
    }
    .page-contact__main-title {
        font-size: 40px;
    }
    .page-contact__intro-text {
        font-size: 18px;
    }
    .page-contact__method-card {
        flex: 1 1 calc(50% - 30px);
        max-width: calc(50% - 30px);
    }
    .page-contact__faq-question h3 {
        font-size: 17px;
    }
}

@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important;
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-contact__hero-content {
        margin-top: -80px;
        padding-top: 20px;
    }
    .page-contact__main-title {
        font-size: 32px;
    }
    .page-contact__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }
    .page-contact__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100% !important;
        max-width: 300px !important; /* Limit max width for better appearance */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-contact__container {
        padding: 20px 15px;
    }
    .page-contact__section-title {
        font-size: 28px;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 16px;
        margin-bottom: 30px;
    }
    .page-contact__contact-methods {
        flex-direction: column;
        gap: 20px;
    }
    .page-contact__method-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 15px;
    }
    .page-contact__submit-button {
        padding: 12px;
        font-size: 16px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    .page-contact__faq-question {
        padding: 15px;
    }
    .page-contact__faq-question h3 {
        font-size: 16px;
    }
    .page-contact__faq-toggle {
        font-size: 24px;
        width: 24px;
        height: 24px;
    }
    .page-contact__faq-answer {
        padding: 0 15px;
    }
    .page-contact__faq-item.active .page-contact__faq-answer {
        padding: 15px !important;
    }
    .page-contact__social-links {
        gap: 15px;
    }
    .page-contact__social-icon {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    /* Image responsiveness */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-contact__section, .page-contact__card, .page-contact__container, .page-contact__contact-form {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .page-contact__main-title {
        font-size: 28px;
    }
    .page-contact__intro-text {
        font-size: 15px;
    }
    .page-contact__section-title {
        font-size: 24px;
    }
    .page-contact__faq-question h3 {
        font-size: 15px;
    }
}

/* Color contrast fixes */
.page-contact__dark-section .page-contact__section-title, 
.page-contact__dark-section .page-contact__section-description,
.page-contact__dark-section .page-contact__form-label {
    color: var(--text-light) !important; 
}

.page-contact__light-bg .page-contact__section-title, 
.page-contact__light-bg .page-contact__section-description,
.page-contact__light-bg .page-contact__method-card p {
    color: var(--text-dark) !important;
}

.page-contact__faq-question h3 {
    color: var(--text-dark) !important;
}

.page-contact__faq-item.active .page-contact__faq-answer p {
    color: var(--text-dark) !important;
}