/* style/contact.css */
.page-contact {
    color: #333333; /* Dark text for light body background #f8f8f8 */
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #f8f8f8; /* Inherit from body for consistency */
}

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

.page-contact__hero-section {
    background: linear-gradient(135deg, #FFD70033, #8B000033); /* Subtle gradient with brand colors */
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.page-contact__hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-contact__main-title {
    font-size: 2.8em;
    color: #8B0000; /* Auxiliary color for emphasis */
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.page-contact__description {
    font-size: 1.2em;
    color: #555555;
    margin-bottom: 30px;
}

.page-contact__button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin: 0 10px;
    min-width: 200px; /* Ensure buttons are not too small */
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.page-contact__button--primary {
    background-color: #FFD700; /* Main color */
    color: #8B0000; /* Auxiliary color for text */
    border: 2px solid #FFD700;
}

.page-contact__button--primary:hover {
    background-color: #e6c200;
    transform: translateY(-3px);
}

.page-contact__button--secondary {
    background-color: #8B0000; /* Auxiliary color */
    color: #FFD700; /* Main color for text */
    border: 2px solid #8B0000;
}

.page-contact__button--secondary:hover {
    background-color: #6e0000;
    transform: translateY(-3px);
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 1000px; /* Constrain image width for better layout */
    margin-top: 40px;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.page-contact__methods-section,
.page-contact__form-section,
.page-contact__address-section {
    padding: 60px 0;
    text-align: center;
    background-color: #ffffff;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.page-contact__section-title {
    font-size: 2.2em;
    color: #8B0000;
    margin-bottom: 20px;
}

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

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

.page-contact__method-card {
    background-color: #fff8e1; /* Lighter shade of main color */
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__method-icon {
    width: 200px; /* Minimum size for content images */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-contact__card-title {
    font-size: 1.5em;
    color: #8B0000;
    margin-bottom: 10px;
}

.page-contact__card-text {
    color: #444444;
    margin-bottom: 20px;
}

.page-contact__button--card {
    background-color: #FFD700;
    color: #8B0000;
    border: 2px solid #FFD700;
    padding: 10px 20px;
    font-size: 1em;
    min-width: 150px;
}

.page-contact__button--card:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto;
    text-align: left;
    background-color: #fff8e1;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

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

.page-contact__form-input,
.page-contact__form-textarea {
    width: calc(100% - 20px); /* Account for padding */
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1em;
    color: #333333;
    background-color: #ffffff;
}

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

.page-contact__button--submit {
    background-color: #8B0000;
    color: #FFD700;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1.1em;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    width: auto;
    min-width: 200px;
}

.page-contact__button--submit:hover {
    background-color: #6e0000;
    transform: translateY(-3px);
}

.page-contact__address-details {
    margin-top: 30px;
    font-size: 1.1em;
    color: #444444;
}

.page-contact__address-line {
    margin-bottom: 10px;
}

.page-contact__map-placeholder {
    margin-top: 40px;
    width: 100%;
    max-width: 800px; /* Constrain map image width */
    margin-left: auto;
    margin-right: auto;
}

.page-contact__map-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-contact__hero-section {
        padding: 60px 15px;
        gap: 30px;
    }

    .page-contact__main-title {
        font-size: 2em;
    }

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

    .page-contact__button {
        padding: 12px 20px;
        font-size: 1em;
        margin: 5px;
        min-width: unset;
    }

    .page-contact__hero-image-wrapper {
        margin-top: 30px;
    }

    .page-contact__methods-section,
    .page-contact__form-section,
    .page-contact__address-section {
        padding: 40px 0;
    }

    .page-contact__section-title {
        font-size: 1.8em;
    }

    .page-contact__section-description {
        font-size: 1em;
    }

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

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

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

    .page-contact__form-input,
    .page-contact__form-textarea {
        width: calc(100% - 20px); /* Account for padding */
    }

    /* Enforce image responsiveness and minimum size */
    .page-contact img {
        max-width: 100%;
        height: auto;
        min-width: 200px; /* Ensure images are not too small */
        min-height: 200px;
        object-fit: cover; /* Prevent image distortion if aspect ratio changes */
    }
    .page-contact__method-icon {
        width: 200px; /* Specific override for card icons */
        height: 200px;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-section {
        flex-direction: column;
    }
    .page-contact__button {
        display: block;
        margin: 10px auto;
    }
    .page-contact__hero-image-wrapper {
        margin-top: 20px;
    }
}