


/* --- Overlay --- */
.cec_modal_overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1050;
  background: rgba(0, 20, 60, 0.25);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  justify-content: center;
  align-items: flex-start;
  padding-top: 80px;
}

.cec_modal_overlay.is-open {
  display: flex;
  animation: cec_modal_fadeIn 0.2s ease;
}

/* --- Window --- */
.cec_modal_window {
  background: #fff;
  border-radius: 12px;
  width: 92%;
  max-width: 520px;
  box-shadow: 0 8px 32px rgba(0, 20, 60, 0.15), 0 1px 3px rgba(0,0,0,0.05);
  animation: cec_modal_slideDown 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* --- Header --- */
.cec_modal_header {
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ebeef3;
}

.cec_modal_title {
  font-size: 24px;
  font-weight: 700;
  color: #1a3c6e;
  line-height: 1.4;
}

.cec_modal_close {
  background: none;
  border: none;
  color: #a0aab8;
  font-size: 41px;
  line-height: 1;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
  flex-shrink: 0;
  text-decoration: none;
}

.cec_modal_close:hover {
  background: #f0f2f6;
  color: #1a3c6e;
}

/* --- Body / butoane --- */
.cec_modal_body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
}

.cec_modal_btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e6ed;
  border-radius: 10px;
  text-decoration: none;
  color: #1a3c6e;
  font-size: 20px;
  font-weight: 400;
  line-height: 1.35;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.cec_modal_btn:hover {
  background: #f7f9fc;
  border-color: #c4ccda;
  box-shadow: 0 3px 10px rgba(26, 60, 110, 0.07);
  transform: translateY(-1px);
  color: #1a3c6e;
  text-decoration: none;
}

.cec_modal_btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.cec_modal_btn_icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

/* --- Animații --- */
@keyframes cec_modal_fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes cec_modal_slideDown {
  from { opacity: 0; transform: translateY(-16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* --- Responsive --- */
@media (max-width: 576px) {
  .cec_modal_overlay {
    padding-top: 40px;
  }
  .cec_modal_window {
    width: 96%;
    border-radius: 10px;
  }
  .cec_modal_header {
    padding: 16px 18px 14px;
  }
  .cec_modal_body {
    padding: 12px 18px 20px;
  }
}
