/* style/contact.css */

/* --- Base Styles --- */
.page-contact {
  color: #FFF5E1; /* Text Main - consistent with dark body background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css #B71C1C */
}

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

.page-contact__section-title {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

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

/* --- Hero Section --- */
.page-contact__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
}

.page-contact__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit hero image height */
  overflow: hidden;
  position: relative;
}

.page-contact__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  filter: brightness(0.7); /* Slightly darken image for text contrast */
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-contact__hero-content {
  position: relative; /* Ensure content is in normal flow below image */
  text-align: center;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up slightly over the image, but not *on* it */
  z-index: 1; /* Ensure text is above any part of the image it overlaps */
  background: linear-gradient(to bottom, rgba(183, 28, 28, 0.0), rgba(183, 28, 28, 0.8), #B71C1C); /* Fade from transparent to body background */
  border-radius: 10px;
}

.page-contact__main-title {
  font-size: clamp(2em, 4vw, 3.5em); /* Responsive H1 font size */
  font-weight: 900;
  line-height: 1.2;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 15px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.page-contact__intro-text {
  font-size: clamp(1em, 1.5vw, 1.2em);
  color: #FFF5E1; /* Text Main */
  max-width: 700px;
  margin: 0 auto;
}

/* --- Contact Form Section --- */
.page-contact__form-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Body background color */
}

.page-contact__contact-form {
  background-color: #D32F2F; /* Card BG */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 700px;
  margin: 0 auto;
  border: 1px solid #F2B544; /* Border */
}

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

.page-contact__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
}

.page-contact__form-input,
.page-contact__form-textarea {
  width: calc(100% - 20px); /* Adjust for padding */
  padding: 12px 10px;
  border: 1px solid #F2B544; /* Border */
  border-radius: 5px;
  background-color: #7A0E0E; /* Deep Red for input background */
  color: #FFF5E1; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
  min-width: 200px; /* Ensure minimum size */
  min-height: 40px; /* Ensure minimum height for input */
}

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

.page-contact__form-textarea {
  resize: vertical;
  min-height: 120px; /* Ensure minimum height for textarea */
}

.page-contact__submit-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for button text */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-width: 200px; /* Ensure minimum size */
  min-height: 48px; /* Ensure minimum height */
}

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

/* --- Contact Info Section --- */
.page-contact__info-section {
  padding: 60px 0;
  background-color: #7A0E0E; /* Deep Red */
}

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

.page-contact__method-card {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  max-width: 100%; /* Ensure card responsiveness */
  box-sizing: border-box;
  min-width: 200px; /* Ensure minimum size */
}

.page-contact__method-icon {
  width: 100%; /* Image fills card width */
  height: 200px; /* Fixed height for visual consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #F2B544; /* Border */
  max-width: 100%; /* Ensure image responsiveness */
  display: block;
  min-width: 200px; /* Ensure minimum size */
  min-height: 200px;
}

.page-contact__method-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.page-contact__method-text {
  color: #FFF5E1; /* Text Main */
  margin-bottom: 25px;
  flex-grow: 1; /* Allow text to grow */
}

.page-contact__method-button {
  display: inline-block;
  padding: 12px 25px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for button text */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  min-width: 200px; /* Ensure minimum size */
  min-height: 48px; /* Ensure minimum height */
}

.page-contact__method-button:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
  transform: translateY(-2px);
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .page-contact__hero-image {
    max-height: 400px;
  }
  .page-contact__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 10px 0 40px 0;
  }
  .page-contact__hero-image {
    max-height: 300px;
  }
  .page-contact__hero-content {
    margin-top: -60px;
    padding: 20px 15px;
  }
  .page-contact__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }
  .page-contact__intro-text {
    font-size: clamp(0.9em, 2.5vw, 1.1em);
  }
  .page-contact__section-title {
    font-size: 2em;
  }
  .page-contact__section-description {
    font-size: 1em;
  }

  /* Images responsive */
  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__hero-image-wrapper,
  .page-contact__method-card,
  .page-contact__contact-form,
  .page-contact__contact-methods {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-contact__method-icon {
    height: 180px; /* Adjust height for mobile */
  }

  /* Buttons responsive */
  .page-contact__submit-button,
  .page-contact__method-button,
  .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;
    padding-right: 15px;
  }
  .page-contact__contact-methods {
    grid-template-columns: 1fr; /* Stack cards on mobile */
  }
}

@media (max-width: 480px) {
  .page-contact__form-section,
  .page-contact__info-section {
    padding: 40px 0;
  }
  .page-contact__contact-form {
    padding: 25px;
  }
  .page-contact__method-card {
    padding: 20px;
  }
  .page-contact__method-title {
    font-size: 1.5em;
  }
  .page-contact__method-text {
    font-size: 0.9em;
  }
}

/* Ensure no filter is used on images to change color */
.page-contact img {
  filter: none;
}
.page-contact__hero-image {
  filter: brightness(0.7); /* This is allowed for text contrast, not changing image color */
}