/* ==========================================================================
   Shared lead form + popup (identical on IGNOU and Symbiosis pages)
   Brand colour comes from --lf-accent / --lf-accent-dark set on :root per page.
   ========================================================================== */
:root {
  --lf-accent: #4c51a3;
  --lf-accent-dark: #383c85;
  --lf-text: #101828;
  --lf-muted: #5b6473;
  --lf-border: #d6dae1;
  --lf-ok: #0f9f8f;
}

.lf-card {
  background: #fff;
  color: var(--lf-text);
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(16, 24, 40, .18);
  padding: 20px 22px 16px;
  width: 100%;
  max-width: 400px;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  text-align: left;
}
.lf-head { text-align: center; margin-bottom: 12px; }
.lf-title { font-size: 18px; font-weight: 700; margin: 0; line-height: 1.25; color: var(--lf-text); }
.lf-sub { font-size: 12.5px; font-weight: 600; color: var(--lf-accent); margin: 4px 0 0; }
.lf-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; list-style: none; margin: 8px 0 0; padding: 0; }
.lf-points li { font-size: 11.5px; font-weight: 600; color: var(--lf-ok); display: flex; align-items: center; gap: 4px; }
.lf-points svg { width: 13px; height: 13px; flex: none; }

.lf-form { display: grid; gap: 10px; margin: 0; }
.lf-field { position: relative; }
.lf-input {
  display: block;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1.2;
  color: var(--lf-text);
  background: #fff;
  border: 1px solid var(--lf-border);
  border-radius: 9px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
  box-sizing: border-box;
}
.lf-input::placeholder { color: #8a93a3; font-weight: 400; }
.lf-input:focus { border-color: var(--lf-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lf-accent) 18%, transparent); }
select.lf-input {
  padding-right: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%235b6473'%3E%3Cpath d='M5.3 7.3a1 1 0 011.4 0L10 10.6l3.3-3.3a1 1 0 111.4 1.4l-4 4a1 1 0 01-1.4 0l-4-4a1 1 0 010-1.4z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  cursor: pointer;
}
select.lf-input:invalid { color: #8a93a3; font-weight: 400; }
select.lf-input option { color: var(--lf-text); }

.lf-phone { display: flex; }
.lf-phone .lf-cc {
  display: flex; align-items: center; padding: 0 10px;
  font-size: 14px; font-weight: 600; color: var(--lf-muted);
  background: #f3f4f7; border: 1px solid var(--lf-border); border-right: 0;
  border-radius: 9px 0 0 9px;
}
.lf-phone .lf-input { border-radius: 0 9px 9px 0; }
.lf-nospam {
  position: absolute; right: 12px; bottom: -8px;
  font-size: 9.5px; line-height: 1; padding: 3px 7px; border-radius: 0 0 6px 6px;
  background: #d4fee8; color: #138a4c; pointer-events: none;
}

.lf-consent { display: flex; gap: 8px; align-items: flex-start; font-size: 11px; line-height: 1.4; color: var(--lf-muted); margin-top: 2px; }
.lf-consent input { margin: 2px 0 0; width: 14px; height: 14px; flex: none; accent-color: var(--lf-accent); }

.lf-submit {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 44px; border: 0; border-radius: 9px; cursor: pointer;
  font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1; color: #fff;
  background: var(--lf-accent);
  transition: background .15s, transform .1s;
}
.lf-submit:hover { background: var(--lf-accent-dark); }
.lf-submit:active { transform: translateY(1px); }
.lf-submit[disabled] { opacity: .7; cursor: wait; }
.lf-foot { text-align: center; font-size: 11px; color: var(--lf-muted); margin: 2px 0 0; display: flex; justify-content: center; align-items: center; gap: 5px; }
.lf-msg { text-align: center; font-size: 12px; color: #c0262d; min-height: 0; margin: 0; }
.lf-msg:empty { display: none; }
.lf-error { border-color: #e5484d !important; }

/* ---------------- Popup ---------------- */
.lf-modal {
  position: fixed; inset: 0; z-index: 10050;
  display: none; align-items: center; justify-content: center;
  padding: 16px;
  background: rgba(10, 14, 25, .62);
  overflow-y: auto;              /* only the backdrop can scroll on very short screens */
  scrollbar-width: none;
}
.lf-modal::-webkit-scrollbar { display: none; }
.lf-modal.is-open { display: flex; animation: lfFade .2s ease-out; }
.lf-modal .lf-card { position: relative; margin: auto; animation: lfUp .25s ease-out; }
.lf-close {
  position: absolute; top: 8px; right: 10px; width: 32px; height: 32px;
  border: 0; background: transparent; border-radius: 50%;
  font-size: 24px; line-height: 1; color: #6b7280; cursor: pointer;
}
.lf-close:hover { background: #f1f2f5; color: var(--lf-text); }
.lf-modal .lf-head { padding: 0 24px; }
.lf-logo { display: block; height: 30px; width: auto; margin: 0 auto 8px; }
body.lf-locked { overflow: hidden; }

/* loader */
.lf-loader { position: fixed; inset: 0; z-index: 10060; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,.5); }
.lf-loader.is-on { display: flex; }
.lf-loader div { background: #111; color: #fff; padding: 14px 22px; border-radius: 10px; font: 600 14px "Poppins", sans-serif; display: flex; gap: 10px; align-items: center; }
.lf-spin { width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: lfSpin .7s linear infinite; }

@keyframes lfFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lfUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lfSpin { to { transform: rotate(360deg); } }

/* compact on short or narrow screens so the whole form fits without scrolling */
@media (max-height: 640px), (max-width: 380px) {
  .lf-card { padding: 14px 16px 12px; }
  .lf-form { gap: 8px; }
  .lf-input { height: 38px; font-size: 13.5px; }
  .lf-submit { height: 40px; }
  .lf-points { display: none; }
  .lf-logo { height: 24px; margin-bottom: 4px; }
}
