/* Dr Handa NRI Leads Pro – Popup Styles */

/* ── Variables ───────────────────────────────────────────────────────── */
:root {
  --dhnl-navy:      #1e3a5f;
  --dhnl-navy-dark: #14294a;
  --dhnl-white:     #ffffff;
  --dhnl-bg:        #f5f7fa;
  --dhnl-border:    #dce3ed;
  --dhnl-muted:     #6b7c93;
  --dhnl-success:   #1a7f4e;
  --dhnl-error:     #c0392b;
  --dhnl-gold:      #c9a84c;
  --dhnl-radius:    10px;
  --dhnl-shadow:    0 24px 64px rgba(14, 28, 56, 0.22);
  --dhnl-trans:     0.25s ease;
}

/* ── Overlay ─────────────────────────────────────────────────────────── */
#dhnl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.72);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity var(--dhnl-trans);
}

#dhnl-overlay.dhnl-visible {
  opacity: 1;
}

#dhnl-overlay[hidden] {
  display: none !important;
}

/* ── Modal ───────────────────────────────────────────────────────────── */
#dhnl-modal {
  background: var(--dhnl-white);
  border-radius: var(--dhnl-radius);
  box-shadow: var(--dhnl-shadow);
  width: 100%;
  max-width: 460px;
  max-height: 92vh;
  overflow-y: auto;
  position: relative;
  transform: translateY(24px) scale(0.97);
  transition: transform var(--dhnl-trans);
}

#dhnl-overlay.dhnl-visible #dhnl-modal {
  transform: translateY(0) scale(1);
}

/* top accent bar */
#dhnl-modal::before {
  content: '';
  display: block;
  height: 5px;
  background: linear-gradient(90deg, var(--dhnl-navy) 0%, var(--dhnl-gold) 100%);
  border-radius: var(--dhnl-radius) var(--dhnl-radius) 0 0;
}

/* ── Close Button ────────────────────────────────────────────────────── */
#dhnl-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--dhnl-bg);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--dhnl-muted);
  transition: background var(--dhnl-trans), color var(--dhnl-trans);
  z-index: 2;
}

#dhnl-close:hover,
#dhnl-close:focus-visible {
  background: var(--dhnl-navy);
  color: var(--dhnl-white);
  outline: none;
}

/* ── Form wrap ───────────────────────────────────────────────────────── */
#dhnl-form-wrap {
  padding: 28px 32px 32px;
}

/* ── Logo ────────────────────────────────────────────────────────────── */
.dhnl-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.dhnl-logo-wrap img.dhnl-logo {
  max-height: 54px;
  width: auto;
  object-fit: contain;
}

.dhnl-logo-wrap.dhnl-site-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--dhnl-navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── Badge ───────────────────────────────────────────────────────────── */
.dhnl-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 58, 95, 0.08);
  color: var(--dhnl-navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(30, 58, 95, 0.18);
  margin-bottom: 12px;
}

.dhnl-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dhnl-gold);
  flex-shrink: 0;
}

/* ── Heading ─────────────────────────────────────────────────────────── */
#dhnl-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--dhnl-navy);
  line-height: 1.3;
  margin: 0 0 8px;
  padding: 0;
  border: none;
}

.dhnl-sub {
  font-size: 0.9rem;
  color: var(--dhnl-muted);
  margin: 0 0 18px;
}

/* ── Trust Points ────────────────────────────────────────────────────── */
.dhnl-trust {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.dhnl-trust li {
  font-size: 0.88rem;
  font-weight: 500;
  color: #374558;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dhnl-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: rgba(26, 127, 78, 0.12);
  color: var(--dhnl-success);
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Fields ──────────────────────────────────────────────────────────── */
.dhnl-field {
  margin-bottom: 14px;
}

.dhnl-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dhnl-navy);
  margin-bottom: 5px;
  letter-spacing: 0.01em;
}

.dhnl-field input {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  color: #1a2840;
  background: var(--dhnl-bg);
  border: 1.5px solid var(--dhnl-border);
  border-radius: 7px;
  outline: none;
  transition: border-color var(--dhnl-trans), box-shadow var(--dhnl-trans);
  box-sizing: border-box;
  -webkit-appearance: none;
}

.dhnl-field input:focus {
  border-color: var(--dhnl-navy);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
  background: #fff;
}

.dhnl-field input.dhnl-input-error {
  border-color: var(--dhnl-error);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.dhnl-error {
  display: block;
  font-size: 0.78rem;
  color: var(--dhnl-error);
  margin-top: 4px;
  min-height: 1em;
}

/* ── Submit Button ───────────────────────────────────────────────────── */
#dhnl-submit {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dhnl-white);
  background: var(--dhnl-navy);
  border: none;
  border-radius: 7px;
  cursor: pointer;
  transition: background var(--dhnl-trans), transform 0.1s ease;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
}

#dhnl-submit:hover:not(:disabled) {
  background: var(--dhnl-navy-dark);
}

#dhnl-submit:active:not(:disabled) {
  transform: scale(0.99);
}

#dhnl-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ── Spinner ─────────────────────────────────────────────────────────── */
.dhnl-spinner {
  width: 18px;
  height: 18px;
  animation: dhnl-spin 0.8s linear infinite;
}

@keyframes dhnl-spin {
  to { transform: rotate(360deg); }
}

/* ── Privacy ─────────────────────────────────────────────────────────── */
.dhnl-privacy {
  font-size: 0.76rem;
  color: var(--dhnl-muted);
  text-align: center;
  margin: 14px 0 0;
}

/* ── Thank You Screen ────────────────────────────────────────────────── */
#dhnl-thankyou {
  padding: 40px 32px 44px;
  text-align: center;
}

#dhnl-thankyou[hidden] {
  display: none !important;
}

.dhnl-ty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.dhnl-ty-icon svg {
  width: 60px;
  height: 60px;
}

#dhnl-thankyou h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--dhnl-navy);
  margin: 0 0 10px;
  padding: 0;
  border: none;
}

#dhnl-thankyou p {
  font-size: 0.93rem;
  color: #374558;
  margin: 0 0 6px;
}

.dhnl-ty-note {
  font-size: 0.85rem;
  color: var(--dhnl-muted);
  margin-top: 10px !important;
}

.dhnl-ty-countdown {
  margin-top: 22px;
  font-size: 0.82rem;
  color: var(--dhnl-muted);
  background: var(--dhnl-bg);
  border-radius: 6px;
  padding: 8px 16px;
  display: inline-block;
}

#dhnl-countdown {
  font-weight: 700;
  color: var(--dhnl-navy);
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #dhnl-form-wrap,
  #dhnl-thankyou {
    padding: 22px 20px 28px;
  }

  #dhnl-heading {
    font-size: 1.15rem;
  }

  #dhnl-modal {
    max-height: 96vh;
  }
}
