/* TrumpExcel site-wide ebook modal. All rules are scoped to its root. */
#te-ebook-modal-root { position: relative; z-index: 999999; }

#te-ebook-modal-root .te-em-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 999999;
}

#te-ebook-modal-root .te-em-overlay.te-em-show { display: flex; }

#te-ebook-modal-root .te-em-card {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 16px;
  padding: 34px 30px 28px;
  text-align: left;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.1), 0 30px 70px rgba(15, 23, 42, 0.35);
}

#te-ebook-modal-root .te-em-card * { box-sizing: border-box; margin: 0; padding: 0; }

#te-ebook-modal-root .te-em-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  background: #f1f5f9;
  color: #64748b;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}

#te-ebook-modal-root .te-em-close:hover { background: #e2e8f0; color: #0f172a; }
#te-ebook-modal-root .te-em-close svg { width: 16px; height: 16px; display: block; }

#te-ebook-modal-root .te-em-card h3 {
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  margin-bottom: 8px;
}

#te-ebook-modal-root .te-em-sub { font-size: 15.5px; color: #64748b; line-height: 1.55; margin-bottom: 20px; }

#te-ebook-modal-root .te-em-field { margin-bottom: 14px; }

#te-ebook-modal-root .te-em-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

#te-ebook-modal-root .te-em-field input {
  display: block;
  width: 100%;
  font-size: 16px;
  line-height: 1.4;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #d7dfe7;
  border-radius: 10px;
  padding: 13px 14px;
  outline: none;
  box-shadow: none;
}

#te-ebook-modal-root .te-em-field input:focus { border-color: #217346; box-shadow: 0 0 0 3px rgba(33, 115, 70, 0.15); }

#te-ebook-modal-root .te-em-btn {
  display: block;
  width: 100%;
  background: #217346;
  color: #ffffff;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  padding: 16px 22px;
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(33, 115, 70, 0.3);
}

#te-ebook-modal-root .te-em-btn:hover { background: #1a5c38; }

#te-ebook-modal-root .te-em-fine {
  font-size: 13px;
  line-height: 1.55;
  color: #94a3b8;
  margin-top: 12px;
  text-align: center;
}

#te-ebook-modal-root .te-em-error {
  display: none;
  font-size: 13.5px;
  line-height: 1.5;
  color: #dc2626;
  margin-top: 12px;
  text-align: center;
}

#te-ebook-modal-root .te-em-success { display: none; text-align: center; padding: 8px 0 4px; }

#te-ebook-modal-root .te-em-success-icon {
  width: 62px;
  height: 62px;
  border-radius: 999px;
  background: #217346;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

#te-ebook-modal-root .te-em-success-icon svg { width: 28px; height: 28px; display: block; }
#te-ebook-modal-root .te-em-success h3 { font-size: 22px; margin-bottom: 10px; }
#te-ebook-modal-root .te-em-success p { font-size: 15.5px; color: #64748b; }

#te-ebook-modal-root .te-em-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 480px) {
  #te-ebook-modal-root .te-em-card { padding: 30px 22px 24px; }
}
