/* Base styles for the contact page */
.page-contact {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--body-bg, #0A0A0A); /* Default to #0A0A0A if --body-bg is not set */
    color: #FFF6D6; /* Text Main color for dark background */
}

/* Container for content sections */
.page-contact__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
    box-sizing: border-box;
}

/* Links within content */
.page-contact__link {
    color: #FFD36B; /* Use auxiliary color for links */
    text-decoration: underline;
}

.page-contact__link:hover {
    color: #F2C14E;
}

/* Hero Section */
.page-contact__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    padding-bottom: 60px;
    text-align: center;
    background-color: #0A0A0A; /* Ensure dark background for hero */
}

.page-contact__hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-contact__hero-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    color: #F2C14E; /* Main brand color for title */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__hero-description {
    font-size: 1.1rem;
    color: #FFF6D6;
    margin-bottom: 30px;
}

/* Section Titles */
.page-contact__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 600;
    color: #F2C14E;
    text-align: center;
    margin-bottom: 40px;
}

.page-contact__section-description {
    font-size: 1rem;
    color: #FFF6D6;
    text-align: center;
    max-width: 800px;
    margin: -20px auto 40px auto;
}

/* Contact Info Section */
.page-contact__contact-info-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background color for this section */
}

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

.page-contact__info-card {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__card-title {
    font-size: 1.5rem;
    color: #FFD36B; /* Auxiliary color for card titles */
    margin-bottom: 15px;
}

.page-contact__card-text {
    font-size: 1rem;
    color: #FFF6D6;
    margin-bottom: 25px;
    flex-grow: 1; /* Allow text to grow and push button to bottom */
}

.page-contact__btn-primary,
.page-contact__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-sizing: border-box; /* Ensure padding/border are included in width */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
    max-width: 100%; /* Ensure button doesn't overflow */
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Button gradient */
    color: #000000; /* Dark text for contrast on bright gradient */
    border: none;
}

.page-contact__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.page-contact__btn-secondary {
    background: transparent;
    border: 2px solid #F2C14E;
    color: #F2C14E;
}

.page-contact__btn-secondary:hover {
    background: #F2C14E;
    color: #000000;
}

.page-contact__card-image {
    width: 100%;
    height: auto;
    display: block;
    margin-top: 20px;
    border-radius: 8px;
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover;
}

.page-contact__additional-contact-text {
    color: #FFF6D6;
    text-align: center;
    margin-top: 50px;
    font-size: 1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background color for this section */
}

.page-contact__contact-form {
    max-width: 700px;
    margin: 0 auto 30px auto;
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
    display: block;
    margin-bottom: 8px;
    color: #FFF6D6;
    font-weight: 600;
    font-size: 1rem;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A2A12;
    border-radius: 5px;
    background-color: #0A0A0A;
    color: #FFF6D6;
    font-size: 1rem;
    box-sizing: border-box;
}

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

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

.page-contact__form-submit-btn {
    width: auto; /* Allow button to size naturally */
    min-width: 180px; /* Minimum width for submit button */
    margin-top: 10px;
}

.page-contact__image-placeholder {
    text-align: center;
    margin-top: 40px;
}

.page-contact__form-image {
    max-width: 100%;
    height: auto;
    display: inline-block; /* Center image */
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover;
}

.page-contact__form-note {
    font-size: 0.9rem;
    color: #888;
    text-align: center;
    margin-top: 30px;
}

/* Commitment Section */
.page-contact__commitment-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Background color for this section */
}

.page-contact__commitment-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-contact__commitment-item {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-contact__list-title {
    font-size: 1.3rem;
    color: #FFD36B;
    margin-bottom: 10px;
}

.page-contact__list-text {
    font-size: 0.95rem;
    color: #FFF6D6;
}

.page-contact__closing-statement {
    color: #FFF6D6;
    text-align: center;
    margin-top: 50px;
    font-size: 1.1rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* CTA Section */
.page-contact__cta-section {
    padding: 80px 0;
    background-color: #111111; /* Card BG color */
    text-align: center;
    border-top: 1px solid #3A2A12;
}

.page-contact__cta-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.page-contact__cta-title {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    color: #F2C14E;
    margin-bottom: 15px;
}

.page-contact__cta-description {
    font-size: 1.1rem;
    color: #FFF6D6;
    max-width: 800px;
    margin-bottom: 30px;
}

.page-contact__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    width: 100%; /* Ensure container takes full width */
    max-width: 600px; /* Limit max width for desktop */
    box-sizing: border-box;
    overflow: hidden;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero Section */
    .page-contact__hero-section {
        padding-top: 10px; /* Keep small padding for mobile */
        padding-bottom: 40px;
    }

    .page-contact__hero-title {
        font-size: 2rem;
    }

    .page-contact__hero-description {
        font-size: 1rem;
    }

    .page-contact__section-title {
        font-size: 1.8rem;
    }

    .page-contact__section-description {
        font-size: 0.95rem;
    }

    /* Contact Info Grid */
    .page-contact__info-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    /* Images */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
    }

    .page-contact__card-image,
    .page-contact__form-image {
        min-width: unset; /* Remove min-width for mobile */
        min-height: unset; /* Remove min-height for mobile */
    }

    /* Buttons and Button Containers */
    .page-contact__btn-primary,
    .page-contact__btn-secondary,
    .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;
        padding-left: 15px; /* Add padding for mobile buttons */
        padding-right: 15px;
    }

    .page-contact__cta-buttons,
    .page-contact__button-group,
    .page-contact__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px; /* Spacing between stacked buttons */
    }

    /* Form Section */
    .page-contact__contact-form {
        padding: 25px;
    }

    /* Commitment List */
    .page-contact__commitment-list {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    /* CTA Section */
    .page-contact__cta-section {
        padding: 50px 0;
    }

    .page-contact__cta-title {
        font-size: 1.8rem;
    }

    .page-contact__cta-description {
        font-size: 1rem;
    }
}