/* style/contact.css */
.page-contact {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a1a; /* Inherited from shared.css, ensure contrast */
  line-height: 1.6;
  padding-bottom: 60px; /* Add some padding at the bottom for overall page */
}

.page-contact__hero-section {
  position: relative;
  width: 100%;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
  text-align: center;
  background: linear-gradient(135deg, #8B0000 0%, #FFD700 100%); /* Blend brand colors */
  color: #ffffff;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  box-sizing: border-box;
}

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

.page-contact__main-title {
  font-size: 3.2em;
  font-weight: 700;
  margin-bottom: 20px;
  color: #ffffff; /* White title for contrast on gradient background */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-contact__hero-description {
  font-size: 1.15em;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.page-contact__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
}

.page-contact__btn-primary {
  background-color: #FFD700; /* Gold primary color */
  color: #1a1a1a; /* Dark text for contrast on gold */
}

.page-contact__btn-primary:hover {
  background-color: #e6c200; /* Slightly darker gold on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__btn-secondary {
  background-color: #8B0000; /* Dark red secondary color */
  color: #ffffff; /* White text for contrast on dark red */
}

.page-contact__btn-secondary:hover {
  background-color: #6f0000; /* Slightly darker red on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__section-title {
  font-size: 2.5em;
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
  color: #FFD700; /* Gold title */
}

.page-contact__section-title--alt {
  color: #ffffff;
}

.page-contact__info-section {
  padding: 80px 20px;
  background-color: #2a2a2a; /* Slightly lighter dark background */
  color: #ffffff;
}

.page-contact__info-container {
  max-width: 1200px;
  margin: 0 auto;
}

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

.page-contact__contact-card {
  background-color: #333333; /* Darker card background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #444;
}

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

.page-contact__contact-icon {
  width: 100%; /* Make icon fill card width, will be resized by max-width:100% */
  max-width: 150px; /* Limit actual displayed size */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-contact__card-title {
  font-size: 1.5em;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFD700;
}

.page-contact__card-text {
  font-size: 1em;
  margin-bottom: 10px;
  color: #f0f0f0;
}

.page-contact__contact-link {
  color: #FFD700; /* Gold link color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-contact__contact-link:hover {
  color: #e6c200;
  text-decoration: underline;
}

.page-contact__btn-small {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 0.9em;
  font-weight: bold;
  text-decoration: none;
  margin-top: 15px;
  transition: all 0.3s ease;
}

.page-contact__form-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Dark background for form */
  color: #ffffff;
  box-sizing: border-box;
}

.page-contact__form-container {
  max-width: 700px;
  margin: 0 auto;
  background-color: #2a2a2a; /* Slightly lighter background for the form block */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid #444;
}

.page-contact__form-description {
  text-align: center;
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

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

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

.page-contact__form-label {
  font-size: 1em;
  margin-bottom: 8px;
  color: #FFD700;
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #1a1a1a; /* Very dark input background */
  color: #ffffff;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-contact__form-textarea {
  resize: vertical;
}

.page-contact__submit-button {
  padding: 15px 30px;
  background-color: #FFD700;
  color: #1a1a1a;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-contact__hours-social-section {
  padding: 80px 20px;
  background-color: #2a2a2a;
  color: #ffffff;
}

.page-contact__hours-social-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-contact__working-hours,
.page-contact__social-media {
  background-color: #333333;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  border: 1px solid #444;
}

.page-contact__social-icons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.page-contact__social-link {
  display: block;
  transition: transform 0.3s ease;
}

.page-contact__social-link:hover {
  transform: translateY(-5px) scale(1.1);
}

.page-contact__social-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.page-contact__map-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
  text-align: center;
}

.page-contact__map-container {
  max-width: 1200px;
  margin: 0 auto;
}

.page-contact__map-placeholder {
  width: 100%;
  height: 0;
  padding-bottom: 50%; /* 2:1 aspect ratio */
  position: relative;
  background-color: #2a2a2a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  margin-bottom: 30px;
  border: 1px solid #444;
}

.page-contact__map-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.page-contact__map-note {
  font-size: 1.1em;
  color: #f0f0f0;
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 2.8em;
  }
  .page-contact__section-title {
    font-size: 2.2em;
  }
}

@media (max-width: 768px) {
  .page-contact__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 300px;
  }

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

  .page-contact__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-contact__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-contact__cta-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 25px;
    font-size: 1em;
  }

  .page-contact__section-title {
    font-size: 2em;
    margin-bottom: 40px;
  }

  .page-contact__info-section,
  .page-contact__form-section,
  .page-contact__hours-social-section,
  .page-contact__map-section {
    padding: 50px 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__contact-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-contact__contact-icon {
    max-width: 120px;
  }

  .page-contact__card-title {
    font-size: 1.3em;
  }

  .page-contact__form-container {
    padding: 30px;
  }

  .page-contact__form-label {
    font-size: 0.95em;
  }

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

  .page-contact__submit-button {
    padding: 12px 25px;
    font-size: 1em;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-contact__hours-social-container {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-contact__social-icon {
    width: 50px;
    height: 50px;
  }

  .page-contact__map-placeholder {
    padding-bottom: 75%; /* Adjust aspect ratio for mobile */
  }

  .page-contact img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-contact__hero-container,
  .page-contact__info-container,
  .page-contact__form-container,
  .page-contact__hours-social-container,
  .page-contact__map-container {
    padding-left: 0;
    padding-right: 0;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }
}

@media (max-width: 480px) {
  .page-contact__main-title {
    font-size: 1.8em;
  }
  .page-contact__section-title {
    font-size: 1.8em;
  }
  .page-contact__cta-button {
    font-size: 0.95em;
    padding: 10px 20px;
  }
  .page-contact__social-icon {
    width: 45px;
    height: 45px;
  }
}