/* ===== RESET & BASE ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Montserrat', sans-serif;
  color: #212529;
  background: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* Stretched Link Utility */
.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

input, select {
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== TOP BAR ===== */
/* Figma: 1440x52, bg:#212529, pad:8/32/0/32, gap:1, HORIZONTAL */
.topbar {
  background: #212529;
  height: 52px;
}

.topbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 8px 32px 0 32px;
  display: flex;
  align-items: flex-end;
  height: 100%;
  gap: 1px;
}

/* Figma inactive tab: 94x44, bg:#6c757d, stroke:#dee2e6, pad:0 16, 12px/500 */
.topbar-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
  padding: 0 16px;
  height: 44px;
  color: #f8f9fa;
  background: #6c757d;
  border: 1px solid #dee2e6;
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s;
}

.topbar-link:hover {
  background: #5a6268;
}

/* Figma active: bg:white, text:#00476d, 12px/700 */
.topbar-link.active {
  color: #00476d;
  background: #ffffff;
  font-weight: 700;
}

.topbar-link i {
  font-size: 16px;
}

/* ===== MAIN NAVBAR ===== */
/* Figma: 1440x88, bg:white, stroke:#dee2e6, pad:0/24 */
.navbar {
  background: #ffffff;
  height: 88px;
  border-bottom: 1px solid #dee2e6;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

/* Figma: 257x64 image */
.navbar-logo-img {
  height: 64px;
  width: auto;
}

.navbar-toggle {
  display: none;
  font-size: 28px;
  color: #212529;
  padding: 4px;
}

/* Figma menu: gap:8, pad-bottom:4 */
.navbar-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
}

/* Figma links: 12px/500, color:#495057, pad:0/16, h:44 */
.nav-link {
  font-size: 12px;
  font-weight: 500;
  color: #495057;
  padding: 0 16px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.nav-link:hover {
  color: #00476d;
}

/* Figma: 12px/700, color:#00476d */
.nav-link.active {
  color: #00476d;
  font-weight: 700;
}

.nav-link i {
  font-size: 10px;
  transition: transform 0.2s;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 8px 0;
  min-width: 220px;
  z-index: 200;
}

.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: #495057;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background: #f0f6fc;
  color: #00476d;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  display: block;
}

.nav-dropdown:hover .dropdown-toggle i {
  transform: rotate(180deg);
}

/* ===== HERO ===== */
/* Figma: 1440x682, single background image, pad:80/0, inner:1200x522 */
.hero {
  position: relative;
  min-height: 682px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  background-color: #e8eff5;
}

.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px;
  display: flex;
  gap: 80px;
  align-items: center;
}

/* Figma: 560x522, VERTICAL, gap:40 */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 560px;
  flex-shrink: 0;
}

/* Figma: 40px/700, lh:48px, color:#212529 */
.hero-content h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 48px;
  color: #212529;
  margin-bottom: 0;
}

/* Figma: 20px/500, lh:30px, color:#212529 */
.hero-content p {
  font-size: 20px;
  font-weight: 500;
  line-height: 30px;
  color: #212529;
  margin-bottom: 40px;
}

/* Figma: gap:24 */
.hero-stats {
  display: flex;
  gap: 24px;
  margin-bottom: 40px;
}

/* Figma: 171x82, bg:white, stroke:#9ec5fe, r:8, pad:16 */
.stat-item {
  background: #ffffff;
  border: 1px solid #9ec5fe;
  border-radius: 8px;
  padding: 16px;
  text-align: left;
  flex: 1;
}

/* Figma: 24px/700, color:#00476d */
.stat-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #00476d;
}

/* Figma: 14px/500, color:#00476d */
.stat-label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #00476d;
  margin-top: 2px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

/* Figma: 229x48, bg:#00476d, r:~5, pad:8/16, 20px/500 */
.btn-primary {
  background: #00476d;
  color: #ffffff;
  padding: 8px 16px;
  font-size: 20px;
  font-weight: 500;
  border: 1px solid #00476d;
  border-radius: 5px;
  height: 48px;
}

.btn-primary:hover {
  background: #003a5a;
  border-color: #003a5a;
}

/* Figma "Ver todas": bg:#00476d, r:4, pad:6/12, 16px/400 */
.btn-outline {
  background: #00476d;
  color: #ffffff;
  border: 1px solid #00476d;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 400;
  border-radius: 4px;
}

.btn-outline:hover {
  background: #003a5a;
}

/* Figma "Saiba mais": no border, 14px/500, color:#00476d */
.btn-outline-sm {
  background: transparent;
  border: none;
  color: #00476d;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 500;
}

.btn-outline-sm:hover {
  color: #003a5a;
}

/* ===== NOSSO TRABALHO ===== */
/* Figma: 1440x722, bg:#f8f9fa, pad:80/0, gap:40 */
.section-trabalho {
  padding: 80px 0;
  background: #f8f9fa;
}

/* Figma: 32px/700, color:#00476d */
.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #00476d;
  margin-bottom: 40px;
}

.section-title-left {
  font-size: 32px;
  font-weight: 700;
  color: #00476d;
  margin-bottom: 32px;
}

.cards-carousel {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Figma: 40x40, bg:black, r:20 */
.carousel-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 20px;
  border: none;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #ffffff;
  transition: all 0.2s;
}

.carousel-arrow:hover {
  background: #333333;
}

/* Figma: 1200x483, HORIZONTAL, gap:24 */
.cards-wrapper {
  display: flex;
  gap: 24px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.cards-wrapper::-webkit-scrollbar {
  display: none;
}

.cards-wrapper .modern-card {
  min-width: calc((100% - 72px) / 4);
  flex: 0 0 calc((100% - 72px) / 4);
}

/* Figma: 282x483, bg:white, stroke:#dee2e6, r:12, pad:8 */
.modern-card {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #dee2e6;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  padding: 8px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.modern-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

/* Figma: 266x266, r:12 */
.card-icon-area {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.card-icon-area i {
  font-size: 60px;
  color: #00476d;
  opacity: 0.7;
}

.card-icon-area.bg-blue { background: #e8f4fd; }
.card-icon-area.bg-orange { background: #fef3e8; }
.card-icon-area.bg-purple { background: #f0e8fe; }
.card-icon-area.bg-green { background: #e8f9f3; }

/* Figma: pad:16, gap:20 */
.card-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  gap: 20px;
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Figma: 18px/700, color:#00476d */
.card-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #00476d;
}

/* Figma: 14px/400, color:#212529 */
.card-content p {
  font-size: 14px;
  font-weight: 400;
  color: #212529;
  line-height: 1.5;
}

/* ===== CONTEUDOS EM DESTAQUE ===== */
/* Figma: 1440x1689, bg:white, pad:80/0, gap:40 */
.section-conteudos {
  padding: 80px 0;
  background: #ffffff;
}

/* Figma: gap:40, 800px + 360px */
.conteudos-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
}

/* Figma featured: 800x515, bg:white, r:16 */
.post-featured {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 0;
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.post-featured:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.post-image-large {
  overflow: hidden;
}

.post-image-large img {
  width: 100%;
  height: 347px;
  object-fit: cover;
}

/* Figma: pad:24/0, gap:10 */
.post-content {
  padding: 24px 0;
}

.post-date {
  font-size: 13px;
  color: #9ca3af;
  display: block;
  margin-bottom: 12px;
}

.post-content h3 {
  font-size: 20px;
  font-weight: 700;
  color: #00476d;
  margin-bottom: 8px;
  line-height: 1.3;
}

.post-content h3 a,
.post-item-content h3 a,
.pub-card h4 a {
  position: relative;
  z-index: 2;
}

.post-content p {
  font-size: 14px;
  color: #212529;
  margin-bottom: 8px;
}

.post-link {
  font-size: 14px;
  color: #00476d;
  font-weight: 500;
}

.post-link:hover {
  color: #003a5a;
}

/* Figma post items: gap:24, each 800x212, bg:white, r:16, pad:16/0 */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-item {
  display: flex;
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  padding: 16px 0;
  position: relative;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.post-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.post-thumb {
  flex-shrink: 0;
  width: 200px;
  height: 180px;
  border-radius: 8px;
  overflow: hidden;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Figma: pad:0/24, gap:12 */
.post-item-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 24px;
  gap: 12px;
}

.post-item-content .post-date {
  margin-bottom: 0;
}

.post-item-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #00476d;
  line-height: 1.4;
}

.post-item-content p {
  font-size: 14px;
  color: #212529;
  line-height: 1.5;
}

/* ===== PUBLICACOES SIDEBAR ===== */
.publicacoes-sidebar {
  position: sticky;
  top: 112px;
  align-self: start;
}

.pub-filters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

/* Figma: search-box 360x38, r:4, with button bg:#6c757d */
.search-box {
  display: flex;
  border-radius: 4px;
  overflow: hidden;
}

.search-box input {
  flex: 1;
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 14px;
  background: #ffffff;
  height: 38px;
}

.search-box input:focus {
  outline: none;
  border-color: #00476d;
}

.search-box button {
  width: 42px;
  height: 38px;
  background: #6c757d;
  border: 1px solid #6c757d;
  border-radius: 0 4px 4px 0;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
}

.search-box button:hover {
  background: #5a6268;
}

/* Figma: select 360x38, stroke:#ced4da, r:4 */
.select-wrapper {
  position: relative;
}

.select-wrapper select {
  width: 100%;
  padding: 6px 36px 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 14px;
  height: 38px;
  appearance: none;
  background: #ffffff;
  cursor: pointer;
}

.select-wrapper select:focus {
  outline: none;
  border-color: #00476d;
}

.select-wrapper i {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
  font-size: 12px;
}

/* Figma pub cards: bg:white, r:8, pad:16, gap:24 between */
.pub-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.pub-card {
  background: #ffffff;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  cursor: pointer;
}

.pub-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Figma tag: bg:#cfe2ff, r:4, pad:4/8 */
.pub-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 13px;
  background: #cfe2ff;
  color: #00476d;
}

/* Figma: 16px/700, color:#00476d */
.pub-card h4 {
  font-size: 16px;
  font-weight: 700;
  color: #00476d;
  margin-bottom: 13px;
  line-height: 1.3;
}

/* Figma: 14px/400, color:#212529 */
.pub-card p {
  font-size: 14px;
  color: #212529;
  line-height: 1.5;
}

/* ===== PARTNERS BAR ===== */
/* Figma: 1440x120, pad:40 all */
.partners-bar {
  background: #ffffff;
  padding: 40px;
  height: 120px;
  display: flex;
  align-items: center;
}

.partners-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.partners-logos img {
  height: 40px;
  width: auto;
  opacity: 0.7;
  filter: grayscale(30%);
  transition: all 0.2s;
}

.partners-logos img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* ===== FOOTER ===== */
/* Figma: 1440x294, bg:#00476d, gap:48, pad-top:48 */
.footer {
  background: #00476d;
  color: #ffffff;
  padding-top: 48px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-logo {
  height: 49px;
  width: auto;
  margin-bottom: 10px;
}

/* Figma: 14px/500, white */
.footer address {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
}

/* Figma: 16px/700, white */
.footer h4 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
}

.footer h5 {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.footer ul li {
  margin-bottom: 4px;
}

.footer ul a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  padding: 2px 0;
  display: inline-block;
  transition: color 0.2s;
}

.footer ul a:hover {
  color: #ffffff;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
}

.contact-list i {
  font-size: 14px;
  color: #ffffff;
}

/* Figma: 1440x50, bg:#003a5a, 12px/400 white */
.footer-bottom {
  background: #003a5a;
  padding: 16px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 12px;
  font-weight: 400;
  color: #ffffff;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-inner {
    padding: 60px 24px;
    flex-direction: column;
    gap: 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .cards-wrapper {
    gap: 16px;
  }

  .cards-wrapper .modern-card {
    min-width: 260px;
    flex: 0 0 260px;
  }

  .conteudos-grid {
    grid-template-columns: 1fr;
  }

  .publicacoes-sidebar {
    position: static;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .topbar-inner {
    padding: 8px 16px 0 16px;
  }

  .topbar-link {
    font-size: 11px;
    padding: 0 12px;
    height: 38px;
  }

  .navbar {
    height: auto;
    padding: 12px 0;
  }

  .navbar-inner {
    flex-wrap: wrap;
  }

  .navbar-logo-img {
    height: 40px;
  }

  .navbar-toggle {
    display: block;
  }

  .navbar-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 12px 0;
    gap: 0;
  }

  .navbar-menu.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 12px 16px;
    height: auto;
  }

  .nav-dropdown {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown-menu {
    position: static;
    box-shadow: none;
    background: #f8fafc;
    border-radius: 0;
  }

  .nav-dropdown .dropdown-menu {
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .hero {
    min-height: 500px;
  }

  .hero-inner {
    padding: 40px 24px;
  }

  .hero-content h1 {
    font-size: 28px;
    line-height: 36px;
  }

  .hero-content p {
    font-size: 16px;
    line-height: 24px;
  }

  .hero-stats {
    flex-wrap: wrap;
    gap: 12px;
  }

  .stat-item {
    flex: 1;
    min-width: 90px;
    padding: 12px;
  }

  .stat-number {
    font-size: 20px;
  }

  .stat-label {
    font-size: 12px;
  }

  .section-trabalho {
    padding: 48px 0;
  }

  .section-title,
  .section-title-left {
    font-size: 24px;
  }

  .carousel-arrow {
    display: none;
  }

  .cards-wrapper {
    gap: 16px;
    padding: 0 24px;
  }

  .cards-wrapper .modern-card {
    min-width: 240px;
    flex: 0 0 240px;
  }

  .modern-card {
    flex-direction: row;
  }

  .card-icon-area {
    width: 120px;
    min-height: 120px;
    aspect-ratio: auto;
    flex-shrink: 0;
  }

  .card-icon-area i {
    font-size: 40px;
  }

  .card-body {
    padding: 12px;
  }

  .section-conteudos {
    padding: 48px 0;
  }

  .post-image-large img {
    height: 220px;
  }

  .post-item {
    flex-direction: column;
  }

  .post-thumb {
    width: 100%;
    height: 200px;
  }

  .post-item-content {
    padding: 16px 0;
  }

  .partners-bar {
    padding: 24px;
    height: auto;
  }

  .partners-logos {
    gap: 16px;
    justify-content: center;
  }

  .partners-logos img {
    height: 30px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 24px;
    line-height: 30px;
  }

  .hero-content p {
    font-size: 14px;
    line-height: 22px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 8px;
  }

  .stat-item {
    min-width: unset;
  }

  .btn-primary {
    font-size: 16px;
    height: 42px;
  }

  .conteudos-grid {
    gap: 48px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   AUTH MODAL
   ═══════════════════════════════════════════════════════════════ */

.epsm-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: opacity .25s, visibility .25s;
}

.epsm-modal[aria-hidden="true"] {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.epsm-modal[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
}

.epsm-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  backdrop-filter: blur(2px);
}

.epsm-modal__container {
  position: relative;
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .2);
  animation: epsm-modal-in .3s ease;
}

@keyframes epsm-modal-in {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.epsm-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 20px;
  color: #6c757d;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.epsm-modal__close:hover {
  color: #212529;
}

/* Tabs */
.epsm-modal__tabs {
  display: flex;
  border-bottom: 2px solid #dee2e6;
  margin-bottom: 24px;
  gap: 0;
}

.epsm-modal__tab {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #6c757d;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color .2s, border-color .2s;
}

.epsm-modal__tab:hover {
  color: #00476d;
}

.epsm-modal__tab--active {
  color: #00476d;
  border-bottom-color: #00476d;
}

/* Panels */
.epsm-modal__panel {
  display: none;
}

.epsm-modal__panel--active {
  display: block;
}

/* Title */
.epsm-modal__title {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #00476d;
  margin: 0 0 8px;
}

.epsm-modal__subtitle {
  font-size: 14px;
  color: #6c757d;
  margin: 0 0 20px;
}

/* Form Fields */
.epsm-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.epsm-modal__field label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #212529;
  margin-bottom: 4px;
}

.epsm-modal__field label small {
  color: #6c757d;
  font-weight: 400;
}

.epsm-modal__field input[type="text"],
.epsm-modal__field input[type="email"],
.epsm-modal__field input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Montserrat', sans-serif;
  transition: border-color .2s, box-shadow .2s;
}

.epsm-modal__field input:focus {
  outline: none;
  border-color: #00476d;
  box-shadow: 0 0 0 3px rgba(0, 71, 109, .1);
}

.epsm-modal__field--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.epsm-modal__checkbox {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #212529;
  cursor: pointer;
}

.epsm-modal__link {
  font-size: 13px;
  color: #00476d;
  text-decoration: none;
}

.epsm-modal__link:hover {
  text-decoration: underline;
}

/* Submit Button */
.epsm-modal__submit {
  width: 100%;
  padding: 12px;
  background: #00476d;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.epsm-modal__submit:hover {
  background: #003552;
}

.epsm-modal__submit:disabled {
  opacity: .7;
  cursor: not-allowed;
}

/* Spinner */
.epsm-modal__spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, .3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: epsm-spin .6s linear infinite;
}

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

/* Messages */
.epsm-modal__message {
  font-size: 13px;
  padding: 0;
  border-radius: 4px;
  min-height: 0;
  transition: all .2s;
}

.epsm-modal__message:empty {
  display: none;
}

.epsm-modal__message--error {
  display: block;
  background: #f8d7da;
  color: #842029;
  padding: 10px 12px;
  border: 1px solid #f5c2c7;
}

.epsm-modal__message--success {
  display: block;
  background: #d1e7dd;
  color: #0f5132;
  padding: 10px 12px;
  border: 1px solid #badbcc;
}

/* Responsive */
@media (max-width: 480px) {
  .epsm-modal__container {
    padding: 24px 20px;
    max-width: 100%;
  }

  .epsm-modal__field--row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
