/* style/contact.css */

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

/* Section common styles */
.page-contact__section {
    padding: 60px 20px;
    text-align: center;
}

.page-contact__section-title {
    font-size: 36px;
    margin-bottom: 20px;
    color: #017439; /* Brand primary color for titles */
    font-weight: bold;
}

.page-contact__section-title--light {
    color: #FFFFFF;
}

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

.page-contact__section-description--light {
    color: #f0f0f0;
}

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

/* Background colors */
.page-contact__light-bg {
    background: #FFFFFF;
    color: #333333;
}

.page-contact__dark-bg {
    background: #017439; /* Brand primary color */
    color: #FFFFFF;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    background: linear-gradient(135deg, #017439, #005a2e); /* Gradient background for hero */
    overflow: hidden; /* Prevent image overflow */
}

.page-contact__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-contact__hero-image {
    width: 100%;
    margin-bottom: 30px;
    max-width: 800px; /* Constrain hero image width */
}

.page-contact__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-contact__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    color: #FFFFFF;
}

.page-contact__hero-content h1 {
    font-size: 48px;
    margin-bottom: 15px;
    line-height: 1.2;
    color: #FFFFFF;
}

.page-contact__hero-content p {
    font-size: 22px;
    margin-bottom: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

/* CTA Button styles */
.page-contact__cta-button,
.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    margin: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%; /* For responsive buttons */
    box-sizing: border-box; /* For responsive buttons */
    white-space: normal; /* For responsive buttons */
    word-wrap: break-word; /* For responsive buttons */
}

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

.page-contact__cta-button:hover,
.page-contact__btn-primary:hover {
    background: #e02020;
    border-color: #e02020;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

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

.page-contact__btn-secondary:hover {
    background: #e0e0e0;
    color: #005a2e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-contact__btn-center {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Info Section */
.page-contact__contact-info-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

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

.page-contact__info-card {
    background: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.page-contact__card-title {
    font-size: 24px;
    color: #017439;
    margin-bottom: 15px;
}

.page-contact__info-card p {
    color: #555555;
    margin-bottom: 20px;
    flex-grow: 1;
}

.page-contact__email-address,
.page-contact__phone-number {
    font-weight: bold;
    color: #017439;
    margin-bottom: 20px;
    font-size: 1.1em;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap; /* Ensure social icons wrap on small screens */
}

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

.page-contact__social-icon img {
    
    
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    max-width: 100%; /* Responsive image */
    height: auto; /* Responsive image */
}

.page-contact__social-icon:hover {
    transform: scale(1.1);
}


/* Contact Form Section */
.page-contact__contact-form-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.page-contact__form {
    max-width: 700px;
    margin: 40px auto 0;
    background: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    text-align: left;
    border: 1px solid #e0e0e0;
}

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