/* style/contact.css */

/* Base styles for the contact page */
.page-contact {
    color: #F2FFF6; /* Main text color on dark background */
    background-color: #08160F; /* Overall page background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

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

.page-contact__section {
    padding: 60px 0;
    text-align: center;
}

.page-contact__section-title {
    font-size: clamp(28px, 4vw, 48px); /* Responsive H2 font size */
    color: #F2FFF6; /* Main text color */
    margin-bottom: 20px;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.page-contact__section-intro {
    font-size: 18px;
    color: #A7D9B8; /* Secondary text color */
    max-width: 800px;
    margin: 0 auto 40px auto;
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image above text */
    align-items: center;
    justify-content: center;
    min-height: 500px;
    overflow: hidden;
    padding-top: 10px; /* Small top padding */
    padding-bottom: 60px;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit image height */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

.page-contact__hero-content {
    position: relative; /* Ensure content is above any potential background elements */
    z-index: 2;
    padding: 40px 20px;
    max-width: 900px;
    text-align: center;
    background: rgba(17, 39, 27, 0.7); /* Card BG with transparency for hero content */
    border-radius: 10px;
    margin-top: -80px; /* Overlap slightly with image for visual appeal */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.page-contact__main-title {
    font-size: clamp(32px, 5vw, 60px); /* Responsive H1 font size */
    color: #F2FFF6;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.06em;
    max-width: 800px; /* Prevent overly wide titles */
    margin-left: auto;
    margin-right: auto;
}

.page-contact__description {
    font-size: 20px;
    color: #A7D9B8;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Button Styles */
.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #F2FFF6;
    text-decoration: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't overflow */
    box-sizing: border-box;
}

.page-contact__cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-contact__cta-button--small {
    padding: 10px 20px;
    font-size: 16px;
}

.page-contact__cta-button--secondary {
    background: #11271B; /* Card BG color */
    border: 2px solid #2AD16F;
    color: #2AD16F;
    margin-left: 15px;
}

.page-contact__cta-button--secondary:hover {
    background: #2E7A4E;
    color: #F2FFF6;
}

/* Why Contact Section */
.page-contact__why-contact {
    background-color: #08160F;
}

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

.page-contact__feature-item {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    text-align: left;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #2E7A4E; /* Border */
}

.page-contact__feature-title {
    font-size: 24px;
    color: #57E38D; /* Glow color for highlights */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__feature-item p {
    color: #A7D9B8; /* Secondary text color */
    font-size: 16px;
}

/* Contact Methods Section */
.page-contact__contact-methods {
    background-color: #08160F;
}

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

.page-contact__method-card {
    background-color: #11271B;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #2E7A4E;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-contact__method-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    display: block;
}

.page-contact__method-title {
    font-size: 22px;
    color: #F2FFF6;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-contact__method-description {
    color: #A7D9B8;
    font-size: 16px;
    margin-bottom: 20px;
    flex-grow: 1; /* Push button to bottom */
}

.page-contact__contact-info {
    color: #F2FFF6;
    font-size: 16px;
    margin-bottom: 15px;
}

.page-contact__contact-info a,
.page-contact__email-link,
.page-contact__phone-link,
.page-contact__social-link {
    color: #2AD16F;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-contact__contact-info a:hover,
.page-contact__email-link:hover,
.page-contact__phone-link:hover,
.page-contact__social-link:hover {
    color: #57E38D;
    text-decoration: underline;
}

.page-contact__social-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.page-contact__social-list li {
    margin: 0;
}

/* FAQ Section */
.page-contact__faq {
    background-color: #08160F;
}

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

.page-contact__faq-item {
    background-color: #11271B;
    border: 1px solid #2E7A4E;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: #F2FFF6;
    background-color: #11271B;
    border-bottom: 1px solid #1E3A2A; /* Divider color */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details summary */
}

.page-contact__faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for webkit browsers */
}

.page-contact__faq-question:hover {
    background-color: #1E3A2A; /* Slightly darker hover */
}

.page-contact__faq-qtext {
    flex-grow: 1;
}

.page-contact__faq-toggle {
    font-size: 24px;
    line-height: 1;
    margin-left: 15px;
    color: #2AD16F;
}

.page-contact__faq-item[open] .page-contact__faq-question {
    border-bottom: 1px solid #2E7A4E;
}

.page-contact__faq-answer {
    padding: 20px 25px;
    font-size: 16px;
    color: #A7D9B8;
    background-color: #0A4B2C; /* Deep Green for answer background */
}

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

.page-contact__faq-answer a {
    color: #2AD16F;
    text-decoration: none;
}

.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

/* Contact Form Section */
.page-contact__contact-form {
    background-color: #08160F;
}

.page-contact__form {
    max-width: 700px;
    margin: 50px auto 0 auto;
    background-color: #11271B;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2);
    border: 1px solid #2E7A4E;
    text-align: left;
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 10px;
    font-size: 16px;
    color: #F2FFF6;
    font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #2E7A4E;
    border-radius: 8px;
    background-color: #0A4B2C; /* Deep Green */
    color: #F2FFF6;
    font-size: 16px;
    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: #A7D9B8;
    opacity: 0.7;
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
    border-color: #2AD16F;
    box-shadow: 0 0 0 3px rgba(42, 209, 111, 0.3);
    outline: none;
}

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

.page-contact__cta-button--form {
    width: 100%;
    margin-top: 20px;
}

/* Commitment Section */
.page-contact__commitment {
    background-color: #08160F;
}

.page-contact__commitment-list {
    list-style: none;
    padding: 0;
    margin: 50px auto 40px auto;
    max-width: 800px;
    text-align: left;
}

.page-contact__commitment-list li {
    background-color: #11271B;
    border: 1px solid #2E7A4E;
    border-radius: 8px;
    padding: 20px 25px;
    margin-bottom: 15px;
    font-size: 18px;
    color: #A7D9B8;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-contact__commitment-highlight {
    color: #F2FFF6;
    font-weight: bold;
}

.page-contact__closing-text {
    font-size: 20px;
    color: #F2FFF6;
    margin-top: 40px;
    font-weight: bold;
}

.page-contact__cta-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

/* Responsive Styles */
@media (max-width: 992px) {
    .page-contact__hero-content {
        margin-top: -60px;
        padding: 30px 15px;
    }

    .page-contact__main-title {
        font-size: clamp(28px, 4.5vw, 50px);
    }

    .page-contact__description {
        font-size: 18px;
    }

    .page-contact__section-title {
        font-size: clamp(26px, 3.5vw, 40px);
    }
}

@media (max-width: 768px) {
    .page-contact__section {
        padding: 40px 0;
    }

    .page-contact__container {
        padding: 0 15px;
    }

    .page-contact__hero-section {
        min-height: 400px;
        padding-bottom: 40px;
    }

    .page-contact__hero-image-wrapper {
        max-height: 400px;
    }

    .page-contact__hero-content {
        margin-top: -40px;
        padding: 25px 15px;
    }

    .page-contact__main-title {
        font-size: clamp(24px, 6vw, 36px);
    }

    .page-contact__description {
        font-size: 16px;
    }

    .page-contact__section-title {
        font-size: clamp(24px, 5vw, 32px);
    }

    .page-contact__section-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    .page-contact__features-grid,
    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .page-contact__feature-item,
    .page-contact__method-card,
    .page-contact__form,
    .page-contact__faq-item {
        padding: 20px;
    }

    .page-contact__feature-title {
        font-size: 20px;
    }

    .page-contact__method-title {
        font-size: 20px;
    }

    .page-contact__faq-question {
        padding: 15px 20px;
        font-size: 16px;
    }

    .page-contact__faq-answer {
        padding: 15px 20px;
        font-size: 15px;
    }

    .page-contact__form-label {
        font-size: 15px;
    }

    .page-contact__form-input,
    .page-contact__form-textarea {
        padding: 12px;
        font-size: 15px;
    }

    .page-contact__cta-button {
        padding: 12px 25px;
        font-size: 16px;
        width: 100% !important; /* Mobile button full width */
        margin: 0 auto 10px auto; /* Center and add spacing */
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-contact__cta-button--secondary {
        margin-left: 0;
    }

    .page-contact__cta-group {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    /* Mobile image, video, and container adaptations */
    .page-contact img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
    }
    
    .page-contact__section,
    .page-contact__card,
    .page-contact__container,
    .page-contact__hero-image-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
    }
    
    .page-contact__hero-section {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Ensure form and FAQ lists also respect mobile padding */
    .page-contact__form,
    .page-contact__faq-list,
    .page-contact__commitment-list {
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
    }
    .page-contact__form {
        width: calc(100% - 30px);
    }
}