/* ==========================================================================
   MG Electronic — Contact Us page sections (Hero, form + info card).
   Matches the site's black-section / Poppins+Roboto / red-yellow-blue
   accent language (see home-sections.css, about-sections.css, footer.css).
   Nav + CTA band + footer are shared markup, left untouched. Form fields
   keep the original ids/names so the existing Mailchimp integration
   (setupMailchimpForm) keeps working unchanged.
   ========================================================================== */

.mg-section {
  position: relative;
  background: #000000;
  padding: 90px 6% 70px;
}

/* ---------- Hero ---------- */

.mg-contact-hero {
  padding-bottom: 26px;
}

.mg-contact-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fef204;
}

.mg-contact-hero__eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fef204;
  display: block;
  flex-shrink: 0;
}

.mg-contact-hero__title {
  margin: 24px 0 0;
  max-width: 780px;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(36px, 5.4vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.mg-contact-hero__title-highlight {
  color: #fef204;
}

.mg-contact-hero__lead {
  margin: 22px 0 0;
  max-width: 620px;
  font-family: 'Roboto', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Form + info ---------- */

.mg-contact-main {
  padding-top: 6px;
}

.mg-contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: start;
}

.mg-contact-card {
  position: relative;
  background: #ffffff;
  border-radius: 24px;
  padding: 44px 44px 48px;
}

.mg-contact-card__heading {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: #17181a;
}

.mg-contact-card__subtext {
  margin: 10px 0 0;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #4a5560;
}

.mg-contact-card__subtext .is-required {
  color: #ff0106;
  font-weight: 700;
}

.mg-contact-form {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.mg-contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mg-contact-field--full {
  grid-column: span 2;
}

.mg-contact-field label {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #17181a;
}

.mg-contact-field label .is-required {
  color: #ff0106;
}

.mg-contact-field input,
.mg-contact-field textarea {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  color: #17181a;
  background: #fbfcfd;
  border: 1.5px solid #d9e0e6;
  border-radius: 10px;
  padding: 0 16px;
  height: 50px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mg-contact-field textarea {
  height: auto;
  padding: 12px 16px;
  line-height: 1.6;
  resize: vertical;
}

.mg-contact-field input:focus,
.mg-contact-field textarea:focus {
  outline: none;
  border-color: #09b3f1;
  box-shadow: 0 0 0 3px rgba(9, 179, 241, 0.18);
}

.mg-contact-field input::placeholder,
.mg-contact-field textarea::placeholder {
  color: #9aa7b2;
}

.mg-contact-submit-row {
  grid-column: span 2;
  margin-top: 4px;
}

.mg-contact-submit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 32px;
  border: none;
  border-radius: 999px;
  background: var(--mg-accent, #ff0106);
  color: #ffffff;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.mg-contact-submit:hover {
  background: #fef204;
  color: #0a1118;
}

.mg-contact-side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mg-contact-info-card {
  padding: 28px 26px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top: 3px solid var(--card-accent, #09b3f1);
}

.mg-contact-info-card__label {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--card-accent, #09b3f1);
}

.mg-contact-info-card__body {
  margin: 12px 0 0;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.mg-contact-info-card__links {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'Roboto', sans-serif;
  font-size: 15px;
  line-height: 1.6;
}

.mg-contact-info-card__links a {
  color: #eaf3f8;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.15s ease;
}

.mg-contact-info-card__links a:hover {
  color: #fef204;
}

.mg-contact-info-card__links span {
  color: rgba(255, 255, 255, 0.6);
}

@media (max-width: 860px) {
  .mg-contact-grid {
    grid-template-columns: 1fr;
  }

  .mg-contact-card {
    padding: 32px 24px 36px;
  }

  .mg-contact-form {
    grid-template-columns: 1fr;
  }

  .mg-contact-field--full,
  .mg-contact-submit-row {
    grid-column: 1;
  }
}
