/**
 * Matchwell Engineering — Contact Us Redesign Styling
 * contact-us.css | astra-matchwell child theme
 */



/* ==========================================================================
   Base Layout & Container
   ========================================================================== */
.mw-contact-redesign {
  background: #F8FAFC !important;
  padding: 80px 0 100px !important;
  color: #334155;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  border-top: 1px solid #E2E8F0;
  border-bottom: 1px solid #E2E8F0;
}

.mw-contact__container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .mw-contact__container {
    padding: 0 20px;
  }
}

/* Header */
.mw-contact__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.mw-contact__badge {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #1E3A8A;
  background: rgba(30, 58, 138, 0.08);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.mw-contact__title {
  font-family: 'Poppins', sans-serif !important;
  font-size: clamp(32px, 4vw, 42px) !important;
  font-weight: 700 !important;
  color: #0D1F3C !important;
  line-height: 1.2 !important;
  margin: 0 0 16px !important;
  letter-spacing: -0.015em !important;
}

.mw-contact__subtitle {
  font-size: 16px !important;
  line-height: 1.6 !important;
  color: #64748B !important;
  margin: 0 !important;
}

/* ==========================================================================
   Layout Grid
   ========================================================================== */
.mw-contact__layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 50px;
}

@media (min-width: 1024px) {
  .mw-contact__layout {
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: flex-start;
  }
}

/* ==========================================================================
   Locations (Left Column)
   ========================================================================== */
.mw-contact__locations {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .mw-contact__locations {
    grid-template-columns: 1fr 1fr;
  }
}

/* Make the first card span 2 columns on tablet/desktop to feature the Head Office (Unit 1) */
@media (min-width: 640px) {
  .mw-contact__loc-card:first-child {
    grid-column: 1 / -1;
  }
}

.mw-contact__loc-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 28px 24px;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
}

.mw-contact__loc-card:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
}

.mw-contact__loc-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1E3A8A !important;
  margin: 0 0 16px !important;
  line-height: 1.3 !important;
}

.mw-contact__loc-detail {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.mw-contact__loc-icon {
  color: #3B82F6;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.mw-contact__loc-icon svg {
  width: 100%;
  height: 100%;
}

.mw-contact__loc-detail p,
.mw-contact__loc-detail a {
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  margin: 0 !important;
  text-decoration: none;
}

.mw-contact__loc-detail a:hover {
  color: #1E3A8A !important;
  text-decoration: underline;
}

.mw-contact__loc-btn {
  margin-top: auto;
  padding-top: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #3B82F6 !important;
  text-decoration: none !important;
  transition: color 0.2s ease;
}

.mw-contact__loc-btn svg {
  width: 16px;
  height: 16px;
}

.mw-contact__loc-btn:hover {
  color: #1E3A8A !important;
}

/* ==========================================================================
   Form Wrapper (Right Column)
   ========================================================================== */
.mw-contact__form-col {
  position: relative;
}

.mw-contact__form-wrap {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  border: 1px solid #E2E8F0;
}

@media (max-width: 640px) {
  .mw-contact__form-wrap {
    padding: 30px 20px;
  }
}

.mw-contact__form-title {
  font-family: 'Poppins', sans-serif !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  color: #0D1F3C !important;
  margin: 0 0 10px !important;
}

.mw-contact__form-desc {
  font-size: 14px !important;
  color: #64748B !important;
  margin: 0 0 24px !important;
  line-height: 1.6 !important;
}

/* Ensure Elementor form looks good inside our wrapper */
.mw-contact__form-wrap .elementor-widget-form {
  margin-bottom: 0 !important;
}
