/* contact.css */

:root {
    --main-color: #2F6BFF;
    --secondary-color: #6FA3FF;
    --button-gradient: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%);
    --card-bg-color: #FFFFFF;
    --background-color: #F4F7FB;
    --text-main-color: #1F2D3D;
    --custom-color-1776249996415: #000000; /* Black */
    --border-color: #D6E2FF;
    --glow-color: #A5C4FF;
}

.page-contact {
    background-color: var(--background-color);
    color: var(--text-main-color);
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Add some bottom padding */
}

.page-contact__hero-section {
    position: relative;
    overflow: hidden;
    margin-bottom: 40px;
    background-color: #0a0909; /* Dark background for hero */
    color: #FFFFFF; /* Ensure text is visible on dark background */
    padding-top: 10px; /* Small top padding for first section */
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit hero image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-width: 200px; /* Explicit min size */
    min-height: 200px; /* Explicit min size */
}

.page-contact__hero-content {
    max-width: 1200px; /* Consistent with boxed layout */
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

.page-contact__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1, no fixed large size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    color: #FFFFFF; /* Text on dark background */
}

.page-contact__description {
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
    color: #E0E0E0; /* Lighter text on dark background */
}

.page-contact__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 40px;
    color: var(--custom-color-1776249996415); /* Headings use black */
}

.page-contact__methods-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 60px;
}

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

.page-contact__method-card {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-contact__method-icon {
    width: 200px; /* Explicit minimum display width */
    height: 200px; /* Explicit minimum display height */
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    object-fit: contain; /* Ensures the image fits within the 200x200 box */
}

.page-contact__method-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--custom-color-1776249996415); /* Black for titles */
}

.page-contact__method-detail {
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--text-main-color);
}

.page-contact__method-button {
    display: inline-block;
    padding: 12px 25px;
    background: var(--button-gradient);
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: opacity 0.3s ease, transform 0.3s ease;
    min-width: 120px; /* Ensure button is not too small */
}

.page-contact__method-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-contact__form-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 60px;
}

.page-contact__form-description {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--text-main-color);
}

.page-contact__form {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    padding: 40px;
    border: 1px solid var(--border-color);
}

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

.page-contact__label {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--custom-color-1776249996415); /* Black for labels */
}

.page-contact__input,
.page-contact__textarea {
    width: calc(100% - 22px); /* Account for padding and border */
    padding: 12px 10px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--text-main-color);
    background-color: #F8FAFC; /* Slightly different background for inputs */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__input:focus,
.page-contact__textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px var(--glow-color); /* Use glow color */
    outline: none;
}

.page-contact__textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background: var(--button-gradient);
    color: #FFFFFF;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.page-contact__submit-button:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.page-contact__faq-section {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    margin-bottom: 60px;
}

.page-contact__faq-list {
    display: grid;
    gap: 20px;
}

.page-contact__faq-item {
    background-color: var(--card-bg-color);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    padding: 25px;
    border: 1px solid var(--border-color);
    cursor: pointer; /* Indicate clickable */
    overflow: hidden; /* For transition */
}

.page-contact__faq-question {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--custom-color-1776249996415); /* Black for questions */
    position: relative;
    padding-right: 30px; /* Space for indicator */
}

.page-contact__faq-question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--main-color);
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-question::after {
    content: '-';
    transform: translateY(-50%) rotate(0deg); /* No rotation needed for '-' */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding-top: 0; /* Initially no padding-top */
    padding-bottom: 0; /* Initially no padding-bottom */
    font-size: 1rem;
    color: var(--text-main-color);
}

.page-contact__faq-item.active .page-contact__faq-answer {
    padding-top: 15px; /* Add padding when active */
    padding-bottom: 10px;
}

.page-contact__faq-answer a {
    color: var(--main-color);
    text-decoration: none;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-contact__hero-content {
        padding: 30px 15px;
    }

    .page-contact__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .page-contact__description {
        font-size: 1rem;
    }

    .page-contact__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-top: 40px;
        margin-bottom: 30px;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }

    .page-contact__method-card {
        padding: 25px;
    }

    .page-contact__form {
        padding: 30px;
    }

    .page-contact__input,
    .page-contact__textarea {
        width: calc(100% - 20px); /* Adjust for smaller padding */
        padding: 10px;
    }

    /* Mobile overflow prevention - all images must scale down */
    .page-contact img {
        max-width: 100%;
        height: auto;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-section {
        margin-bottom: 20px;
    }

    .page-contact__hero-content {
        padding: 20px 10px;
    }

    .page-contact__main-title {
        font-size: clamp(1.8rem, 9vw, 2.2rem);
    }

    .page-contact__description {
        font-size: 0.9rem;
    }

    .page-contact__section-title {
        font-size: clamp(1.6rem, 8vw, 2rem);
        margin-top: 30px;
        margin-bottom: 20px;
    }

    .page-contact__method-card {
        padding: 20px;
    }

    .page-contact__method-title {
        font-size: 1.3rem;
    }

    .page-contact__method-detail {
        font-size: 0.9rem;
    }

    .page-contact__method-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .page-contact__form {
        padding: 20px;
    }

    .page-contact__submit-button {
        padding: 12px;
        font-size: 1rem;
    }

    .page-contact__faq-question {
        font-size: 1.1rem;
    }

    .page-contact__faq-answer {
        font-size: 0.9rem;
    }
}