.modal {
  font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, helvetica neue, helvetica,
    ubuntu, roboto, noto, segoe ui, arial, sans-serif;
}

.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ✅ RESPONSIVE CONTAINER */
.modal__container {
  background-color: #fff;
  padding: 0;
  width: 900px;
  max-width: 900px;
  height: 85vh;
  max-height: 100vh;
  border-radius: 8px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Header */
.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal__title {
  margin: 0;
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  color: #00449e;
}

.modal__close {
  background: none;
  border: 0;
  position: fixed;
  right: 12px;
  top: 12px;
  cursor: pointer;
  z-index: 10;
}

.modal__header .modal__close:before {
  content: '\2715';
}

/* ✅ FLEXIBLE CONTENT (REMOVED FIXED SIZE) */
.modal__content {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ✅ IFRAME FILLS MODAL */
.modal__content iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Buttons */
.modal__btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  background-color: #e6e6e6;
  color: rgba(0, 0, 0, 0.8);
  border-radius: 0.25rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease-out;
}

.modal__btn:hover,
.modal__btn:focus {
  transform: scale(1.05);
}

.modal__btn-primary {
  background-color: #00449e;
  color: #fff;
}

/* Scrollbars */
#style-4::-webkit-scrollbar-track {
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
  background-color: #f5f5f5;
}

#style-4::-webkit-scrollbar {
  width: 5px;
}

#style-4::-webkit-scrollbar-thumb {
  background-color: #555;
}

/* Animations */
@keyframes mmfadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes mmfadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes mmslideIn {
  from {
    transform: translateY(15%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes mmslideOut {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-10%);
  }
}

.micromodal-slide {
  display: none;
}

.micromodal-slide.is-open {
  display: block;
}

.micromodal-slide[aria-hidden='false'] .modal__overlay {
  animation: mmfadeIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden='false'] .modal__container {
  animation: mmslideIn 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden='true'] .modal__overlay {
  animation: mmfadeOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

.micromodal-slide[aria-hidden='true'] .modal__container {
  animation: mmslideOut 0.3s cubic-bezier(0, 0, 0.2, 1);
}

/* Ribbon */
.ribbon {
  width: 150px;
  height: 150px;
  position: absolute;
}
.ribbon::after,
.ribbon::before {
  position: absolute;
  z-index: -1;
  content: '';
  display: block;
  width: 40px;
  height: 40px;
  border: 20px solid #43ab01;
}
.ribbon span {
  position: absolute;
  display: block;
  width: 208px;
  padding: 9px 0;
  background-color: #58c313;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
  color: #fff;
  font: 700 10px/1 Lato, sans-serif;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  text-align: center;
}
.ribbon-top-left::after,
.ribbon-top-left::before {
  border-top-color: transparent;
  border-left-color: transparent;
}
.ribbon-top-left::before {
  top: -11px;
  right: 14px;
}
.ribbon-top-left::after {
  bottom: 14px;
  left: -12px;
}
.ribbon-top-left span {
  right: -7px;
  top: 39px;
  transform: rotate(-45deg);
}

/* ✅ MOBILE FULLSCREEN MODE */
@media (max-width: 768px) {
  .modal__container {
    width: 100vw;
    height: 100vh;
    max-width: none;
    max-height: none;
    border-radius: 0;
  }
}

/* Global scrollbar cleanup */
::-webkit-scrollbar {
  width: 0;
  background: transparent;
}
