/**
 * Contact Page Specific Styles - Mobile First Design
 *
 * @package Clevertech_Astra_Child
 * @version 2.0.0
 * @updated 2025-01-19 - Complete mobile-first redesign
 */

/* ===== Contact Page Uses Global Brand Variables ===== */
/* Variables are defined globally in style.css and dark-mode-prevention.css */
/* No local overrides to maintain consistency */

/* ===== Base Mobile Styles ===== */
.page-id-54 {
    overflow-x: hidden;
}

/* Override Astra container constraints for mobile - but NOT header */
@media (max-width: 921px) {
    .page-id-54 .site-content .ast-container,
    .page-id-54 .entry-content .ast-container,
    .page-id-54 .entry-content > * {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ===== Contact Hero Section - Mobile First ===== */
.contact-hero {
    background: var(--gradient-primary);
    padding: 100px 20px 40px;
    text-align: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%, rgba(255,255,255,0.1)),
                linear-gradient(45deg, rgba(255,255,255,0.1) 25%, transparent 25%, transparent 75%, rgba(255,255,255,0.1) 75%, rgba(255,255,255,0.1));
    background-size: 30px 30px;
    background-position: 0 0, 15px 15px;
    animation: mesh 20s linear infinite;
}

@keyframes mesh {
    0% {
        background-position: 0 0, 15px 15px;
    }
    100% {
        background-position: 30px 30px, 45px 45px;
    }
}

.contact-hero h1 {
    color: var(--white);
    font-size: 1.75rem;
    line-height: 1.3;
    font-weight: 700;
    margin: 0 auto 20px;
    padding: 0 10px;
    position: relative;
    z-index: 2;
    animation: slideInDown 0.8s ease-out;
    max-width: 100%;
    word-wrap: break-word;
}

.contact-hero p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 auto;
    padding: 0 10px;
    position: relative;
    z-index: 2;
    opacity: 0.95;
    animation: slideInUp 0.8s ease-out 0.2s both;
    max-width: 100%;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Contact Content Section - Mobile First ===== */
.contact-content {
    padding: 40px 20px;
    background: var(--background-white);
}

.contact-content > * {
    max-width: 100%;
}

.contact-content .wp-block-columns {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
    width: 100%;
}

.contact-content h2 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    line-height: 1.3;
}

.contact-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* Contact Form Styling - Mobile First */
.contact-content .wp-block-column:first-child {
    width: 100%;
    flex-basis: 100%;
    margin-bottom: 30px;
}

.wpcf7-form {
    background: var(--background-light);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
    border: 1px solid var(--border-color);
}

.wpcf7-form p {
    margin-bottom: 18px;
}

.wpcf7-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 16px; /* Prevents zoom on iOS */
    transition: var(--transition-base);
    background: var(--background-white);
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form input[type="tel"]:focus,
.wpcf7-form textarea:focus {
    outline: none;
    border-color: var(--info-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.15);
    background: var(--background-white);
}

.wpcf7-form textarea {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.wpcf7-form input[type="submit"] {
    background: var(--gradient-accent, var(--gradient-cta));
    color: var(--white);
    padding: 16px 32px;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
    width: 100%;
    margin-top: 10px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    box-shadow: 0 12px 24px rgba(231, 76, 60, 0.25);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.wpcf7-form input[type="submit"]:active {
    transform: scale(0.98);
}

.wpcf7-form input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(231, 76, 60, 0.3);
}

.wpcf7-form input[type="submit"]:focus-visible {
    outline: 3px solid rgba(243, 156, 18, 0.55);
    outline-offset: 4px;
}

.wpcf7-form input[type="submit"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.wpcf7-response-output {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 600;
    line-height: 1.5;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(6px);
}

.wpcf7-response-output.is-visible,
.wpcf7-form.sent .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
    opacity: 1;
    transform: translateY(0);
}

.wpcf7-response-output.wpcf7-mail-sent-ok {
    background: #e9f7ef;
    border-color: #27ae60;
    color: #1d7a46;
}

.wpcf7-response-output.wpcf7-validation-errors,
.wpcf7-response-output.wpcf7-mail-sent-ng,
.wpcf7-response-output.wpcf7-spam-blocked {
    background: #fdecea;
    border-color: #e74c3c;
    color: #b03a2e;
}

.wpcf7-spinner {
    display: none;
}

/* Contact Info Section - Mobile First */
.contact-content h3 {
    color: var(--primary-color);
    margin: 25px 0 12px;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.contact-content .wp-block-column:last-child {
    background: linear-gradient(135deg, var(--background-light) 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    height: fit-content;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    width: 100%;
    flex-basis: 100%;
}

.contact-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.contact-content a {
    color: var(--info-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-base);
    display: inline-block;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
}

.contact-content a:active,
.contact-content a:focus {
    color: var(--secondary-color);
    border-bottom-color: var(--secondary-color);
}

@media (hover: hover) {
    .contact-content a:hover {
        color: var(--accent-color);
        border-bottom-color: var(--accent-color);
    }
}

/* Social Links - Mobile First with Touch Targets */
.wp-block-social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.wp-social-link {
    background: var(--primary-color);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.wp-social-link:active {
    transform: scale(0.95);
    background: var(--accent-color);
}

@media (hover: hover) {
    .wp-social-link:hover {
        background: var(--accent-color);
        transform: translateY(-3px);
    }
}

.wp-social-link a {
    color: var(--white) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ===== Response Time Section - Mobile First ===== */
.response-time {
    padding: 40px 20px;
    background: var(--background-light);
    position: relative;
    overflow: hidden;
}

.response-time .wp-block-group__inner-container,
.response-time > div {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Ensure WordPress block structure is centered */
.response-time .wp-container-core-columns-is-layout-1,
.response-time .wp-container-core-columns-is-layout-2,
.response-time .wp-container-core-columns-is-layout-3,
.response-time .wp-container-core-columns-is-layout-4,
.response-time .wp-container-core-columns-is-layout-5,
.response-time .wp-container-core-columns-is-layout-6,
.response-time .wp-container-core-columns-is-layout-7,
.response-time .wp-container-core-columns-is-layout-8,
.response-time .wp-container-core-columns-is-layout-9,
.response-time .wp-container-core-columns-is-layout-10 {
    margin: 0 auto !important;
    justify-content: center !important;
}

.response-time::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.05;
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.response-time h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.75rem;
    line-height: 1.3;
}

.response-time .wp-block-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    width: 100%;
    max-width: 350px;
    margin: 0 auto;
    padding: 0;
    justify-items: center;
}

.response-time .wp-block-column {
    background: var(--background-white);
    padding: 25px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
}

.response-time .wp-block-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.response-time .wp-block-column:active::before {
    transform: scaleX(1);
}

@media (hover: hover) {
    .response-time .wp-block-column:hover::before {
        transform: scaleX(1);
    }

    .response-time .wp-block-column:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-lg);
    }
}

.response-time h3 {
    color: var(--accent-color);
    margin-bottom: 10px;
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    text-align: center;
    line-height: 1.2;
}

.response-time p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-weight: 500;
    text-align: center;
}

/* ===== FAQ Section - Mobile First ===== */
.faq-contact {
    padding: 40px 20px;
    background: var(--background-white);
}

.faq-contact h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-size: 1.75rem;
    line-height: 1.3;
}

.faq-contact h3 {
    color: var(--primary-color);
    margin-bottom: 0;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    padding: 18px 50px 18px 18px;
    background: var(--background-light);
    border-radius: 8px;
    transition: var(--transition-base);
    position: relative;
    border: 1px solid var(--border-color);
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.faq-contact h3::after {
    content: '+';
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: var(--accent-color);
    transition: transform var(--transition-base);
    font-weight: 400;
}

.faq-contact h3:active {
    background: #e9ecef;
}

@media (hover: hover) {
    .faq-contact h3:hover {
        background: linear-gradient(135deg, var(--background-light) 0%, #e9ecef 100%);
        transform: translateX(3px);
    }
}

.faq-contact h3.active::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-contact p {
    color: var(--text-secondary);
    line-height: 1.7;
    padding: 0 18px;
    margin: 0 0 15px 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.95rem;
}

.faq-contact h3.active + p {
    max-height: 500px;
    padding: 15px 18px;
}

/* ===== Office Hours Section - Mobile First ===== */
.office-hours {
    padding: 40px 20px;
    background: var(--gradient-dark);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.office-hours::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: pulse 5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.office-hours h2 {
    text-align: center;
    color: var(--white);
    margin-bottom: 30px;
    font-size: 1.75rem;
    line-height: 1.3;
    position: relative;
    z-index: 2;
}

.office-hours .wp-block-columns {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    max-width: 100%;
}

.office-hours .wp-block-column {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-base);
}

.office-hours .wp-block-column:active {
    background: rgba(255, 255, 255, 0.15);
}

@media (hover: hover) {
    .office-hours .wp-block-column:hover {
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
}

.office-hours h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.25rem;
    font-weight: 600;
}

.office-hours p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* ===== Interactive Elements - Mobile First ===== */
.contact-info-item {
    padding: 18px;
    background: var(--background-white);
    border-radius: 8px;
    margin-bottom: 15px;
    transition: var(--transition-base);
    border: 2px solid var(--border-color);
}

.contact-info-item:active {
    border-color: var(--info-color);
    background: var(--background-light);
}

@media (hover: hover) {
    .contact-info-item:hover {
        border-color: var(--primary-color);
        transform: translateX(5px);
        box-shadow: var(--shadow-md);
    }
}

/* ===== Tablet and Desktop Enhancements ===== */
@media (min-width: 768px) {
    /* Hero section */
    .contact-hero {
        padding: 120px 40px 60px;
        min-height: 350px;
    }

    .contact-hero h1 {
        font-size: 2.5rem;
        max-width: 800px;
    }

    .contact-hero p {
        font-size: 1.25rem;
        max-width: 600px;
    }

    /* Content section */
    .contact-content {
        padding: 60px 40px;
    }

    .contact-content h2 {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .contact-content h3 {
        font-size: 1.375rem;
    }

    /* Response time grid */
    .response-time .wp-block-columns {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        max-width: 700px;
        justify-content: center;
    }

    .response-time h3 {
        font-size: 2rem;
    }

    /* FAQ section */
    .faq-contact h3 {
        font-size: 1.125rem;
        padding: 20px 55px 20px 20px;
    }

    .faq-contact p {
        font-size: 1rem;
    }
}

@media (min-width: 1024px) {
    /* Desktop optimizations */
    .contact-hero {
        padding: 140px 60px 80px;
        min-height: 400px;
    }

    .contact-hero h1 {
        font-size: 3rem;
    }

    .contact-hero p {
        font-size: 1.375rem;
    }

    /* Two column layout for contact content */
    .contact-content .wp-block-columns {
        flex-direction: row;
        gap: 40px;
        align-items: flex-start;
        max-width: 1200px;
        margin: 0 auto;
    }

    .contact-content .wp-block-column:first-child {
        flex-basis: 60%;
        margin-bottom: 0;
    }

    .contact-content .wp-block-column:last-child {
        flex-basis: 40%;
        position: sticky;
        top: 100px;
    }

    .contact-content {
        padding: 80px 40px;
    }

    /* Form improvements */
    .wpcf7-form {
        padding: 35px;
    }

    /* Response time - 3 columns centered */
    .response-time {
        padding: 80px 40px;
    }

    .response-time .wp-block-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
        max-width: 900px;
        margin: 0 auto;
        justify-content: center;
    }

    .response-time .wp-block-column {
        padding: 35px 25px;
    }

    .response-time h3 {
        font-size: 2.25rem;
    }

    .response-time p {
        font-size: 1rem;
    }

    /* FAQ section */
    .faq-contact {
        padding: 80px 40px;
    }

    .faq-contact h2 {
        font-size: 2.5rem;
        margin-bottom: 50px;
    }

    /* Office hours - horizontal layout */
    .office-hours {
        padding: 80px 40px;
    }

    .office-hours .wp-block-columns {
        flex-direction: row;
        gap: 30px;
        max-width: 900px;
    }

    .office-hours .wp-block-column {
        flex: 1;
    }
}

/* Extra large screens */
@media (min-width: 1440px) {
    .contact-content .wp-block-columns,
    .response-time .wp-block-columns {
        max-width: 1400px;
    }

    .contact-hero h1 {
        font-size: 3.5rem;
    }
}

/* Small mobile screens */
@media (max-width: 480px) {
    /* Compact everything for small screens */
    .contact-hero {
        padding: 90px 15px 30px;
        min-height: 250px;
    }

    .contact-hero h1 {
        font-size: 1.5rem;
    }

    .contact-hero p {
        font-size: 0.9rem;
    }

    .contact-content {
        padding: 30px 15px;
    }

    .contact-content h2 {
        font-size: 1.375rem;
    }

    .contact-content h3 {
        font-size: 1.125rem;
        margin-top: 20px;
    }

    /* Even smaller form padding */
    .wpcf7-form {
        padding: 18px 15px;
    }

    .contact-content .wp-block-column:last-child {
        padding: 20px 18px;
    }

    /* Single column for response times */
    .response-time {
        padding: 30px 15px;
    }

    .response-time .wp-block-columns {
        grid-template-columns: 1fr;
        gap: 12px;
        max-width: 300px;
        margin: 0 auto;
    }

    .response-time .wp-block-column {
        padding: 20px 15px;
    }

    .response-time h3 {
        font-size: 1.25rem;
    }

    .response-time p {
        font-size: 0.875rem;
    }

    /* Smaller social links */
    .wp-social-link {
        width: 44px;
        height: 44px;
    }

    /* FAQ adjustments */
    .faq-contact {
        padding: 30px 15px;
    }

    .faq-contact h3 {
        font-size: 0.95rem;
        padding: 15px 45px 15px 15px;
    }

    /* Office hours */
    .office-hours {
        padding: 30px 15px;
    }

    .office-hours .wp-block-column {
        padding: 20px;
        margin-bottom: 15px;
    }
}

/* Special handling for very small screens */
@media (max-width: 360px) {
    .contact-hero h1 {
        font-size: 1.375rem;
    }

    .contact-hero p {
        font-size: 0.875rem;
    }

    .response-time h3 {
        font-size: 1.125rem;
    }

    .faq-contact h3 {
        font-size: 0.9rem;
    }
}

/* ===== Smooth Animations ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    .fade-in {
        transition: none;
    }
}

/* ===== Accessibility Improvements ===== */
/* Focus states for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--info-color);
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-to-content:focus {
    top: 0;
}

/* Screen reader only text */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .contact-hero,
    .office-hours {
        border: 2px solid currentColor;
    }

    .wpcf7-form input[type="text"],
    .wpcf7-form input[type="email"],
    .wpcf7-form input[type="tel"],
    .wpcf7-form textarea {
        border-width: 3px;
    }
}

/* Dark mode support - DISABLED to maintain brand consistency */
/* The Clevertech brand design is optimized for light mode viewing */
/* Dark mode prevention is handled globally via dark-mode-prevention.css */
/*
@media (prefers-color-scheme: dark) {
    :root {
        --background-white: #1a1a1a;
        --background-light: #2a2a2a;
        --text-primary: #e0e0e0;
        --text-secondary: #b0b0b0;
        --border-color: #444;
    }

    .contact-content,
    .faq-contact {
        background: var(--background-white);
    }

    .wpcf7-form {
        background: var(--background-light);
    }
}
*/

/* ===== Print Styles ===== */
@media print {
    /* Hide decorative elements */
    .contact-hero::before,
    .response-time::before,
    .office-hours::before,
    .wp-block-social-links,
    .wpcf7-form input[type="submit"] {
        display: none !important;
    }

    /* Simplify backgrounds */
    .contact-hero,
    .office-hours {
        background: none !important;
        color: #000 !important;
    }

    /* Ensure text is black */
    .contact-hero h1,
    .contact-hero p,
    .office-hours h2,
    .office-hours h3,
    .office-hours p {
        color: #000 !important;
    }

    /* Show all FAQ answers */
    .faq-contact p {
        max-height: none !important;
        padding: 10px 0 !important;
    }

    /* Add URLs after links */
    .contact-content a[href]::after {
        content: " (" attr(href) ")";
    }

    /* Page break control */
    .contact-hero,
    .contact-content,
    .response-time,
    .faq-contact,
    .office-hours {
        page-break-inside: avoid;
    }
}
