/* style/contact.css */

/* Custom Color Palette Variables */
:root {
  --primary-color: #C91F17;
  --secondary-color: #E53935;
  --button-gradient: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%);
  --card-bg: #D32F2F;
  --background: #B71C1C;
  --text-main: #FFF5E1;
  --border: #F2B544;
  --glow: #FFCC66;
  --gold: #F4D34D;
  --deep-red: #7A0E0E;
}

/* Base styles for the contact page */
.page-contact {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-main); /* Default text color for dark background */
  background-color: var(--background); /* Default background color */
  padding-bottom: 40px;
}

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

/* Hero Section */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  text-align: center;
  overflow: hidden;
}

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

.page-contact__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff; /* White text for contrast on dark image */
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--gold); /* Gold text for H1 */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.page-contact__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background: var(--button-gradient); /* Button color from custom palette */
  color: var(--deep-red); /* Deep Red text for contrast on gold button */
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

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

/* Section Titles */
.page-contact__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.5em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: var(--gold); /* Gold text for section titles */
}

.page-contact__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  color: var(--text-main); /* Light gold text for descriptions */
}

/* Dark background sections */
.page-contact__dark-section {
  background-color: var(--background); /* Deep Red background */
  color: var(--text-main); /* Light Gold text */
  padding: 60px 0;
}

/* Form Section */
.page-contact__form-section .page-contact__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

.page-contact__form-wrapper {
  flex: 1;
  min-width: 300px;
}

.page-contact__contact-form {
  background-color: var(--card-bg); /* Card BG color */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-main); /* Light Gold text */
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border); /* Border color */
  border-radius: 5px;
  background-color: rgba(255, 245, 225, 0.1); /* Slightly transparent white for input fields */
  color: var(--text-main); /* Light Gold text */
  font-size: 1em;
  box-sizing: border-box;
}

.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 245, 225, 0.7); /* Lighter placeholder text */
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  outline: none;
  border-color: var(--gold); /* Gold border on focus */
  box-shadow: 0 0 8px rgba(244, 211, 77, 0.5);
}

.page-contact__submit-button {
  width: 100%;
  padding: 15px;
  background: var(--button-gradient); /* Button color */
  color: var(--deep-red); /* Deep Red text for contrast */
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.page-contact__submit-button:hover {
  background: linear-gradient(180deg, var(--gold) 0%, var(--glow) 100%);
  transform: translateY(-2px);
}

.page-contact__form-image-container {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-contact__form-illustration {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

/* Methods Section */
.page-contact__methods-section {
  padding: 60px 0;
  background-color: var(--background);
  color: var(--text-main);
}

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

.page-contact__method-card {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--text-main);
}

.page-contact__method-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 150px; /* Max width for icon within card */
  height: auto;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

.page-contact__method-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--gold);
}

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

.page-contact__method-button {
  display: inline-block;
  padding: 10px 20px;
  background: var(--button-gradient);
  color: var(--deep-red);
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: transform 0.3s ease;
  margin-top: auto; /* Push button to bottom */
}

.page-contact__method-button:hover {
  transform: translateY(-2px);
}

/* FAQ Section */
.page-contact__faq-section {
  background-color: #f5f5f5; /* Light background for FAQ */
  color: #333333; /* Dark text for light background */
  padding: 60px 0;
}

.page-contact__faq-section .page-contact__section-title {
  color: var(--primary-color); /* Main brand color for title on light background */
}

.page-contact__faq-section .page-contact__section-description {
  color: #555555; /* Darker grey for description on light background */
}

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

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

.page-contact__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  color: #333333; /* Dark text for question */
  background-color: #f9f9f9;
  border-bottom: 1px solid #e0e0e0;
}

.page-contact__faq-question:hover {
  background-color: #f0f0f0;
}

.page-contact__faq-item[open] .page-contact__faq-question {
  background-color: #f0f0f0;
  border-bottom: 1px solid #d0d0d0;
}

.page-contact__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--primary-color); /* Main brand color for toggle */
}

.page-contact__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555; /* Dark grey for answer text */
}

.page-contact__faq-answer p {
  margin-bottom: 15px;
}

.page-contact__faq-button {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--primary-color); /* Main brand color for button */
  color: #ffffff; /* White text for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-contact__faq-button:hover {
  background-color: var(--secondary-color); /* Auxiliary brand color on hover */
}

/* CTA Section at bottom */
.page-contact__cta-section {
  text-align: center;
  padding: 80px 0;
  background-color: var(--background);
  color: var(--text-main);
}

.page-contact__cta-section .page-contact__section-title {
  color: var(--gold);
}

.page-contact__cta-section .page-contact__section-description {
  color: var(--text-main);
  margin-bottom: 50px;
}

.page-contact__cta-button--large {
  padding: 18px 40px;
  font-size: 1.2em;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .page-contact__hero-image {
    filter: brightness(0.4); /* Darken more for smaller screens */
  }

  .page-contact__form-section .page-contact__container {
    flex-direction: column;
  }
  
  .page-contact__form-wrapper,
  .page-contact__form-image-container {
    width: 100%;
    max-width: 600px; /* Constrain width on medium screens */
  }

  .page-contact__form-image-container {
    order: -1; /* Image above form on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  /* Mobile general content area */
  .page-contact__container,
  .page-contact__form-section .page-contact__container,
  .page-contact__methods-section .page-contact__container,
.page-contact__faq-section .page-contact__container,
  .page-contact__cta-section .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-contact {
    font-size: 16px;
    line-height: 1.6;
  }

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

  .page-contact__main-title {
    font-size: clamp(1.8em, 8vw, 2.5em);
  }

  .page-contact__description {
    font-size: 1em;
  }

  .page-contact__section-title {
    font-size: clamp(1.5em, 7vw, 2em);
  }

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

  /* Images responsive */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__form-image-container,
  .page-contact__method-card {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-contact__cta-button,
  .page-contact__submit-button,
  .page-contact__method-button,
  .page-contact__faq-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  .page-contact__methods-grid {
    grid-template-columns: 1fr; /* Single column on mobile */
  }
  
  .page-contact__form-section,
  .page-contact__methods-section,
  .page-contact__faq-section,
  .page-contact__cta-section {
    padding: 40px 0 !important;
  }

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

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