/* =========================================
   CONTACT PAGE STYLES
========================================= */

/* Hero */
.contact-page-hero {
  position: relative;
  height: 450px;
  background: url('../images/urban_mining_hero.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  padding-top: 80px; /* Offset for fixed header */
}
.contact-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(13,27,46,0.9) 0%, rgba(13,27,46,0.6) 100%);
}
.contact-page-hero-content {
  position: relative;
  z-index: 2;
}
.contact-page-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  margin-top: 12px;
  margin-bottom: 8px;
  line-height: 1.1;
  color: #fff;
}
.contact-page-subtitle {
  font-size: 1.1rem;
  color: #e2e8f0;
  max-width: 600px;
  margin-top: 0;
}

/* Breadcrumbs */
.hero-breadcrumb {
  margin-bottom: 12px;
}
.breadcrumb-list {
  display: inline-flex;
  align-items: center;
  list-style: none;
  padding: 8px 20px;
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}
.breadcrumb-item {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.breadcrumb-item a {
  color: #f1f5f9;
  text-decoration: none;
  transition: color 0.3s;
}
.breadcrumb-item a:hover {
  color: #10b981;
}
.breadcrumb-item.active {
  color: #10b981;
}
.breadcrumb-separator {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 12px;
}

/* Main Section */
.contact-main {
  padding: 100px 0;
  background: #f8faf9;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
}

/* Contact Info Cards */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.info-card {
  background: #fff;
  padding: 30px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
  transition: transform 0.3s, box-shadow 0.3s;
}
.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.06);
  border-color: #10b981;
}
.info-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(16,185,129,0.1);
  color: #10b981;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-details h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}
.info-details p, .info-details a {
  font-size: 1rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
  text-decoration: none;
  transition: color 0.3s;
}
.info-details a:hover {
  color: #10b981;
}

/* Contact Form */
.contact-form-wrapper {
  background: #fff;
  padding: 50px;
  border-radius: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}
.contact-form-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 10px;
}
.contact-form-desc {
  color: #64748b;
  margin-bottom: 30px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}
.form-group {
  margin-bottom: 0;
}
.form-group.full-width {
  grid-column: 1 / -1;
}
.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 1rem;
  color: #0f172a;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-control:focus {
  outline: none;
  border-color: #10b981;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
}
textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

/* Validation Styles */
.validation-message {
  color: #ef4444; /* red-500 */
  font-size: 0.95rem; /* Increased font size */
  margin-top: 6px;
  display: none;
  font-weight: 500;
}

.form-control.is-invalid ~ .validation-message {
  display: block;
}
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 30px;
  background: #10b981;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
  gap: 10px;
}
.btn-submit:hover {
  background: #059669;
  transform: translateY(-2px);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper {
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .contact-info-wrapper {
    align-items: center; /* Centers the cards themselves */
  }
  .info-card {
    width: 100%;
    max-width: 350px; /* Optional: Keep cards from being too wide, while staying centered */
  }
  .info-details p, .info-details a {
    word-break: break-all; /* Prevents long emails from overflowing on very small screens */
  }
}

/* =========================================
   HEADQUARTERS SECTION
========================================= */
.headquarters-section {
  padding: 100px 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
}
.headquarters-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hq-image-wrapper {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.hq-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.hq-image-wrapper:hover .hq-img {
  transform: scale(1.05);
}
.hq-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px;
  background: linear-gradient(to top, rgba(15,23,42,0.9), transparent);
}
.hq-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #10b981;
  color: #fff;
  padding: 8px 16px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  box-shadow: 0 4px 15px rgba(16,185,129,0.3);
}
.hq-map-wrapper {
  display: flex;
  flex-direction: column;
}
.hq-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 15px;
  line-height: 1.2;
}
.hq-desc {
  font-size: 1.1rem;
  color: #64748b;
  margin-bottom: 30px;
  line-height: 1.6;
}
.map-container {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 4px solid #fff;
}
.map-container iframe {
  display: block;
  filter: grayscale(20%) contrast(1.1);
}

@media (max-width: 900px) {
  .headquarters-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hq-img {
    height: 300px;
  }
}

@media (max-width: 480px) {
  /* Banner */
  .page-banner { min-height: 180px !important; height: auto !important; padding: 30px 0 !important; }
  .banner-title { font-size: 1.5rem !important; margin-bottom: 5px !important; }
  .banner-subtitle { font-size: 0.85rem !important; }
  .banner-breadcrumb { padding: 6px 15px !important; font-size: 0.8rem !important; }

  /* Main Section */
  .contact-main { padding: 30px 0 !important; }
  .contact-grid { gap: 30px !important; }

  /* Contact Info Cards */
  .contact-info-wrapper { gap: 15px !important; }
  .info-card { padding: 15px !important; gap: 15px !important; }
  .info-icon { width: 40px !important; height: 40px !important; border-radius: 10px !important; }
  .info-details h3 { font-size: 1.1rem !important; margin-bottom: 4px !important; }
  .info-details p, .info-details a { font-size: 0.88rem !important; line-height: 1.4 !important; }

  /* Contact Form */
  .contact-form-wrapper { margin: 0 -15px !important; padding: 25px 15px !important; border-radius: 0 !important; }
  .contact-form-title { font-size: 1.4rem !important; margin-bottom: 8px !important; }
  .contact-form-desc { font-size: 0.88rem !important; margin-bottom: 20px !important; line-height: 1.5 !important; }
  .form-group { margin-bottom: 12px !important; }
  .form-label { font-size: 0.85rem !important; margin-bottom: 5px !important; }
  .form-control { padding: 10px 12px !important; font-size: 0.9rem !important; border-radius: 8px !important; }
  textarea.form-control { min-height: 100px !important; }
  .btn-submit { padding: 12px 20px !important; font-size: 1rem !important; border-radius: 8px !important; }

  /* Headquarters Section */
  .headquarters-section { padding: 30px 0 !important; }
  .headquarters-grid { gap: 20px !important; }
  .hq-title { font-size: 1.5rem !important; margin-bottom: 8px !important; line-height: 1.2 !important; }
  .hq-desc { font-size: 0.88rem !important; margin-bottom: 15px !important; line-height: 1.5 !important; }
  .hq-img { height: 180px !important; border-radius: 12px !important; }
  .hq-overlay { padding: 15px !important; }
  .hq-badge { font-size: 0.8rem !important; padding: 5px 12px !important; }
  .map-container { border-radius: 12px !important; border-width: 2px !important; }
  .map-container iframe { height: 200px !important; }
}
