/* style/contact.css */

/* Variables from shared.css are assumed to be available */
/* --primary-color: #FFD700; */
/* --secondary-color: #1A1A1A; */
/* --text-color-dark: #333333; */
/* --text-color-light: #ffffff; */
/* --header-offset: ...; */

.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light body background */
    background-color: #f8f8f8; /* Light background for the main content area */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 80px 20px 60px;
    padding-top: var(--header-offset, 120px); /* Ensures content is below fixed header */
    background-color: var(--secondary-color, #1A1A1A); /* Dark background for hero */
    color: var(--text-color-light, #ffffff);
    text-align: center;
    overflow: hidden; /* For mobile overflow prevention */
}

.page-contact__hero-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.page-contact__hero-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: var(--primary-color, #FFD700);
    font-weight: bold;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.1em;
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box; /* For mobile button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-contact__cta-button--primary {
    background-color: var(--primary-color, #FFD700);
    color: var(--secondary-color, #1A1A1A); /* Gold button with dark text for contrast */
    border: 2px solid var(--primary-color, #FFD700);
}

.page-contact__cta-button--primary:hover {
    background-color: #e6c200; /* Slightly darker gold */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.page-contact__cta-button--secondary {
    background-color: transparent;
    color: var(--primary-color, #FFD700);
    border: 2px solid var(--primary-color, #FFD700);
}

.page-contact__cta-button--secondary:hover {
    background-color: var(--primary-color, #FFD700);
    color: var(--secondary-color, #1A1A1A);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

/* General Section Styling */
.page-contact__section-title {
    font-size: 2.2em;
    color: var(--secondary-color, #1A1A1A);
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-contact__section-description {
    font-size: 1.1em;
    color: #555555;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Contact Methods Section */
.page-contact__methods-section {
    padding: 80px 20px;
    background-color: #ffffff;
    overflow: hidden; /* For mobile overflow prevention */
}

.page-contact__methods-container {
    max-width: 1200px;
    margin: 0 auto;
}

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

.page-contact__method-card {
    background-color: #fefefe;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden; /* For mobile image overflow prevention */
}

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

.page-contact__method-icon {
    width: 100%; /* Ensure image fills card width responsively */
    height: 200px; /* Fixed height for consistency */
    object-fit: cover; /* Cover the area, crop if necessary */
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 100%; /* For mobile image responsiveness */
    display: block; /* For mobile image responsiveness */
}

.page-contact__method-title {
    font-size: 1.5em;
    color: var(--secondary-color, #1A1A1A);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__method-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 25px;
    flex-grow: 1; /* Pushes button to bottom */
}

.page-contact__method-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: var(--primary-color, #FFD700);
    color: var(--secondary-color, #1A1A1A);
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box; /* For mobile button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-contact__method-button:hover {
    background-color: #e6c200;
    transform: translateY(-1px);
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 20px;
    background-color: #f0f0f0;
    overflow: hidden; /* For mobile overflow prevention */
}

.page-contact__form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.page-contact__contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--secondary-color, #1A1A1A);
    font-size: 1.05em;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 8px;
    font-size: 1em;
    color: #333333;
    background-color: #fefefe;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: var(--primary-color, #FFD700);
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.2);
    outline: none;
}

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

.page-contact__submit-button {
    padding: 15px 30px;
    background-color: var(--primary-color, #FFD700);
    color: var(--secondary-color, #1A1A1A);
    border: none;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    align-self: flex-start; /* Align button to start */
    max-width: 100%; /* For mobile button responsiveness */
    box-sizing: border-box; /* For mobile button responsiveness */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow long words to break */
}

.page-contact__submit-button:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Location Section */
.page-contact__location-section {
    padding: 80px 20px;
    background-color: #ffffff;
    overflow: hidden; /* For mobile overflow prevention */
}

.page-contact__location-container {
    max-width: 1200px;
    margin: 0 auto;
}

.page-contact__address-info {
    text-align: center;
    margin-bottom: 40px;
}

.page-contact__address-line {
    font-size: 1.1em;
    color: #555555;
    margin-bottom: 10px;
}

.page-contact__map-placeholder {
    width: 100%;
    height: 450px; /* Fixed height for the map area */
    background-color: #e0e0e0;
    border-radius: 12px;
    overflow: hidden; /* Important for containing the image and border-radius */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* For mobile image responsiveness */
    box-sizing: border-box; /* For mobile image responsiveness */
}

.page-contact__map-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire placeholder */
    display: block; /* For mobile image responsiveness */
    max-width: 100%; /* For mobile image responsiveness */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 2.4em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__method-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-contact__form-container {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-contact {
        font-size: 15px;
    }

    /* Fixed Header Spacing on Mobile */
    .page-contact__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-contact__hero-title {
        font-size: 2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-contact__hero-cta {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent buttons from touching edges */
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Mobile Button Responsiveness */
    .page-contact__cta-button,
    .page-contact__method-button,
    .page-contact__submit-button {
        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 buttons for text */
        padding-right: 15px; /* Ensure padding inside buttons for text */
    }
    
    .page-contact__method-button,
    .page-contact__submit-button {
        margin-left: auto;
        margin-right: auto;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }
    .page-contact__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__location-section {
        padding: 40px 15px; /* Adjust padding for mobile */
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-contact__methods-container,
    .page-contact__form-container,
    .page-contact__location-container {
        padding-left: 0;
        padding-right: 0;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-contact__method-grid {
        grid-template-columns: 1fr; /* Stack cards vertically */
        gap: 20px;
    }

    .page-contact__method-card {
        padding: 25px;
        border-radius: 8px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    /* Mobile Image Responsiveness */
    .page-contact img,
    .page-contact__method-icon,
    .page-contact__map-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important; /* Ensure images scale proportionally */
        display: block !important;
    }

    .page-contact__method-icon {
        height: 180px; /* Slightly reduce height for mobile cards */
    }

    .page-contact__form-container {
        padding: 30px 20px; /* Adjust form padding */
        border-radius: 8px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

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

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 10px 12px;
        font-size: 0.95em;
        border-radius: 6px;
    }

    .page-contact__submit-button {
        padding: 12px 25px;
        font-size: 1.1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__map-placeholder {
        height: 300px; /* Adjust map height for mobile */
        border-radius: 8px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}