/* ============================================================
   Aptomix — Contact Section CSS
   Enqueued by: Aptomix_Contact_Widget::get_style_depends()
   Google Fonts: enqueued globally via wp_enqueue_scripts
   ============================================================ */

/* ── Scoped reset ────────────────────────────────────────────── */
.aptomix-contact *,
.aptomix-contact *::before,
.aptomix-contact *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Section wrapper ─────────────────────────────────────────── */
.aptomix-contact {
  background: #F4F7FA;
  padding: 100px 0;
  font-family: 'DM Sans', sans-serif;
  color: #1A2E3B;
  scroll-margin-top: 72px;
}

/* ── Container ───────────────────────────────────────────────── */
.aptomix-contact__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Section header ──────────────────────────────────────────── */
.aptomix-contact__head {
  margin-bottom: 48px;
}

.aptomix-contact__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #00B0F0;
  margin-bottom: 14px;
}

.aptomix-contact__heading {
  font-family: 'Outfit', sans-serif;
  font-size: 46px;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: -1px;
  line-height: 1.1;
  position: relative;
  padding-left: 20px;
}

/* Blue vertical accent bar */
.aptomix-contact__heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(to bottom, #00B0F0 0%, rgba(0, 176, 240, 0.5) 100%);
  border-radius: 2px;
}

/* ── Intro text ──────────────────────────────────────────────── */
.aptomix-contact__intro {
  max-width: 700px;
  margin-bottom: 48px;
  font-size: 17px;
  line-height: 1.75;
  color: #3D5166;
}

.aptomix-contact__intro p {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
  margin-bottom: 0;
}

/* ── Contact person cards ────────────────────────────────────── */
.aptomix-contact__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.aptomix-contact__card {
  background: #ffffff;
  border-radius: 12px;
  border-top: 3px solid #00B0F0;
  padding: 32px 28px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Person icon */
.aptomix-contact__card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 176, 240, 0.08);
  border: 1px solid rgba(0, 176, 240, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

/* Name */
.aptomix-contact__card-name {
  font-family: 'Outfit', sans-serif;
  font-size: 19px;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: -0.2px;
  line-height: 1.2;
  margin-bottom: 4px;
}

/* Role */
.aptomix-contact__card-role {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00B0F0;
  margin-bottom: 20px;
}

/* Email link */
.aptomix-contact__card-email {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #3D5166;
  text-decoration: none;
  margin-bottom: 12px;
  word-break: break-all;
  transition: color 0.2s;
}

.aptomix-contact__card-email:hover {
  color: #00B0F0;
}

/* LinkedIn link */
.aptomix-contact__card-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #3D5166;
  text-decoration: none;
  transition: color 0.2s;
}

.aptomix-contact__card-linkedin:hover {
  color: #00B0F0;
}

/* ── Contact form area ───────────────────────────────────────── */
.aptomix-contact__form-wrap {
  background: #ffffff;
  border-radius: 12px;
  padding: 40px 44px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
  max-width: 760px;
}

.aptomix-contact__form-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: -0.3px;
  margin-bottom: 28px;
}

/* ── CF7 / WPForms style overrides ──────────────────────────── */
/* These selectors target Contact Form 7 and WPForms defaults.  */
/* They only apply inside this widget's form wrapper.           */

.aptomix-contact__form .wpcf7-form label,
.aptomix-contact__form .wpforms-field label {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #3D5166;
  letter-spacing: 0.5px;
  display: block;
  margin-bottom: 6px;
}

.aptomix-contact__form input[type="text"],
.aptomix-contact__form input[type="email"],
.aptomix-contact__form textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #1A2E3B;
  background: #F4F7FA;
  border: 1px solid #C8DDE8;
  border-radius: 6px;
  padding: 11px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.aptomix-contact__form input[type="text"]:focus,
.aptomix-contact__form input[type="email"]:focus,
.aptomix-contact__form textarea:focus {
  border-color: #00B0F0;
  box-shadow: 0 0 0 3px rgba(0, 176, 240, 0.12);
}

.aptomix-contact__form textarea {
  min-height: 120px;
  resize: vertical;
}

.aptomix-contact__form input[type="submit"],
.aptomix-contact__form .wpcf7-submit,
.aptomix-contact__form .wpforms-submit {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  background: #00B0F0;
  color: #ffffff;
  border: none;
  border-radius: 5px;
  padding: 13px 32px;
  cursor: pointer;
  transition: background 0.2s;
}

.aptomix-contact__form input[type="submit"]:hover,
.aptomix-contact__form .wpcf7-submit:hover,
.aptomix-contact__form .wpforms-submit:hover {
  background: #0D1B2A;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .aptomix-contact__heading   { font-size: 40px; }
  .aptomix-contact__form-wrap { padding: 36px 36px; }
}

@media (max-width: 900px) {
  .aptomix-contact__heading { font-size: 36px; letter-spacing: -0.6px; }
}

@media (max-width: 600px) {
  .aptomix-contact              { padding: 60px 0; }
  .aptomix-contact__container   { padding: 0 20px; }
  .aptomix-contact__heading     { font-size: 30px; padding-left: 16px; }
  .aptomix-contact__form-wrap   { padding: 28px 20px; }
  .aptomix-contact__cards       { grid-template-columns: 1fr; }
}
