.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Main text color for dark backgrounds */
    background: var(--page-bg, #B71C1C); /* Fallback to custom background color if --page-bg is not set */
}

.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 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: 10px; /* Small top padding, body handles header offset */
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)); /* Dark overlay for text readability */
    overflow: hidden;
    min-height: 500px; /* Ensure hero section has a minimum height */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.page-contact__hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-contact__hero-content {
    position: relative;
    z-index: 1; /* Ensure content is above the image */
    color: #FFF5E1;
    max-width: 800px;
    margin: 0 auto;
}

.page-contact__hero-content h1 {
    font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size */
    font-weight: bold;
    margin-bottom: 20px;
    color: #FFD86A; /* Gold color for heading */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.page-contact__hero-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #FFF5E1;
}

.page-contact__cta-button {
    display: inline-block;
    padding: 15px 40px;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #7A0E0E; /* Deep Red for button text */
    text-decoration: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    border: 1px solid #F2B544; /* Border color */
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__cta-button:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

/* General Section Styling */
.page-contact__contact-methods-section,
.page-contact__why-contact-section,
.page-contact__faq-section,
.page-contact__feedback-section {
    padding: 60px 0;
    background: var(--page-bg, #B71C1C); /* Default to page background */
    color: #FFF5E1;
}

.page-contact__contact-methods-section h2,
.page-contact__why-contact-section h2,
.page-contact__faq-section h2,
.page-contact__feedback-section h2 {
    text-align: center;
    font-size: clamp(1.8em, 3.5vw, 2.5em); /* Responsive font size */
    margin-bottom: 40px;
    color: #FFD86A; /* Gold color for section headings */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

.page-contact__contact-methods-section p,
.page-contact__why-contact-section p,
.page-contact__faq-section p,
.page-contact__feedback-section p {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px auto;
    font-size: 1.05em;
}

/* Contact Methods Grid */
.page-contact__methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-contact__method-card {
    background: #D32F2F; /* Card BG color */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border color */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF5E1;
}

.page-contact__method-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__method-card img {
    max-width: 100%;
    
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

.page-contact__method-card h3 {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #FFD86A; /* Gold color for card titles */
}

.page-contact__method-card p {
    font-size: 0.95em;
    margin-bottom: 20px;
    text-align: center;
}

.page-contact__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Custom button color */
    color: #7A0E0E; /* Deep Red for button text */
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid #F2B544; /* Border color */
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-contact__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Why Contact Section */
.page-contact__why-contact-section .page-contact__container {
    display: flex;
    align-items: center;
    gap: 40px;
    background: #D32F2F; /* Card BG color */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border color */
}

.page-contact__why-contact-content {
    flex: 1;
    color: #FFF5E1;
}

.page-contact__why-contact-content h2 {
    text-align: left;
    margin-top: 0;
    color: #FFD86A;
}

.page-contact__why-contact-content p {
    text-align: left;
    margin-bottom: 20px;
}

.page-contact__why-contact-content ul {
    list-style: none; /* Remove default bullets */
    padding-left: 0;
    margin-bottom: 30px;
}

.page-contact__why-contact-content ul li {
    margin-bottom: 10px;
    font-size: 1.05em;
    color: #FFD86A; /* Gold color for the text */
    font-weight: bold;
    position: relative;
    padding-left: 25px; /* Space for custom checkmark */
}

.page-contact__why-contact-content ul li::before {
    content: '✓'; /* Custom checkmark character */
    position: absolute;
    left: 0;
    color: #FFD86A; /* Gold checkmark */
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1.5;
}

.page-contact__why-contact-image {
    flex: 1;
    text-align: center;
}

.page-contact__why-contact-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum size */
    min-height: 200px; /* Enforce minimum size */
}

/* FAQ Section */
.page-contact__faq-section {
    background: var(--page-bg, #B71C1C); /* Default to page background */
}

.page-contact__faq-list {
    max-width: 900px;
    margin: 0 auto;
}

details.page-contact__faq-item {
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #F2B544; /* Border color */
    overflow: hidden;
    background: #D32F2F; /* Card BG color */
    color: #FFF5E1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

details.page-contact__faq-item summary.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: background-color 0.3s ease;
    color: #FFD86A; /* Gold for question text */
    font-weight: bold;
}

details.page-contact__faq-item summary.page-contact__faq-question::-webkit-details-marker {
    display: none;
}

details.page-contact__faq-item summary.page-contact__faq-question:hover {
    background: #E53935; /* Accent color on hover */
}

.page-contact__faq-qtext {
    flex: 1;
    font-size: 1.1em;
    line-height: 1.5;
    text-align: left;
    color: #FFD86A; /* Gold for question text */
}

.page-contact__faq-toggle {
    font-size: 24px;
    font-weight: bold;
    color: #FFD86A; /* Gold for toggle icon */
    flex-shrink: 0;
    margin-left: 15px;
    width: 28px;
    text-align: center;
}

details.page-contact__faq-item .page-contact__faq-answer {
    padding: 0 20px 20px;
    background: #B71C1C; /* Slightly darker background for answer */
    border-radius: 0 0 5px 5px;
    color: #FFF5E1; /* Light text for answer */
    font-size: 1em;
}

/* Feedback Form Section */
.page-contact__feedback-section {
    background: #D32F2F; /* Card BG color */
    border-radius: 10px;
    margin: 60px auto;
    padding: 40px;
    max-width: 800px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border color */
}

.page-contact__feedback-section h2 {
    color: #FFD86A;
}

.page-contact__feedback-section p {
    margin-bottom: 30px;
}

.page-contact__feedback-form {
    display: flex;
    flex-direction: column;
}

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

.page-contact__form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #FFF5E1;
}

.page-contact__form-group input[type="text"],
.page-contact__form-group input[type="email"],
.page-contact__form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #F2B544; /* Border color */
    border-radius: 5px;
    background: #B71C1C; /* Darker background for input fields */
    color: #FFF5E1;
    font-size: 1em;
    box-sizing: border-box;
}

.page-contact__form-group input[type="text"]::placeholder,
.page-contact__form-group input[type="email"]::placeholder,
.page-contact__form-group textarea::placeholder {
    color: rgba(255, 245, 225, 0.7); /* Lighter placeholder text */
}

.page-contact__form-group input[type="text"]:focus,
.page-contact__form-group input[type="email"]:focus,
.page-contact__form-group textarea:focus {
    outline: none;
    border-color: #FFD86A; /* Gold on focus */
    box-shadow: 0 0 0 3px rgba(255, 216, 106, 0.3);
}

.page-contact__feedback-form .page-contact__btn-primary {
    align-self: flex-start;
    margin-top: 20px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-contact__hero-content h1 {
        font-size: clamp(2em, 4vw, 2.8em);
    }
    .page-contact__why-contact-section .page-contact__container {
        flex-direction: column;
        text-align: center;
    }
    .page-contact__why-contact-content h2 {
        text-align: center;
    }
    .page-contact__why-contact-content p {
        text-align: center;
    }
    .page-contact__why-contact-content ul {
        padding-left: 20px;
        text-align: left;
    }
    .page-contact__why-contact-content ul li::before {
        left: 20px;
    }
    .page-contact__why-contact-image {
        margin-top: 30px;
    }
}

@media (max-width: 768px) {
    .page-contact img {
        max-width: 100% !important;
        height: auto !important;
        display: block;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__hero-section {
        padding-top: 10px !important; /* body already handles header offset */
        padding-bottom: 40px;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__hero-content h1 {
        font-size: 2em;
    }

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

    .page-contact__cta-button {
        padding: 12px 30px;
        font-size: 1em;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__contact-methods-section,
    .page-contact__why-contact-section,
    .page-contact__faq-section,
    .page-contact__feedback-section {
        padding: 40px 0;
    }

    .page-contact__contact-methods-section h2,
    .page-contact__why-contact-section h2,
    .page-contact__faq-section h2,
    .page-contact__feedback-section h2 {
        font-size: 1.8em;
        margin-bottom: 30px;
    }

    .page-contact__contact-methods-section p,
    .page-contact__why-contact-section p,
    .page-contact__faq-section p,
    .page-contact__feedback-section p {
        margin-bottom: 30px;
        padding: 0 15px;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

    .page-contact__method-card {
        padding: 25px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-contact__method-card img {
        
        min-width: 200px !important; /* Mobile enforce minimum size */
        min-height: 200px !important; /* Mobile enforce minimum size */
    }

    .page-contact__method-card h3 {
        font-size: 1.3em;
    }

    .page-contact__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-contact__why-contact-section .page-contact__container {
        padding: 30px 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-contact__why-contact-content ul {
        padding-left: 0;
        text-align: left;
    }
    .page-contact__why-contact-content ul li {
        padding-left: 25px;
    }
    .page-contact__why-contact-content ul li::before {
        left: 15px; /* Adjust for mobile padding */
    }

    .page-contact__faq-list {
        padding: 0 15px;
    }

    details.page-contact__faq-item summary.page-contact__faq-question {
        padding: 15px;
    }
    .page-contact__faq-qtext {
        font-size: 1em;
    }
    .page-contact__faq-toggle {
        font-size: 20px;
        width: 24px;
    }
    details.page-contact__faq-item .page-contact__faq-answer {
        padding: 0 15px 15px;
    }

    .page-contact__feedback-section {
        padding: 30px 15px;
        margin: 40px auto;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-contact__form-group label {
        font-size: 0.95em;
    }

    .page-contact__feedback-form .page-contact__btn-primary {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
}