/* style/contact.css */
:root {
  --primary-color: #004AAD; /* Deep Blue */
  --secondary-color: #FFD700; /* Gold */
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-dark: #000;
  --background-light: #f5f5f5;
  --card-bg-dark: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.15);
}

/* Base styles for the contact page */
.page-contact {
  background-color: var(--background-dark); /* Inherits from body, but ensure consistency */
  color: var(--text-light); /* Default text color for dark body background */
  line-height: 1.6;
  font-family: 'Arial', sans-serif;
  /* Fixed header padding */
  padding-top: 120px; /* Desktop: Adjust based on actual header height */
}

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

.page-contact__section-title {
  font-size: 36px;
  font-weight: bold;
  color: var(--secondary-color);
  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-color: var(--primary-color);
  border-radius: 2px;
}

.page-contact__description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: rgba(255, 255, 255, 0.8);
}

/* Hero Section */
.page-contact__hero-section {
  padding: 80px 0;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-color) 0%, #002D62 100%);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-contact__main-title {
  font-size: 48px;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-contact__hero-section .page-contact__description {
  color: var(--text-light);
  font-size: 20px;
}

.page-contact__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: var(--secondary-color);
  color: var(--primary-color);
  text-decoration: none;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
  cursor: pointer;
  margin-top: 30px;
}

.page-contact__cta-button:hover {
  background: #e6c200; /* Slightly darker gold */
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Form Section */
.page-contact__form-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-contact__form-wrapper {
  background: var(--card-bg-dark);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  margin: 0 auto;
}

.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: 16px;
  margin-bottom: 8px;
  color: var(--text-light);
  font-weight: bold;
}

.page-contact__form-input,
.page-contact__form-textarea {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: var(--text-light);
  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, 255, 255, 0.5);
}

.page-contact__form-input:focus,
.page-contact__form-textarea:focus {
  border-color: var(--secondary-color);
  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: var(--primary-color);
  color: var(--text-light);
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-contact__submit-button:hover {
  background-color: #003A82; /* Slightly darker primary */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* Info Section */
.page-contact__info-section {
  padding: 60px 0;
  background: linear-gradient(45deg, #001f3f 0%, #003366 100%);
  color: var(--text-light);
}

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

.page-contact__info-item {
  background: var(--card-bg-dark);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-contact__info-icon {
  width: 100px; /* Min size 200x200 is for actual content images, icons can be smaller but should be visually significant */
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

.page-contact__info-title {
  font-size: 24px;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.page-contact__info-text {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 15px;
}

.page-contact__info-link {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

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

/* Social Section */
.page-contact__social-section {
  padding: 60px 0;
  background-color: var(--background-dark);
  color: var(--text-light);
}

.page-contact__social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 25px;
  margin-top: 40px;
}

.page-contact__social-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-light);
  font-size: 18px;
  font-weight: bold;
  background: var(--card-bg-dark);
  padding: 15px 25px;
  border-radius: 8px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.page-contact__social-link:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.page-contact__social-icon {
  width: 40px; /* These are specific social icons, can be smaller than 200x200 */
  height: 40px;
  object-fit: contain;
}

/* Map Section */
.page-contact__map-section {
  padding: 60px 0;
  background-color: #001a33; /* Darker blue */
  color: var(--text-light);
}

.page-contact__map-placeholder {
  background: var(--card-bg-dark);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
  text-align: center;
}

.page-contact__map-image {
  width: 100%;
  height: auto;
  display: block;
  max-height: 400px;
  object-fit: cover;
}

.page-contact__map-caption {
  padding: 20px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-contact__main-title {
    font-size: 40px;
  }
  .page-contact__section-title {
    font-size: 32px;
  }
  .page-contact__description {
    font-size: 16px;
  }
  .page-contact__cta-button {
    padding: 12px 30px;
    font-size: 18px;
  }
  .page-contact__info-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-contact {
    padding-top: 100px !important; /* Mobile: Adjust based on actual header height */
    font-size: 16px;
    line-height: 1.6;
  }
  .page-contact__container {
    padding: 0 15px;
  }
  .page-contact__hero-section {
    padding: 60px 0;
  }
  .page-contact__main-title {
    font-size: 32px;
  }
  .page-contact__section-title {
    font-size: 28px;
  }
  .page-contact__description {
    font-size: 15px;
  }
  .page-contact__cta-button,
  .page-contact__submit-button {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-contact__form-wrapper {
    padding: 25px;
  }
  .page-contact__form-input,
  .page-contact__form-textarea {
    font-size: 15px;
    padding: 10px 12px;
  }
  .page-contact__info-grid {
    grid-template-columns: 1fr;
  }
  .page-contact__info-item {
    padding: 25px;
  }
  .page-contact__info-icon {
    width: 80px;
    height: 80px;
  }
  .page-contact__info-title {
    font-size: 20px;
  }
  .page-contact__social-links {
    flex-direction: column;
    gap: 15px;
  }
  .page-contact__social-link {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    padding: 12px 20px;
  }
  .page-contact__social-icon {
    width: 32px;
    height: 32px;
  }
  .page-contact__map-image {
    max-height: 300px;
  }
  /* Ensure all images are responsive */
  .page-contact img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-contact__hero-section,
  .page-contact__form-section,
  .page-contact__info-section,
  .page-contact__social-section,
  .page-contact__map-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-contact__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    overflow: hidden !important; /* Important for preventing horizontal scroll */
  }
  .page-contact__map-placeholder {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}

/* Contrast Fixes */
.page-contact__dark-bg {
  color: var(--text-light); /* Deep Blue bg, White text */
}

.page-contact__light-bg {
  color: var(--text-dark); /* White bg, Dark text */
  background: var(--background-light);
}

.page-contact__btn-primary {
  background: var(--primary-color);
  color: var(--text-light);
}

.page-contact__btn-secondary {
  background: var(--background-light);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

/* Ensure text on card background is visible */
.page-contact__card-bg-dark {
  background: var(--card-bg-dark);
  color: var(--text-light);
}

/* Specific contrast adjustments for form labels */
.page-contact__form-label {
  color: var(--text-light);
}

/* Placeholder text contrast */
.page-contact__form-input::placeholder,
.page-contact__form-textarea::placeholder {
  color: rgba(255, 255, 255, 0.6);
}