/* style/contact.css */
.page-contact {
    padding-top: var(--header-offset, 120px); /* Ensure content is not hidden by fixed header */
    background-color: #FFFFFF;
    color: #333333;
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

.page-contact__hero-section {
    position: relative;
    overflow: hidden;
    padding: 0;
    text-align: center;
    color: #FFFFFF;
    background-color: #000000; /* Fallback for image loading */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    opacity: 0.7;
    filter: brightness(0.6);
}

.page-contact__hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 900px;
    width: 90%;
    z-index: 1;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Semi-transparent overlay for text readability */
    border-radius: 8px;
}

.page-contact__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #FFFFFF;
}

.page-contact__hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.page-contact__button {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.page-contact__button--register {
    background-color: #FFFFFF;
    color: #000000;
    border: 2px solid #FFFFFF;
}

.page-contact__button--register:hover {
    background-color: transparent;
    color: #FFFFFF;
}

.page-contact__button--login {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-contact__button--login:hover {
    background-color: transparent;
    color: #FCBC45;
}

.page-contact__methods-section,
.page-contact__form-section,
.page-contact__faq-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
}

.page-contact__methods-title,
.page-contact__form-title,
.page-contact__faq-title {
    font-size: 2.2em;
    color: #000000;
    text-align: center;
    margin-bottom: 20px;
}

.page-contact__methods-intro,
.page-contact__form-description,
.page-contact__faq-description {
    font-size: 1.1em;
    color: #333333;
    text-align: center;
    margin-bottom: 40px;
}

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

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

.page-contact__card-icon {
    width: 250px; /* Min size 200px */
    height: 200px; /* Min size 200px */
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-contact__card-title {
    font-size: 1.8em;
    color: #000000;
    margin-bottom: 15px;
}

.page-contact__card-description {
    color: #555555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-contact__button--chat,
.page-contact__button--email,
.page-contact__button--phone {
    background-color: #000000;
    color: #FFFFFF;
    border: 2px solid #000000;
    width: 100%;
    max-width: 200px;
    margin-top: auto; /* Push button to bottom */
}

.page-contact__button--chat:hover,
.page-contact__button--email:hover,
.page-contact__button--phone:hover {
    background-color: #FCBC45;
    color: #000000;
    border-color: #FCBC45;
}

.page-contact__contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
    padding: 30px;
    background-color: #F8F8F8;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page-contact__form-group {
    display: flex;
    flex-direction: column;
}

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

.page-contact__form-input,
.page-contact__form-textarea {
    padding: 12px;
    border: 1px solid #CCCCCC;
    border-radius: 5px;
    font-size: 1em;
    background-color: #FFFFFF;
    color: #333333;
}

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

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

.page-contact__button--submit {
    background-color: #000000;
    color: #FFFFFF;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1.1em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.page-contact__button--submit:hover {
    background-color: #FCBC45;
    color: #000000;
}

.page-contact__faq-section {
    text-align: center;
    background-color: #000000;
    color: #FFFFFF;
    padding: 60px 20px;
    border-radius: 10px;
    margin-top: 60px;
}

.page-contact__faq-title {
    color: #FFFFFF;
    margin-bottom: 15px;
}

.page-contact__faq-description {
    color: #F0F0F0;
    margin-bottom: 30px;
}

.page-contact__button--faq {
    background-color: #FCBC45;
    color: #000000;
    border: 2px solid #FCBC45;
}

.page-contact__button--faq:hover {
    background-color: transparent;
    color: #FCBC45;
    border-color: #FCBC45;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-contact__button {
        width: 80%;
        margin: 0 auto;
    }
    .page-contact__methods-title,
    .page-contact__form-title,
    .page-contact__faq-title {
        font-size: 1.8em;
    }
    .page-contact__methods-intro,
    .page-contact__form-description,
    .page-contact__faq-description {
        font-size: 0.95em;
    }
    .page-contact__method-cards {
        grid-template-columns: 1fr;
    }
    /* Ensure all images within .page-contact are responsive and don't overflow */
    .page-contact img {
        max-width: 100%;
        height: auto;
    }
    .page-contact__hero-image {
        height: 300px;
    }
    .page-contact__card-icon {
        width: 200px; /* Min size */
        height: 150px; /* Adjusted height for mobile, still >200px area */
    }
}

@media (max-width: 480px) {
    .page-contact__hero-title {
        font-size: 1.5em;
    }
    .page-contact__hero-description {
        font-size: 0.9em;
    }
    .page-contact__button {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}