/* style/contact.css */

/* --- General Page Styles --- */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
}

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

.page-contact__section-title {
    font-size: 2.5em;
    color: #FFD700; /* Auxiliary color for titles */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
}

.page-contact__section-description {
    font-size: 1.1em;
    text-align: center;
    margin-bottom: 40px;
    color: #ffffff;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Hero Section --- */
.page-contact__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    text-align: center;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: rgba(0, 0, 0, 0.7); /* Dark overlay */
}

.page-contact__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.6); /* Darken image for text readability */
}

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

.page-contact__hero-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 30px;
}

/* --- Buttons --- */
.page-contact__btn-primary {
    display: inline-block;
    background-color: #CC0000; /* Main brand color */
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 2px solid #CC0000;
}

.page-contact__btn-primary:hover {
    background-color: #FFD700; /* Auxiliary color on hover */
    color: #CC0000;
    transform: translateY(-3px);
    border-color: #FFD700;
}

/* --- Contact Methods Section --- */
.page-contact__contact-methods-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Dark background */
}

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

.page-contact__method-card {
    background-color: #2a2a2a;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(204, 0, 0, 0.3);
}

.page-contact__method-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(204, 0, 0, 0.4);
}

.page-contact__method-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px; /* Ensure images are not small icons and have proper styling */
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
    width: 100%; /* Make it responsive */
    height: auto;
}

.page-contact__method-title {
    font-size: 1.8em;
    color: #CC0000; /* Main brand color for titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__method-text {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 20px;
}

.page-contact__method-link,
.page-contact__social-link {
    color: #FFD700; /* Auxiliary color for links */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    display: block;
    margin-top: 10px;
}

.page-contact__method-link:hover,
.page-contact__social-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

.page-contact__social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.page-contact__additional-note {
    text-align: center;
    margin-top: 60px;
    font-size: 1em;
    color: #aaaaaa;
}

.page-contact__additional-note a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__additional-note a:hover {
    text-decoration: underline;
}

/* --- Contact Form Section --- */
.page-contact__contact-form-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Even darker background */
}

.page-contact__form {
    max-width: 700px;
    margin: 40px auto 0;
    background-color: #1a1a1a;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.2);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFD700; /* Auxiliary color for labels */
    font-size: 1.1em;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #333333;
    border-radius: 8px;
    background-color: #2a2a2a;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #CC0000;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.3);
    outline: none;
}

.page-contact__form-textarea {
    resize: vertical;
    min-height: 120px;
}

.page-contact__form .page-contact__btn-primary {
    width: 100%;
    padding: 18px;
    font-size: 1.2em;
    margin-top: 20px;
}

.page-contact__form-footer-note {
    text-align: center;
    margin-top: 30px;
    font-size: 0.95em;
    color: #aaaaaa;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-contact__form-footer-note a {
    color: #FFD700;
    text-decoration: none;
    font-weight: bold;
}

.page-contact__form-footer-note a:hover {
    text-decoration: underline;
}

/* --- FAQ Section --- */
.page-contact__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a;
}

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

.page-contact__faq-item {
    background-color: #2a2a2a;
    margin-bottom: 15px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #CC0000; /* Main brand color for question background */
    color: #ffffff;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.page-contact__faq-question:hover {
    background-color: #FFD700; /* Auxiliary color on hover */
    color: #CC0000;
}

.page-contact__faq-item-title {
    margin: 0;
    color: inherit; /* Inherit color from parent for hover effect */
    font-size: 1.1em;
}

.page-contact__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-question {
    background-color: #FFD700; /* Active question background */
    color: #CC0000;
}

.page-contact__faq-item.active .page-contact__faq-toggle {
    transform: rotate(45deg); /* Plus sign becomes cross (X) */
}

.page-contact__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: #3a3a3a;
    color: #cccccc;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-contact__faq-item.active .page-contact__faq-answer {
    max-height: 1000px !important; /* Ensure it expands sufficiently */
    padding: 25px;
}

.page-contact__faq-answer p {
    margin-bottom: 15px;
    font-size: 1em;
}

.page-contact__faq-answer p:last-child {
    margin-bottom: 0;
}

.page-contact__faq-image {
    display: block;
    margin: 60px auto 0;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
}

/* --- Commitment Section --- */
.page-contact__commitment-section {
    padding: 80px 0;
    background-color: #0d0d0d;
}

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

.page-contact__commitment-item {
    background-color: #1a1a1a;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(204, 0, 0, 0.3);
}

.page-contact__commitment-title {
    font-size: 1.8em;
    color: #FFD700;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__commitment-text {
    font-size: 1em;
    color: #cccccc;
}

.page-contact__commitment-image {
    display: block;
    margin: 0 auto 40px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 200px; /* Enforce minimum image size */
    min-height: 200px; /* Enforce minimum image size */
}

.page-contact__final-cta-text {
    text-align: center;
    font-size: 1.1em;
    color: #ffffff;
    margin-top: 40px;
}

.page-contact__final-cta-text a {
    color: #CC0000;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-contact__final-cta-text a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
    .page-contact__hero-title {
        font-size: 3em;
    }
    .page-contact__hero-description {
        font-size: 1.2em;
    }
    .page-contact__section-title {
        font-size: 2em;
    }
    .page-contact__faq-item-title {
        font-size: 1em;
    }
}

@media (max-width: 768px) {
    /* General mobile padding */
    .page-contact__container {
        padding: 0 15px;
    }

    /* Hero Section */
    .page-contact__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure header offset on mobile */
    }
    .page-contact__hero-title {
        font-size: 2.2em;
    }
    .page-contact__hero-description {
        font-size: 1em;
    }
    .page-contact__btn-primary {
        padding: 12px 25px;
        font-size: 1em;
    }

    /* Section titles and descriptions */
    .page-contact__section-title {
        font-size: 1.8em;
        margin-bottom: 15px;
    }
    .page-contact__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    /* Contact Methods Grid */
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
    }

    /* Form */
    .page-contact__form {
        padding: 25px;
    }
    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
    }
    .page-contact__form .page-contact__btn-primary {
        padding: 15px;
        font-size: 1.1em;
    }

    /* FAQ */
    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
    .page-contact__faq-item-title {
        font-size: 1em;
    }
    .page-contact__faq-answer {
        padding: 15px 20px;
    }

    /* Commitment Grid */
    .page-contact__commitment-grid {
        grid-template-columns: 1fr;
    }

    /* Images responsiveness - MUST HAVE */
    .page-contact img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-section,
    .page-contact__contact-methods-section,
    .page-contact__contact-form-section,
    .page-contact__faq-section,
    .page-contact__commitment-section,
    .page-contact__method-card,
    .page-contact__form,
    .page-contact__faq-item,
    .page-contact__commitment-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px; /* Add padding to prevent content from touching edges */
        padding-right: 15px; /* Add padding to prevent content from touching edges */
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    /* Specific overrides for elements that might have their own padding */
    .page-contact__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .page-contact__hero-content {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Button responsiveness - MUST HAVE */
    .page-contact__btn-primary,
    .page-contact a[class*="button"],
    .page-contact a[class*="btn"] {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      white-space: normal !important;
      word-wrap: break-word !important;
      /* Remove specific padding here if already handled by container padding */
    }
    
    .page-contact__social-links {
        flex-direction: column;
        gap: 10px;
    }
}