/* style/contact.css */

/* Base Styles for the Contact Page */
.page-contact {
    color: #FFF6D6; /* Text Main color for dark background */
    background-color: #0A0A0A; /* Background color */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

/* Hero Section */
.page-contact__hero-section {
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
    background: linear-gradient(135deg, #F2C14E, #FFD36B);
    text-align: center;
    padding-bottom: 60px; /* Add some bottom padding */
}

.page-contact__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Image on top, text below */
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-contact__hero-text-container {
    max-width: 800px;
    text-align: center;
    padding: 0 20px;
}

.page-contact__main-title {
    color: #111111; /* Darker text for hero title on light gradient background */
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
}

.page-contact__hero-description {
    color: #333333; /* Darker text for description on light gradient background */
    font-size: clamp(1rem, 2vw, 1.25rem);
    margin-bottom: 30px;
}

/* Section Titles and Text Blocks */
.page-contact__section-title {
    color: #F2C14E; /* Main color for section titles */
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-top: 60px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(242, 193, 78, 0.3);
}

.page-contact__text-block {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #FFF6D6; /* Text Main color */
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: justify;
}

.page-contact__text-block strong {
    color: #FFD36B; /* Auxiliary color for emphasis */
}

/* Buttons */
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #ffffff; /* White text for primary button */
    box-shadow: 0 5px 15px rgba(242, 193, 78, 0.4);
    margin-top: 20px;
}

.page-contact__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.6);
}

.page-contact__btn-secondary {
    background-color: transparent;
    color: #F2C14E; /* Main color for secondary button text */
    border: 2px solid #F2C14E; /* Border color */
    margin-top: 15px;
}

.page-contact__btn-secondary:hover {
    background-color: #F2C14E;
    color: #111111; /* Dark text on hover */
}

/* Method Cards */
.page-contact__methods-section {
    padding: 60px 0;
}

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

.page-contact__card {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-contact__card-image {
    width: 100%;
    max-width: 300px; /* Example max-width for card images */
    height: auto;
    display: block;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Enforce minimum size */
    min-width: 200px;
}

.page-contact__card-title {
    color: #FFD36B; /* Auxiliary color for card titles */
    font-size: 1.7rem;
    margin-bottom: 15px;
}

.page-contact__card-description {
    color: #FFF6D6; /* Text Main color */
    font-size: 1rem;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow description to take available space */
}

/* FAQ Section */
.page-contact__faq-section {
    padding: 60px 0;
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 40px auto;
    border-top: 1px solid #3A2A12; /* Border color */
}

.page-contact__faq-item {
    border-bottom: 1px solid #3A2A12; /* Border color */
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: rgba(242, 193, 78, 0.05);
}

.page-contact__faq-question h3 {
    color: #F2C14E; /* Main color for FAQ questions */
    font-size: 1.25rem;
    margin: 0;
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 1.8rem;
    color: #FFD36B; /* Auxiliary color for toggle icon */
    font-weight: 700;
    margin-left: 20px;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Rotate for minus sign */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #FFF6D6; /* Text Main color */
    font-size: 1rem;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 15px 15px 20px 15px;
}

.page-contact__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
}

/* Feedback Section */
.page-contact__feedback-section {
    padding: 60px 0;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto;
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 10px;
    color: #FFD36B; /* Auxiliary color for labels */
    font-size: 1.1rem;
    font-weight: 600;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    background-color: #0A0A0A; /* Background color */
    color: #FFF6D6; /* Text Main color */
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 246, 214, 0.6);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #F2C14E; /* Main color on focus */
    outline: none;
    box-shadow: 0 0 0 3px rgba(242, 193, 78, 0.3);
}

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

/* Location Section */
.page-contact__location-section {
    padding: 60px 0;
    text-align: center;
}

.page-contact__map-placeholder {
    margin: 40px auto;
    max-width: 800px;
    border: 2px solid #3A2A12;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__address-text {
    margin-top: 20px;
    font-size: 1.1rem;
    color: #FFF6D6;
}

.page-contact__address-text strong {
    color: #FFD36B;
}

/* Social Media Section */
.page-contact__social-media-section {
    padding: 60px 0 80px 0;
    text-align: center;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 40px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
}

.page-contact__social-icon-link {
    display: inline-block;
    transition: transform 0.3s ease;
}

.page-contact__social-icon-link:hover {
    transform: translateY(-5px) scale(1.05);
}

.page-contact__social-icon {
    width: 200px; /* Enforce minimum size */
    height: 200px; /* Enforce minimum size */
    object-fit: contain;
    border-radius: 8px; /* Slightly rounded corners for visual appeal */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile: controlled by shared's media */
        padding-bottom: 40px;
    }

    .page-contact__main-title {
        font-size: 2.2rem;
    }

    .page-contact__hero-description {
        font-size: 1rem;
    }

    .page-contact__section-title {
        font-size: 2rem;
        margin-top: 40px;
        margin-bottom: 20px;
    }

    .page-contact__text-block {
        font-size: 1rem;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__method-cards {
        grid-template-columns: 1fr;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__card {
        padding: 20px;
    }

    .page-contact__card-title {
        font-size: 1.5rem;
    }

    .page-contact__card-description {
        font-size: 0.95rem;
    }

    .page-contact__faq-list,
    .page-contact__contact-form {
        margin: 30px auto;
    }

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

    .page-contact__faq-answer {
        padding-left: 10px;
        padding-right: 10px;
    }

    .page-contact__contact-form {
        padding: 30px 20px;
    }

    .page-contact__form-label {
        font-size: 1rem;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
    }

    .page-contact__social-links {
        gap: 20px;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column; /* Stack social icons vertically on mobile */
        align-items: center;
    }

    /* All images must be responsive */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* All containers with images/buttons must be responsive */
    .page-contact__hero-section,
    .page-contact__introduction-section,
    .page-contact__methods-section,
    .page-contact__faq-section,
    .page-contact__feedback-section,
    .page-contact__location-section,
    .page-contact__social-media-section,
    .page-contact__container,
    .page-contact__card,
    .page-contact__contact-form,
    .page-contact__method-cards,
    .page-contact__social-links {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        /* padding-left and padding-right are handled by specific elements */
    }
    
    /* Buttons specific mobile overrides */
    .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; /* Ensure padding inside button */
        padding-right: 15px;
    }

    .page-contact__social-icon {
        width: 200px; /* Keep at least 200px as per rule */
        height: 200px;
        max-width: 100% !important; /* Ensure they don't overflow */
    }
}