/* General styles for the contact page */
.page-contact {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Main text color on dark body background */
    background-color: transparent; /* Body background handled by shared.css */
}

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

.page-contact__section-title {
    font-size: 36px;
    font-weight: 700;
    color: #F2C14E; /* Brand primary color for titles */
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
}

.page-contact__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #FFD86A 0%, #DDA11D 100%);
    border-radius: 2px;
}

.page-contact__section-title--light {
    color: #FFF6D6; /* Light text for titles on dark sections */
}

/* Hero Section */
.page-contact__hero-section {
    position: relative;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    margin-bottom: 40px;
    display: flex;
    flex-direction: column; /* Image above, text below */
    align-items: center;
    text-align: center;
}

.page-contact__hero-image-wrapper {
    width: 100%;
    max-height: 600px; /* Limit height for hero image */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 30px; /* Space between image and content */
}

.page-contact__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    filter: brightness(0.7); /* Slightly darken image for text readability */
}

.page-contact__hero-content {
    max-width: 800px;
    padding: 0 20px;
    margin-bottom: 40px;
}

.page-contact__main-title {
    font-size: 48px;
    font-weight: 700;
    color: #FFF6D6; /* White text on dark background */
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-contact__intro-text {
    font-size: 18px;
    color: #FFF6D6; /* White text on dark background */
    margin-bottom: 30px;
}

/* CTA Button Styles */
.page-contact__cta-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
    border: none;
    max-width: 100%; /* For responsiveness */
    box-sizing: border-box; /* For responsiveness */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-contact__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%); /* Custom button color */
    color: #111111; /* Dark text on bright button */
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-contact__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
}

.page-contact__btn-secondary {
    background: #111111; /* Card BG color */
    color: #F2C14E; /* Brand primary color */
    border: 2px solid #F2C14E; /* Border with brand primary color */
}

.page-contact__btn-secondary:hover {
    background: #F2C14E;
    color: #111111;
    transform: translateY(-3px);
}

/* Contact Methods Section */
.page-contact__contact-methods-section {
    padding: 60px 0;
    background-color: #0A0A0A; /* Body background color */
}

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

.page-contact__method-card {
    background-color: #111111; /* Card BG color */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #3A2A12; /* Border color */
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFF6D6; /* Text Main color */
}

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

.page-contact__method-icon {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 8px rgba(242, 193, 78, 0.5)); /* Glow effect */
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
    width: 100%; /* For display size */
    height: auto; /* For display size */
}

.page-contact__method-title {
    font-size: 24px;
    font-weight: 600;
    color: #F2C14E; /* Brand primary color */
    margin-bottom: 15px;
}

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

.page-contact__phone-number {
    font-size: 20px;
    font-weight: 700;
    color: #FFD36B; /* Glow color for phone number */
    margin-bottom: 25px;
}

/* Contact Form Section */
.page-contact__form-section {
    padding: 80px 0;
    background-color: #111111; /* Card BG color */
}

.page-contact__form-intro {
    text-align: center;
    font-size: 18px;
    color: #FFF6D6; /* Text Main color */
    margin-bottom: 50px;
}

.page-contact__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: center;
    background-color: #0A0A0A; /* Darker background for the form area */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #3A2A12; /* Border color */
}

.page-contact__form-image {
    width: 50%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    filter: brightness(0.8) drop-shadow(0 0 10px rgba(255, 211, 107, 0.3)); /* Soft glow */
    min-width: 200px; /* Enforce min image size */
    min-height: 200px; /* Enforce min image size */
}

.page-contact__contact-form {
    width: 50%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-contact__form-group {
    display: flex;
    flex-direction: column;
}

.page-contact__form-label {
    font-size: 16px;
    color: #FFD36B; /* Glow color for labels */
    margin-bottom: 8px;
    font-weight: 600;
}

.page-contact__form-input,
.page-contact__form-textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A2A12;
    border-radius: 8px;
    background-color: #0A0A0A;
    color: #FFF6D6;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
    color: rgba(255, 246, 214, 0.6);
}

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

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

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

details.page-contact__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #111111;
  color: #FFF6D6;
}
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: #F2C14E;
}
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: rgba(242, 193, 78, 0.1);
}
.page-contact__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}
.page-contact__faq-toggle {
  font-size: 24px;
  font-weight: bold;
  color: #FFD36B;
  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: #0A0A0A;
  border-radius: 0 0 5px 5px;
  color: #FFF6D6;
}
.page-contact__faq-answer p {
    margin-bottom: 0;
}
.page-contact__faq-answer a {
    color: #F2C14E;
    text-decoration: none;
}
.page-contact__faq-answer a:hover {
    text-decoration: underline;
}

/* Universal image responsiveness for content area */
.page-contact img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* --- Responsive Styles --- */

/* Mobile Adaption @media (max-width: 768px) */
@media (max-width: 768px) {
    .page-contact__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .page-contact__section-title {
        font-size: 28px;
        margin-bottom: 30px;
    }

    /* Hero Section */
    .page-contact__hero-section {
        padding-top: 10px !important;
        margin-bottom: 30px;
    }

    .page-contact__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 20px;
    }

    .page-contact__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-contact__hero-content {
        padding: 0 15px;
    }

    .page-contact__main-title {
        font-size: 32px;
        margin-bottom: 15px;
    }

    .page-contact__intro-text {
        font-size: 16px;
        margin-bottom: 20px;
    }

    /* CTA Buttons */
    .page-contact__cta-button {
        padding: 12px 20px;
        font-size: 16px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    /* Contact Methods Section */
    .page-contact__contact-methods-section {
        padding: 40px 0;
    }

    .page-contact__methods-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }

    .page-contact__method-card {
        padding: 25px;
    }

    .page-contact__method-icon {
        width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
        max-width: 250px;
        margin: 0 auto 20px;
    }

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

    .page-contact__method-description {
        font-size: 15px;
    }

    .page-contact__phone-number {
        font-size: 18px;
    }

    /* Contact Form Section */
    .page-contact__form-section {
        padding: 50px 0;
    }

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

    .page-contact__form-wrapper {
        flex-direction: column;
        padding: 30px 20px;
        gap: 30px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-contact__form-image {
        width: 100%;
        max-width: 100% !important;
        height: auto !important;
        min-width: 200px !important;
        min-height: 200px !important;
    }

    .page-contact__contact-form {
        width: 100%;
    }

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

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

    /* FAQ Section */
    .page-contact__faq-section {
        padding: 40px 0 50px;
    }

    .page-contact__faq-list {
        margin-top: 30px;
    }

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

    /* Mobile image override (required by prompt) */
    .page-contact img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    
    .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;
    }

    /* Mobile button override (required by prompt) */
    .page-contact__cta-button,
    .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;
    }
    
    /* Button container mobile adaptation */
    .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-wrap: wrap !important;
        gap: 10px;
    }
    
    /* If buttons use flex layout, ensure wrapping or column direction */
    .page-contact__hero-content .page-contact__cta-button,
    .page-contact__methods-grid .page-contact__cta-button,
    .page-contact__contact-form .page-contact__cta-button {
        margin-left: auto;
        margin-right: auto;
    }
}