/* Contact page */
.nc-contact__head {
  max-width: 820px;
  margin-bottom: 28px;
}

.nc-contact__head h1 {
  margin: 0 0 14px;
  color: #fff7ff;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.06;
}

.nc-contact__lead {
  margin: 0;
  color: var(--nc-muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.55;
}

.nc-contact__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.nc-contact__main,
.nc-contact__side {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.nc-contact__card {
  padding: clamp(18px, 2.4vw, 24px);
  border: 1px solid var(--nc-line);
  border-radius: var(--nc-radius-lg);
  background: linear-gradient(180deg, rgba(30, 23, 73, 0.92), rgba(12, 10, 35, 0.92));
  box-shadow: var(--nc-shadow);
}

.nc-contact__card h2 {
  margin: 0 0 8px;
  color: var(--nc-text);
  font-size: 20px;
  line-height: 1.25;
}

.nc-contact__card p {
  margin: 0 0 10px;
  color: var(--nc-muted);
  line-height: 1.5;
}

.nc-contact__card p:last-child {
  margin-bottom: 0;
}

.nc-contact__muted {
  color: var(--nc-dim) !important;
  font-size: 14px;
}

.nc-contact__email-line {
  margin: 14px 0 !important;
}

.nc-contact__email {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--nc-radius);
  background: var(--nc-accent);
  color: #100d2b;
  font-weight: 900;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.nc-contact__email:hover {
  color: #100d2b;
  box-shadow: 0 12px 24px rgba(255, 126, 231, 0.18);
}

.nc-contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.nc-contact__links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid var(--nc-line-strong);
  border-radius: var(--nc-radius);
  background: rgba(31, 22, 74, 0.84);
  color: var(--nc-text);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.nc-contact__links a:hover {
  border-color: var(--nc-accent);
  color: var(--nc-accent);
}

.nc-contact__links--social a::after {
  content: "↗";
  margin-left: 6px;
  color: var(--nc-dim);
  font-weight: 400;
}

.nc-contact__card--note {
  background: rgba(23, 19, 59, 0.6);
  box-shadow: none;
}

.nc-contact__card--note h2 {
  font-size: 16px;
}

.nc-contact__card--note p {
  font-size: 14px;
}

/* The form sits inside a card already: drop the CF7 card frame */
.nc-contact__form .wpcf7 {
  max-width: none;
  margin-top: 16px;
  padding: 0;
  border: 0;
  background: transparent;
}

.nc-contact__form .wpcf7 form > p:last-of-type {
  margin-bottom: 0;
}

[data-theme="light"] .nc-contact__head h1 {
  color: var(--nc-text);
}

[data-theme="light"] .nc-contact__card {
  background: linear-gradient(180deg, rgba(255, 255, 252, 0.98), rgba(245, 251, 238, 0.98));
}

[data-theme="light"] .nc-contact__links a {
  background: rgba(255, 255, 247, 0.86);
}

@media (max-width: 860px) {
  .nc-contact__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Mobile order: tips first, then the form, then the rest */
  .nc-contact__main,
  .nc-contact__side {
    display: contents;
  }

  .nc-contact__card--help {
    order: 1;
  }

  .nc-contact__card--form {
    order: 2;
  }

  .nc-contact__card--email {
    order: 3;
  }

  .nc-contact__card--social {
    order: 4;
  }

  .nc-contact__card--note {
    order: 5;
  }
}

@media (max-width: 640px) {
  .nc-contact__card {
    border-radius: var(--nc-radius);
  }

  .nc-contact__email {
    width: 100%;
    justify-content: center;
  }
}
