/* ─────────────────────────────────────────────────────────────────────
   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);
}

/* ── 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;
}

/* ── 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;
}

/* ── 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;
}

/* ── 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);
  }

  /* 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;
  }
}
