/* ─────────────────────────────────────────────────────────────────────
   Medinox Catalogue Download — Frontend Styles
   Scoped under .mnx-layout to avoid Elementor conflicts
   ───────────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

/* ── Entrance animation ──────────────────────────────────────────────── */
@keyframes mnx-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Wrapper ─────────────────────────────────────────────────────────── */
.mnx-layout.mnx-layout {
  display: grid;
  grid-template-columns: 58fr 42fr;
  min-height: 500px;
  font-family: 'Outfit', sans-serif;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #DCDCDC;
  box-shadow: 0 2px 16px rgba(26, 50, 58, 0.06);
}

/* ── Left panel ──────────────────────────────────────────────────────── */
.mnx-layout .mnx-left {
  padding: 52px 48px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid #F0F0F0;
}

/* Staggered entrance */
.mnx-layout #mnx-form-inner > * {
  animation: mnx-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mnx-layout #mnx-form-inner > *:nth-child(1) { animation-delay: 0.04s; }
.mnx-layout #mnx-form-inner > *:nth-child(2) { animation-delay: 0.10s; }
.mnx-layout #mnx-form-inner > *:nth-child(3) { animation-delay: 0.16s; }
.mnx-layout #mnx-form-inner > *:nth-child(4) { animation-delay: 0.22s; }
.mnx-layout #mnx-form-inner > *:nth-child(5) { animation-delay: 0.28s; }
.mnx-layout #mnx-form-inner > *:nth-child(6) { animation-delay: 0.34s; }
.mnx-layout #mnx-form-inner > *:nth-child(7) { animation-delay: 0.40s; }

/* ── Typography ──────────────────────────────────────────────────────── */
.mnx-layout .mnx-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #61B0BE;
  margin: 0 0 14px;
  padding: 0;
}

.mnx-layout .mnx-heading {
  font-size: 34px;
  font-weight: 800;
  color: #1A323A;
  margin: 0 0 14px;
  padding: 0;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.mnx-layout .mnx-sub {
  font-size: 14px;
  color: #4A6A74;
  margin: 0 0 28px;
  padding: 0;
  line-height: 1.65;
  font-weight: 500;
  max-width: 52ch;
}

/* ── Google button ───────────────────────────────────────────────────── */
.mnx-layout .mnx-google-btn {
  width: 100%;
  box-sizing: border-box;
  background: #1A323A;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.mnx-layout .mnx-google-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(97, 176, 190, 0.14);
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mnx-layout .mnx-google-btn:hover  { transform: translateY(-1px); }
.mnx-layout .mnx-google-btn:hover::after { transform: translateX(0); }
.mnx-layout .mnx-google-btn:active { transform: scale(0.98); }
.mnx-layout .mnx-google-btn > *    { position: relative; z-index: 1; }
.mnx-layout .mnx-google-icon       { width: 16px; height: 16px; flex-shrink: 0; }

/* ── Divider ─────────────────────────────────────────────────────────── */
.mnx-layout .mnx-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
}
.mnx-layout .mnx-divider-line { flex: 1; height: 1px; background: #E6EDEF; }
.mnx-layout .mnx-divider-text {
  font-size: 11px;
  color: #A8BEC4;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* ── Inputs ──────────────────────────────────────────────────────────── */
.mnx-layout .mnx-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.mnx-layout .mnx-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mnx-layout .mnx-label {
  font-size: 11px;
  font-weight: 700;
  color: #2E5260;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mnx-layout .mnx-input {
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1.5px solid #C8DDE2;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  color: #1A323A;
  font-family: 'Outfit', sans-serif;
  outline: none;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow   0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.mnx-layout .mnx-input::placeholder { color: #9ABEC6; }
.mnx-layout .mnx-input:focus {
  border-color: #61B0BE;
  box-shadow: 0 0 0 3px rgba(97, 176, 190, 0.14);
}

/* ── Work-email hint note ────────────────────────────────────────────── */
.mnx-layout .mnx-field-note {
  font-size: 11.5px;
  color: #6A8A94;
  line-height: 1.5;
  margin: 6px 0 0;
  font-weight: 500;
}
.mnx-layout .mnx-field-note strong { color: #2E5260; }

/* ── Honeypot (anti-bot) — visually hidden, off the tab order ────────── */
.mnx-layout .mnx-hp {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── POPIA ───────────────────────────────────────────────────────────── */
.mnx-layout .mnx-popia {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 6px;
}
.mnx-layout .mnx-popia input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  accent-color: #61B0BE;
  cursor: pointer;
}
.mnx-layout .mnx-popia label {
  font-size: 12px;
  color: #4A6A74;
  line-height: 1.55;
  font-weight: 500;
  cursor: pointer;
}

/* ── Submit button ───────────────────────────────────────────────────── */
.mnx-layout .mnx-submit-btn {
  width: 100%;
  box-sizing: border-box;
  background: #61B0BE;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  margin-top: 4px;
}
.mnx-layout .mnx-submit-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: #1A323A;
  transform: translateX(-101%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.mnx-layout .mnx-submit-btn:hover  { transform: translateY(-1px); }
.mnx-layout .mnx-submit-btn:hover::after { transform: translateX(0); }
.mnx-layout .mnx-submit-btn:active { transform: scale(0.98); }
.mnx-layout .mnx-submit-btn > *    { position: relative; z-index: 1; }

/* ── Loading state ───────────────────────────────────────────────────── */
.mnx-layout .mnx-submit-btn.mnx-loading {
  pointer-events: none;
  opacity: 0.75;
}

/* ── Neutralise theme (Elementor/Hello) focus + active colours ───────────
   Some themes recolour button text/outline on hover, focus or click
   (the tell-tale Elementor pink). Force our palette on every state and
   swap the pink outline for a subtle teal focus ring. */
.mnx-layout .mnx-submit-btn,
.mnx-layout .mnx-submit-btn:link,
.mnx-layout .mnx-submit-btn:visited {
  color: #fff !important;
  -webkit-tap-highlight-color: transparent;
}
.mnx-layout .mnx-submit-btn:hover,
.mnx-layout .mnx-submit-btn:focus,
.mnx-layout .mnx-submit-btn:active {
  color: #fff !important;
  background: #61B0BE !important;
  outline: none !important;
}
.mnx-layout .mnx-submit-btn:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(97, 176, 190, 0.35) !important;
}
.mnx-layout .mnx-submit-btn svg { color: #fff !important; }

/* ── Error message ───────────────────────────────────────────────────── */
.mnx-layout .mnx-error {
  font-size: 11.5px;
  color: #C0392B;
  margin-top: 10px;
  display: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

/* ── Right panel ─────────────────────────────────────────────────────── */
.mnx-layout .mnx-right {
  background: #F4F9FA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 52px 44px;
  position: relative;
}

.mnx-layout .mnx-cat-img {
  width: 100%;
  max-width: 360px;
  height: auto;
  display: block;
  border-radius: 6px;
  box-shadow: 0 24px 52px rgba(26, 50, 58, 0.22),
              0  6px 16px rgba(26, 50, 58, 0.10);
  transform: rotate(-2deg);
  transition: transform  0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  animation: mnx-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}
.mnx-layout .mnx-cat-img:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow: 0 32px 64px rgba(26, 50, 58, 0.26),
              0  8px 20px rgba(26, 50, 58, 0.12);
}

/* ── Placeholder (no image set) ──────────────────────────────────────── */
.mnx-layout .mnx-cat-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  color: #8AAAB2;
  font-size: 13px;
  line-height: 1.5;
  font-family: 'Outfit', sans-serif;
}

/* ── Cover carousel (2 catalogues) ───────────────────────────────────── */
.mnx-layout .mnx-carousel {
  position: relative;
  width: 100%;
  max-width: 360px;
}
.mnx-layout .mnx-carousel-viewport {
  position: relative;
  display: grid;
}
/* All slides share one grid cell so the container sizes to the tallest cover
   and slides crossfade in place. */
.mnx-layout .mnx-carousel-viewport > .mnx-slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.mnx-layout .mnx-carousel-viewport > .mnx-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}
/* The carousel controls visibility, so drop the per-image entrance animation. */
.mnx-layout .mnx-carousel .mnx-cat-img {
  animation: none;
  max-width: 100%;
}

/* ── Success state ───────────────────────────────────────────────────── */
.mnx-layout .mnx-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 0 8px;
  animation: mnx-up 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.mnx-layout .mnx-success-icon {
  width: 52px;
  height: 52px;
  background: #EAF5F7;
  border: 1px solid #C8E4EA;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #61B0BE;
  margin-bottom: 16px;
}
.mnx-layout .mnx-success h4 {
  font-size: 18px;
  font-weight: 800;
  color: #1A323A;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
  font-family: 'Outfit', sans-serif;
}
.mnx-layout .mnx-success p {
  font-size: 13px;
  color: #6A8A94;
  margin: 0;
  line-height: 1.6;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
}

/* ── Download buttons in the success card ────────────────────────────── */
.mnx-layout .mnx-dl-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-top: 20px;
}
.mnx-layout .mnx-dl-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  background: #61B0BE;
  border-radius: 10px;
  padding: 14px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 700;
  transition: background 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform  0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
/* Force our palette on every link state so the theme can't recolour it. */
.mnx-layout .mnx-dl-card,
.mnx-layout .mnx-dl-card:link,
.mnx-layout .mnx-dl-card:visited,
.mnx-layout .mnx-dl-card:hover,
.mnx-layout .mnx-dl-card:focus,
.mnx-layout .mnx-dl-card:active {
  color: #fff !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
}
.mnx-layout .mnx-dl-card:hover { background: #1A323A; transform: translateY(-1px); }
.mnx-layout .mnx-dl-card:active { transform: scale(0.98); }
.mnx-layout .mnx-dl-card:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(97, 176, 190, 0.35); }
.mnx-layout .mnx-dl-card svg { flex-shrink: 0; }

/* ── Mobile responsive ───────────────────────────────────────────────── */
@media (max-width: 768px) {

  /* Stack to single column */
  .mnx-layout.mnx-layout {
    grid-template-columns: 1fr;
    border-radius: 12px;
  }

  /* Image panel — compact banner at top */
  .mnx-layout .mnx-right {
    order: -1;
    height: 180px;
    padding: 20px 24px;
    background: #E8F4F6;
  }

  /* Smaller image on mobile */
  .mnx-layout .mnx-cat-img {
    max-width: 100px;
    transform: rotate(-2deg);
  }

  /* Carousel fits the compact banner */
  .mnx-layout .mnx-carousel { max-width: 100px; }
  .mnx-layout .mnx-carousel .mnx-cat-img { max-width: 100px; }

  /* Tighter left panel padding */
  .mnx-layout .mnx-left {
    padding: 28px 20px 32px;
  }

  /* Smaller heading */
  .mnx-layout .mnx-heading {
    font-size: 22px;
    margin: 0 0 10px;
  }

  /* Smaller eyebrow */
  .mnx-layout .mnx-eyebrow {
    font-size: 10px;
    margin: 0 0 10px;
  }

  /* Shorter description */
  .mnx-layout .mnx-sub {
    font-size: 13px;
    margin: 0 0 20px;
  }

  /* Stack name + email vertically */
  .mnx-layout .mnx-input-row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* Full width inputs */
  .mnx-layout .mnx-input {
    font-size: 14px;
    padding: 13px 14px;
  }

  /* Slightly smaller buttons */
  .mnx-layout .mnx-google-btn,
  .mnx-layout .mnx-submit-btn {
    font-size: 13px;
    padding: 13px 16px;
  }

  /* Divider spacing */
  .mnx-layout .mnx-divider {
    margin: 16px 0;
  }

  /* POPIA text smaller */
  .mnx-layout .mnx-popia label {
    font-size: 11px;
  }

  /* Success state */
  .mnx-layout .mnx-success h4 {
    font-size: 16px;
  }
  .mnx-layout .mnx-success p {
    font-size: 12px;
  }
}
