/* css/pages/contact.css */

.page-main-content {
    padding: 2rem 0 3rem 0;
    flex-grow: 1;
    /* Ensures main content pushes footer down */
}

/* This rule centers the main content block and controls its width, preventing overflow */
.contact-page-article {
    max-width: 800px;
    /* A comfortable max-width for reading */
    width: 90%;
    /* On mobile, use 90% of the screen width */
    margin: 0 auto;
    /* This centers the block horizontally */

    background-color: var(--white-color, #fff);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-light);
    box-sizing: border-box;
    /* Ensures padding doesn't cause overflow */
}

@media (min-width: 768px) {
    .contact-page-article {
        padding: 2rem 3rem;
    }
}

.page-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color, #eee);
}

.page-header h1 {
    font-size: clamp(2rem, 6vw, 2.8rem);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.page-header h1 .fas {
    margin-right: 0.75rem;
    font-size: 0.8em;
}

.page-header .page-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.3rem);
    color: var(--text-muted);
    font-style: italic;
}

.contact-info-container {
    text-align: center;
    /* Centers the content within this section */
}

.contact-info-section h2 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
    display: inline-block;
    /* Allows the border to be only as wide as the text */
}

.contact-info-section p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-details-list {
    list-style: none;
    padding-left: 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: inline-flex;
    /* Centers the list block itself */
    flex-direction: column;
    align-items: flex-start;
    /* Aligns list items to the left */
    gap: 1.5rem;
    /* Space between Email and Phone */
}

.contact-details-list li {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    text-align: left;
    overflow-wrap: break-word;
    word-break: break-all;
}

.contact-details-list .icon-contact {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-right: 1rem;
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.contact-details-list .contact-text-group {
    /* This group helps keep the label and link together */
}

.contact-details-list strong {
    font-weight: 500;
    display: block;
    /* Puts the label on its own line */
    color: var(--text-color);
    font-size: 0.9rem;
}

.contact-details-list a {
    font-weight: 600;
    font-size: 1.1rem;
}

.response-time-note {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}