/* ==========================================================================
   CONTACT PAGE SPECIFIC STYLES (contact.css)
   ========================================================================== */

/* --- Light Header Override (page starts with light banner) --- */
.contact-page .site-header {
  background-color: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid #e6edf7;
}

.contact-page .nav-link {
  color: #123563;
}

.contact-page .nav-link:hover,
.contact-page .nav-link.active {
  color: var(--accent);
}

.contact-page .btn-search,
.contact-page .mobile-toggle {
  color: #1a202c;
}

.contact-page .btn-quote {
  background-color: var(--accent);
}

/* --- Shared: small accent underline bar --- */
.contact-title-bar {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background-color: var(--accent);
  margin: 14px 0 22px 0;
}

.contact-title-bar--light {
  background-color: #ffffff;
}

/* ==========================================================================
   1. BANNER SECTION
   ========================================================================== */

.contact-banner-section {
  position: relative;
  padding: 170px 0 150px 0;
  overflow: hidden;
  background-color: #f4f7fb;
}

.contact-banner-bg {
  position: absolute;
  inset: 0;
  background-image: url("../images/factory_exterior.jpg");
  background-size: cover;
  background-position: right center;
}

/* White fade from left so the text stays readable */
.contact-banner-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244, 247, 251, 1) 22%, rgba(244, 247, 251, 0.85) 45%, rgba(244, 247, 251, 0.05) 75%, rgba(244, 247, 251, 0) 100%);
}

.contact-banner-text {
  position: relative;
  z-index: 2;
  max-width: 520px;
}

.contact-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 18px;
}

.contact-breadcrumb a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.contact-breadcrumb a:hover {
  color: var(--accent);
}

.contact-breadcrumb .breadcrumb-sep {
  font-size: 10px;
  color: #a0aec0;
}

.contact-breadcrumb .breadcrumb-current {
  color: var(--ink);
  font-weight: 600;
}

.contact-banner-title {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: #123563;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0;
}

.contact-banner-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 420px;
  margin-bottom: 0;
}

/* ==========================================================================
   2. CONTACT INFORMATION SECTION (card overlaps the banner)
   ========================================================================== */

.contact-info-section {
  padding: 0 0 80px 0;
}

.contact-info-card {
  position: relative;
  z-index: 3;
  margin-top: -70px;
  background-color: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(15, 34, 74, 0.1);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 45px 20px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 22px;
  border-right: 1px solid var(--line);
}

.contact-info-item:last-child {
  border-right: none;
}

.contact-info-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: all 0.3s ease;
}

.contact-info-item:hover .contact-info-icon {
  background-color: var(--accent);
  color: #ffffff;
}

.contact-info-label {
  display: block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.contact-info-value {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin-bottom: 0;
}

/* ==========================================================================
   3. MESSAGE FORM & SIDEBAR SECTION
   ========================================================================== */

.contact-message-section {
  padding: 0 0 60px 0;
}

.contact-message-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  align-items: stretch;
}

.contact-form-title {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  color: #123563;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.contact-form-intro {
  font-size: 16px;
  margin-bottom: 30px;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.inquiry-form > .form-control {
  margin-bottom: 18px;
}

.inquiry-form textarea.form-control {
  min-height: 170px;
}

.btn-send-message {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background-color: var(--accent);
  color: #ffffff;
  border: none;
  padding: 15px 34px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.btn-send-message:hover {
  background-color: var(--accent-hover);
  box-shadow: 0 8px 20px rgba(12, 79, 180, 0.3);
  transform: translateY(-1px);
}

/* --- Sidebar (blue panel) --- */

.contact-sidebar {
  position: relative;
  background: linear-gradient(160deg, rgba(0, 82, 204, 0.9) 0%, rgba(0, 59, 149, 0.92) 45%, rgba(0, 34, 92, 0.95) 100%),
    url("../images/contact-img.png") center bottom / cover no-repeat;
  border-radius: 8px;
  padding: 50px 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
}

.contact-sidebar::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
}

.contact-sidebar::after {
  content: "";
  position: absolute;
  bottom: -110px;
  left: -70px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}

.contact-sidebar-content {
  position: relative;
  z-index: 2;
}

.contact-sidebar-title {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  line-height: 1.2;
  letter-spacing: 0.5px;
  margin-bottom: 0;
}

.contact-sidebar-desc {
  position: relative;
  z-index: 2;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

/* ==========================================================================
   4. CTA BANNER SECTION
   ========================================================================== */

.contact-cta-section {
  padding: 0 0 60px 0;
}

.contact-cta-bar {
  background: linear-gradient(120deg, var(--accent) 0%, var(--primary) 60%, var(--primary-dark) 100%);
  border-radius: 8px;
  padding: 40px 50px;
  display: flex;
  align-items: center;
  gap: 30px;
}

.contact-cta-icon {
  flex-shrink: 0;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background-color: #ffffff;
  color: var(--accent);
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-cta-text {
  flex: 1;
}

.contact-cta-title {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.contact-cta-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0;
}

.contact-cta-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid #ffffff;
  color: #ffffff;
  padding: 14px 30px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.contact-cta-btn:hover {
  background-color: #ffffff;
  color: var(--accent);
}

/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 991px) {
  .contact-banner-section {
    padding: 130px 0 120px 0;
  }
  .contact-info-card {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 35px;
  }
  .contact-info-item:nth-child(2n) {
    border-right: none;
  }
  .contact-message-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
  .contact-sidebar {
    min-height: 380px;
  }
  .contact-cta-bar {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }
}

@media (max-width: 575px) {
  .contact-banner-section {
    padding: 110px 0 100px 0;
  }
  .contact-info-card {
    grid-template-columns: 1fr;
    padding: 40px 24px;
  }
  .contact-info-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 0 0 30px 0;
  }
  .contact-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .btn-send-message {
    width: 100%;
    justify-content: center;
  }
}
