.page-contact {
    color: #333333; /* Using dark text as page background is #FFFFFF */
}

.page-contact__hero-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    background-color: #000000; /* Dark background for hero text contrast */
    color: #FFFFFF;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px; /* Minimum height for hero section */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make background image subtle */
}

.page-contact__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 40px 20px;
}

.page-contact__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-contact__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    line-height: 1.6;
    color: #f0f0f0;
}

.page-contact__hero-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0 10px;
}

.page-contact__hero-button--primary {
    background-color: #FCBC45; /* Login color for primary action */
    color: #000000;
}

.page-contact__hero-button--primary:hover {
    background-color: #e0a030;
}

.page-contact__hero-button--secondary {
    background-color: #FFFFFF; /* Register color for secondary action */
    color: #000000;
}

.page-contact__hero-button--secondary:hover {
    background-color: #f0f0f0;
}

.page-contact__methods-section {
    padding: 60px 20px;
    background-color: #FFFFFF;
    text-align: center;
}

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

.page-contact__methods-title {
    font-size: 2.5em;
    margin-bottom: 40px;
    color: #000000;
}

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

.page-contact__method-card {
    background-color: #000000; /* Dark background for cards */
    color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-contact__method-icon {
    width: 200px; /* Minimum size for content images */
    height: 150px; /* Adjust height to maintain aspect ratio */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-contact__method-heading {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #FCBC45;
}

.page-contact__method-description {
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 25px;
}

.page-contact__method-button {
    display: inline-block;
    padding: 12px 25px;
    background-color: #FCBC45;
    color: #000000;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.page-contact__method-button:hover {
    background-color: #e0a030;
}

.page-contact__form-section {
    padding: 60px 20px;
    background-color: #f5f5f5; /* Light grey background for form */
}

.page-contact__form-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-contact__form-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    text-align: center;
    color: #000000;
}

.page-contact__form-description {
    font-size: 1.1em;
    line-height: 1.6;
    text-align: center;
    margin-bottom: 30px;
    color: #555555;
}

.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: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: #aaa;
}

.page-contact__form-submit-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #FCBC45;
    color: #000000;
    border: none;
    border-radius: 5px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-contact__form-submit-button:hover {
    background-color: #e0a030;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-contact__hero-title {
        font-size: 2.2em;
    }

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

    .page-contact__hero-button {
        padding: 12px 20px;
        font-size: 1em;
        margin: 0 5px;
    }

    .page-contact__methods-title,
    .page-contact__form-title {
        font-size: 2em;
    }

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

    .page-contact__method-icon {
        width: 200px; /* Keep at minimum 200px */
        height: 150px;
        max-width: 100%; /* Ensure images don't overflow */
        height: auto;
    }
    
    .page-contact__form-container {
        padding: 20px;
    }
    
    /* Ensure content images do not cause horizontal scroll */
    .page-contact img {
        max-width: 100%;
        height: auto;
    }
    .page-contact {
        overflow-x: hidden;
    }
}

@media (max-width: 480px) {
    .page-contact__hero-button {
        display: block;
        margin: 10px auto;
    }
    .page-contact__hero-section {
        min-height: 400px;
    }
}