/* =============================================================
   Contact page  (page-contact.php)
   v2: navy band with licence card · form + quick help · popular licences.
   Product cards repeat the empty-cart card rules (one stylesheet per page).
   ============================================================= */

/* ---------- Page title ---------- */
/* ---------- Navy band ---------- */
.mk-contact-band { background: var(--mk-primary); color: #fff; overflow: hidden; }
.mk-contact-band__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: center;
  gap: 48px;
  padding-block: 44px 40px;
}
.mk-contact--v2 .mk-contact-title { color: #fff; }
.mk-contact--v2 .mk-contact-title::after { background: linear-gradient(90deg, var(--mk-accent), #ff9a6b); }
.mk-contact--v2 .mk-contact-lead { color: #cfcbea; font-size: 1.1rem; }
.mk-contact-band__art { justify-self: end; width: 100%; max-width: 280px; }
.mk-keycard { display: block; width: 100%; height: auto; transform: rotate(-4deg); }
.mk-contact-title {
  position: relative;
  width: fit-content;
  max-width: calc(100% - 24px);   /* room for the underline overhang */
  margin: 0 0 16px;
  padding: 0 0 12px 24px;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  line-height: 1.2;
  color: var(--mk-primary);
}
.mk-contact-title::before {        /* square bullet, like the section headings */
  content: "";
  position: absolute;
  left: 0;
  top: calc((1.2em - 11px) / 2);
  width: 11px;
  height: 11px;
  background: currentColor;
}
.mk-contact-title::after {         /* underline: title width + 24px, navy → teal */
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + 24px);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mk-primary), var(--mk-secondary));
}
.mk-contact-lead { max-width: 640px; margin: 14px 0 0; font-size: 1.05rem; line-height: 1.6; color: var(--mk-ink-soft); }

/* ---------- Contact form ---------- */
.mk-contact-body__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  align-items: start;
  gap: 32px;
  padding-block: 56px 140px;
}

/* form card */
.mk-contact-form {
  padding: 32px 34px 34px;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: 12px;
}
/* site heading style: square bullet + underline (title width + 24px) */
.mk-contact-form__title {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: fit-content;
  max-width: calc(100% - 24px);
  margin: 0 0 14px;
  padding-bottom: 12px;
  font-size: 1.6rem;
  line-height: 1.25;
}
.mk-contact-form__title::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; background: currentColor; }
.mk-contact-form__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + 24px);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mk-primary), var(--mk-secondary));
}
.mk-contact-form__intro { margin: 0 0 24px; font-size: 15px; color: var(--mk-ink-soft); }
.mk-contact-form__req { color: #d63638; }

/* ---------- Form fields ---------- */
.mk-cf { margin: 0; }
.mk-cf__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}
.mk-cf__field { grid-column: 1 / -1; min-width: 0; }
.mk-cf__field--half { grid-column: auto; }

.mk-cf__label {
  display: block;
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mk-ink);
}
.mk-cf__req { color: #d63638; font-weight: 600; }
.mk-cf__input {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid var(--mk-line);
  border-radius: 8px;
  background: #fafbfd;
  font-family: var(--mk-font-body);
  font-size: 15px;
  color: var(--mk-ink);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.mk-cf__textarea { height: 170px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.mk-cf__input::placeholder { color: #9a9ea8; }
.mk-cf__input:focus {
  border-color: var(--mk-primary);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(9,0,98,.10);
}
.mk-cf__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* validation */
.mk-cf__input.is-invalid { border-color: #d63638; background: #fffafa; }
.mk-cf__error {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 500;
  color: #d63638;
}
.mk-cf__alert {
  margin: 0 0 18px;
  padding: 12px 16px;
  border: 1px solid #f1c0c0;
  border-radius: 8px;
  background: #fdf3f3;
  font-size: 14px;
  color: #b32d2e;
}
.mk-cf__alert[hidden] { display: none; }

/* submit */
.mk-cf__actions { margin: 22px 0 0; }
.mk-cf__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  height: 52px;
  padding: 0 32px;
  border: 0;
  border-radius: var(--mk-radius);
  background: var(--mk-cta);
  color: #fff;
  font-family: var(--mk-font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .15s ease;
}
.mk-cf__submit:hover,
.mk-cf__submit:focus { background: var(--mk-cta-dark); }
.mk-cf__submit:focus-visible { outline: 2px solid var(--mk-secondary); outline-offset: 2px; }
.mk-cf__submit:disabled { opacity: .7; cursor: wait; }

/* thank-you message after sending */
.mk-cf__done {
  margin: 0;
  padding: 18px 20px 18px 54px;
  position: relative;
  border: 1px solid #b7dfb9;
  border-radius: 10px;
  background: #eef8ee;
  color: #1e5e22;
  font-size: 15px;
}
.mk-cf__done[hidden] { display: none; }
.mk-cf__done::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  border-radius: 50%;
  background: var(--mk-cta) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") no-repeat center;
}
.mk-cf__done p { margin: 0; }

/* ---------- Quick help ---------- */
.mk-contact-help { padding: 30px 26px 26px; border: 1px solid var(--mk-line); border-radius: 12px; background: var(--mk-bg-soft); }
.mk-contact-help__title { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 1.35rem; color: var(--mk-primary); }
.mk-contact-help__title::before { content: ""; flex: 0 0 auto; width: 9px; height: 9px; background: currentColor; }
.mk-contact-help__list { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.mk-contact-help__item { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-top: 1px solid var(--mk-line); }
.mk-contact-help__item:first-child { border-top: 0; padding-top: 0; }
.mk-contact-help__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: #fff; border: 1px solid var(--mk-line); color: var(--mk-secondary); }
.mk-contact-help__body { min-width: 0; padding-top: 1px; }
.mk-contact-help__link,
.mk-contact-help__label { display: inline-block; font-size: 15px; font-weight: 700; color: var(--mk-primary); overflow-wrap: anywhere; }
.mk-contact-help__link:hover,
.mk-contact-help__link:focus-visible { color: var(--mk-secondary); }
.mk-contact-help__body p { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: var(--mk-ink-soft); }

/* ---------- Popular licences (homepage heading + cards) ---------- */
.mk-contact-popular { padding: 112px 0 140px; background: var(--mk-bg-soft); }
.mk-contact-popular__head { margin-bottom: 42px; }
.mk-contact-popular__title {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: calc(100% - 24px);
  margin: 0;
  padding-bottom: 12px;
  font-size: 1.85rem;
}
.mk-contact-popular__title::before { content: ""; flex: 0 0 auto; width: 10px; height: 10px; background: currentColor; }
.mk-contact-popular__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(100% + 24px);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--mk-primary), var(--mk-secondary));
}
.mk-contact-popular.woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin: 0;
  padding: 6px 0 0;
  list-style: none;
}
.mk-contact-popular.woocommerce ul.products::before,
.mk-contact-popular.woocommerce ul.products::after { content: none; display: none; }
.mk-contact-popular.woocommerce ul.products li.product.mk-card {
  position: relative;
  float: none;
  width: auto;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--mk-line);
  border-radius: var(--mk-radius);
  text-align: left;
  transition: box-shadow .15s ease, transform .15s ease;
}
.mk-contact-popular.woocommerce ul.products li.product.mk-card:hover { box-shadow: var(--mk-shadow-hover); transform: translateY(-3px); }
.mk-contact-popular.woocommerce ul.products li.product .mk-card__media { display: block; padding: 18px; background: #fff; }
.mk-contact-popular.woocommerce ul.products li.product .mk-card__media img { width: auto; max-height: 180px; margin: 0 auto; object-fit: contain; box-shadow: none; }
.mk-contact-popular.woocommerce ul.products li.product .mk-card__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 4px 16px 18px; }
.mk-contact-popular.woocommerce ul.products li.product .mk-card__title {
  min-height: 40px;
  margin: 0 0 10px;
  padding: 0;
  font-family: var(--mk-font-body);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
}
.mk-contact-popular.woocommerce ul.products li.product .mk-card__title a { color: var(--mk-ink); }
.mk-contact-popular.woocommerce ul.products li.product .mk-card__title a:hover { color: var(--mk-primary); }
.mk-contact-popular.woocommerce ul.products li.product .mk-card__price { margin-bottom: 12px; font-size: 1.15rem; font-weight: 700; color: var(--mk-ink-soft); }
.mk-contact-popular.woocommerce ul.products li.product .mk-card__price .amount { color: var(--mk-primary); }
.mk-contact-popular.woocommerce ul.products li.product .mk-card__price del { margin-right: 6px; font-size: .85em; font-weight: 400; color: #aaa; }
.mk-contact-popular.woocommerce ul.products li.product .mk-card__price ins { text-decoration: none; }
.mk-contact-popular.woocommerce ul.products li.product .button {
  display: block;
  margin-top: auto;
  padding: 10px 14px;
  border: 0;
  border-radius: var(--mk-radius);
  background: var(--mk-cta) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
}
.mk-contact-popular.woocommerce ul.products li.product .button:hover { background: var(--mk-cta-dark) !important; }
.mk-contact-popular.woocommerce ul.products li.product .added_to_cart { display: none; margin-top: 8px; font-size: 13px; text-align: center; }
.mk-contact-popular.woocommerce ul.products li.product .onsale {
  position: absolute;
  top: 12px;
  left: 12px;
  right: auto;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--mk-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- Desktop: form card as tall as the detail column ---------- */
/* the card stretches to the bottom of "Handige links"; the extra height goes to the message field */
@media (min-width: 901px) {
  .mk-contact-form { align-self: stretch; display: flex; flex-direction: column; }
  .mk-cf { display: flex; flex: 1 1 auto; flex-direction: column; }
  .mk-cf[hidden] { display: none; }
  .mk-cf__grid { flex: 1 1 auto; grid-template-rows: auto auto minmax(0, 1fr); }
  .mk-cf__field--message { display: flex; flex-direction: column; }
  .mk-cf__textarea { flex: 1 1 auto; height: auto; min-height: 170px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .mk-contact-band__inner { grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; }
  .mk-contact-body__inner { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .mk-contact-form { padding: 28px 26px 30px; }
}
@media (max-width: 900px) {
  .mk-contact-band__inner { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 32px 28px; }
  .mk-contact-band__art { justify-self: start; max-width: 210px; }
  .mk-contact-body__inner { grid-template-columns: minmax(0, 1fr); padding-block: 32px 64px; }
  .mk-contact-help { order: -1; }
  .mk-contact-popular { padding: 64px 0; }
  .mk-contact-popular__head { margin-bottom: 32px; }
  .mk-contact-popular__title { font-size: 1.6rem; }
}
/* popular licences: 4 compact cards per row on tablets */
@media (max-width: 1024px) and (min-width: 701px) {
  .mk-contact-popular.woocommerce ul.products { gap: 14px; }
  .mk-contact-popular.woocommerce ul.products li.product .mk-card__media { padding: 12px; }
  .mk-contact-popular.woocommerce ul.products li.product .mk-card__media img { max-height: 150px; }
  .mk-contact-popular.woocommerce ul.products li.product .mk-card__body { padding: 2px 12px 14px; }
  .mk-contact-popular.woocommerce ul.products li.product .mk-card__title { font-size: 14px; }
  .mk-contact-popular.woocommerce ul.products li.product .mk-card__price { font-size: 1.02rem; }
  .mk-contact-popular.woocommerce ul.products li.product .button { padding: 9px 8px; font-size: 13px; }
}
/* …and 1 per row on phones, like the other pages */
@media (max-width: 700px) {
  .mk-contact-popular.woocommerce ul.products { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mk-contact-popular.woocommerce ul.products li.product .mk-card__media { padding: 18px 18px 8px; }
  .mk-contact-popular.woocommerce ul.products li.product .mk-card__media img { max-height: 190px; }
  .mk-contact-popular.woocommerce ul.products li.product .mk-card__body { padding: 8px 18px 18px; }
  .mk-contact-popular.woocommerce ul.products li.product .mk-card__title { min-height: 0; font-size: 16px; }
  .mk-contact-popular.woocommerce ul.products li.product .mk-card__price { font-size: 1.2rem; }
  .mk-contact-popular.woocommerce ul.products li.product .button { padding: 12px 14px; font-size: 15px; }
}
@media (max-width: 680px) {
  .mk-contact-body__inner { gap: 16px; padding-block: 24px 64px; }
  .mk-contact-form { padding: 24px 18px 26px; }
  .mk-contact-form__title { align-items: flex-start; gap: 10px; font-size: 1.35rem; }
  .mk-contact-form__title::before { width: 8px; height: 8px; margin-top: .45em; }
  .mk-cf__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mk-cf__field--half { grid-column: 1 / -1; }
  .mk-cf__submit { width: 100%; }
  .mk-contact-popular { padding: 64px 0; }
  .mk-contact-popular__head { margin-bottom: 22px; }
  .mk-contact-popular__title { align-items: flex-start; gap: 10px; font-size: 1.4rem; line-height: 1.25; }
  .mk-contact-popular__title::before { width: 8px; height: 8px; margin-top: .45em; }
}
