/* style/contact.css */

/* Base styles for the contact page content */
.page-contact {
    font-family: 'Arial', sans-serif;
    color: #333333; /* Default text color for light backgrounds */
    background-color: #FFFFFF; /* Default body background */
    line-height: 1.6;
}

/* Container for consistent content width */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

/* Section titles */
.page-contact__section-title {
    font-size: 2.5em;
    color: #017439; /* Brand primary color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

/* Section descriptions */
.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #555555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* Light text */
    text-align: center;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-contact__hero-section .page-contact__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    position: relative;
    z-index: 1; /* Ensure content is above image */
}

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

.page-contact__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFFFFF;
    line-height: 1.2;
}

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

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

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

.page-contact__btn-primary {
    background-color: #C30808; /* Custom Register/Login color */
    color: #FFFF00; /* Custom Register/Login font color */
    border: 2px solid #C30808;
}

.page-contact__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    background-color: #FFFFFF;
    color: #017439; /* Brand primary color */
    border: 2px solid #017439;
}

.page-contact__btn-secondary:hover {
    background-color: #f0f0f0;
    color: #005f2e;
    transform: translateY(-2px);
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    margin-top: 40px;
    border-radius: 10px;
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 10px;
}

/* Contact Methods Section */
.page-contact__contact-methods {
    padding: 80px 0;
    background-color: #FFFFFF; /* Light background */
    color: #333333; /* Dark text */
}

.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: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    min-height: 350px; /* Ensure cards have similar height */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
}

.page-contact__method-icon {
    width: 200px; /* Enforce minimum size */
    height: 200px; /* Enforce minimum size */
    margin: 0 auto 20px;
    display: block;
    object-fit: contain; /* Keep aspect ratio */
}

.page-contact__method-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__method-text {
    font-size: 1em;
    color: #666666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__method-link {
    display: inline-block;
    background-color: #017439;
    color: #FFFFFF;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__method-link:hover {
    background-color: #005f2e;
}

/* Contact Form Section */
.page-contact__contact-form-section {
    padding: 80px 0;
    background-color: #017439; /* Dark background */
    color: #FFFFFF; /* Light text */
}

.page-contact__contact-form-section .page-contact__section-title,
.page-contact__contact-form-section .page-contact__section-description {
    color: #FFFFFF;
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 40px auto 0;
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

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