/* Times Edu – Brochure Lead popup (mobile-first) */
html.tebl-lock { overflow: hidden; }
.tebl-overlay[hidden], .tebl-overlay [hidden] { display: none !important; }
.tebl-overlay {
  position: fixed; inset: 0; z-index: 999999;
  background: rgba(11, 20, 40, .6);
  display: flex; align-items: flex-end; justify-content: center;
  padding: 0;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
  animation: tebl-fade .18s ease-out;
}
.tebl-modal {
  position: relative; width: 100%; max-width: 440px;
  max-height: 92vh; overflow-y: auto;
  background: #fff; color: #1d2433;
  border-radius: 18px 18px 0 0;
  padding: 28px 20px calc(20px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .2);
  font-family: inherit; text-align: left;
  animation: tebl-up .22s ease-out;
}
.tebl-x {
  position: absolute; top: 8px; right: 10px;
  width: 40px; height: 40px; border: 0; background: transparent;
  font-size: 28px; line-height: 1; color: #6b7385; cursor: pointer;
}
.tebl-h { margin: 0 0 6px; font-size: 20px; line-height: 1.3; color: #0b2545; }
.tebl-doc { margin: 0 0 8px; font-weight: 700; color: #1f5fbf; font-size: 15px; }
.tebl-intro { margin: 0 0 16px; font-size: 14px; color: #5b6475; }
.tebl-field { display: block; margin: 0 0 12px; }
.tebl-field span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; color: #333b4d; }
.tebl-field input {
  width: 100%; box-sizing: border-box; height: 46px; padding: 0 14px;
  font-size: 16px; /* chặn iOS tự zoom */
  border: 1px solid #cfd5e1; border-radius: 10px; background: #fff; color: #1d2433;
}
.tebl-field input:focus { outline: none; border-color: #1f5fbf; box-shadow: 0 0 0 3px rgba(31, 95, 191, .15); }
.tebl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tebl-status { min-height: 18px; margin: 0 0 8px; font-size: 13px; color: #c62828; }
.tebl-submit {
  display: block; width: 100%; box-sizing: border-box; height: 48px; line-height: 48px;
  border: 0; border-radius: 10px; background: #0b2545; color: #fff !important;
  font-size: 16px; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer;
}
.tebl-submit:hover { background: #133a6b; }
.tebl-submit:disabled { opacity: .65; cursor: wait; }
.tebl-consent { margin: 10px 0 0; font-size: 12px; color: #8a92a3; text-align: center; }
.tebl-ok-view { text-align: center; padding-top: 6px; }
.tebl-check {
  width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%;
  background: #e7f6ec; color: #1e8e3e; font-size: 30px; line-height: 56px; font-weight: 700;
}
.tebl-ok-msg { margin: 0 0 18px; font-size: 14px; color: #333b4d; }
.tebl-done {
  margin-top: 10px; width: 100%; height: 44px; border: 1px solid #cfd5e1; border-radius: 10px;
  background: #fff; color: #333b4d; font-size: 15px; cursor: pointer;
}
@media (min-width: 600px) {
  .tebl-overlay { align-items: center; padding: 20px; }
  .tebl-modal { border-radius: 16px; padding: 32px 28px 28px; box-shadow: 0 20px 60px rgba(0, 0, 0, .25); }
}
@keyframes tebl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tebl-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .tebl-overlay, .tebl-modal { animation: none; } }
