/* ===========================================================================
   Ever Trust Investments - portal chooser pop-up
   Drop-in for the EXISTING institute home page (index.html).
   Nothing else on the institute site is changed.
   =========================================================================== */

.etp-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(2, 32, 22, 0.72);
  backdrop-filter: blur(4px);
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
.etp-overlay.is-open { display: flex; }

.etp-modal {
  position: relative;
  width: 100%;
  max-width: 720px;
  background: #ffffff;
  border-radius: 16px;
  border-top: 6px solid #c9a227;
  box-shadow: 0 30px 70px rgba(2, 32, 22, 0.4);
  padding: 38px 32px 32px;
  text-align: center;
  animation: etpIn 0.28s ease-out;
}
@keyframes etpIn {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to   { opacity: 1; transform: none; }
}

.etp-modal h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: #06402b;
  font-size: 1.7rem;
  margin: 0 0 8px;
}
.etp-modal p.etp-sub { color: #4a6155; margin: 0 0 26px; font-size: 0.96rem; }

.etp-choices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.etp-card {
  display: block;
  text-decoration: none;
  background: #06402b;
  color: #ffffff;
  border-radius: 12px;
  padding: 26px 22px;
  border: 2px solid #06402b;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.etp-card:hover {
  transform: translateY(-3px);
  background: #0a5138;
  box-shadow: 0 16px 34px rgba(2, 32, 22, 0.28);
}
.etp-card strong {
  display: block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.16rem;
  color: #ffffff;
  margin-bottom: 6px;
  line-height: 1.3;
}
.etp-card span { display: block; font-size: 0.87rem; color: #f0dda3; }
.etp-card .etp-go { margin-top: 14px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: #dcb843; }

.etp-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 36px; height: 36px;
  border: none;
  border-radius: 50%;
  background: #f2f7f4;
  color: #06402b;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}
.etp-close:hover { background: #c9a227; color: #022016; }

.etp-skip {
  margin-top: 20px;
  background: none;
  border: none;
  color: #4a6155;
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width: 520px) {
  .etp-modal { padding: 32px 20px 24px; }
  .etp-modal h2 { font-size: 1.4rem; }
}

.etp-modal .etp-logo {
  display: block;
  width: 80px;
  height: 80px;
  object-fit: cover;
  margin: 0 auto 14px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #c9a227;
}

