/*-----------------
MODAL OVERLAY
-----------------*/

.modal-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: rgba(38, 54, 40, 0.95);
   z-index: 9999;
   display: flex;
   align-items: center;
   justify-content: center;
   padding: 20px;
   animation: fadeIn 0.3s ease-in-out;
}

.modal-overlay .modal-content {
   position: relative;
   background: #E8E9E9;
   border-radius: 10px;
   max-width: 800px;
   width: 100%;
   max-height: 90vh;
   overflow-y: auto;
   box-shadow: 0px 10px 40px rgba(0, 0, 0, 0.3);
   animation: slideUp 0.3s ease-in-out;
   padding: 40px;
}

@media screen and (min-width: 640px) {
   .modal-overlay .modal-content {
      padding: 60px;
   }
}

.modal-overlay .modal-close {
   position: absolute;
   top: 20px;
   right: 20px;
   background: none;
   border: none;
   cursor: pointer;
   padding: 10px;
   color: #242B27;
   transition: .2s all ease-in-out;
   z-index: 10;
   display: flex;
   align-items: center;
   justify-content: center;
   width: 40px;
   height: 40px;
   border-radius: 50%;
}

.modal-overlay .modal-close:hover {
   background: rgba(0, 0, 0, 0.05);
   color: #7FB069;
}

.modal-overlay .modal-close svg {
   width: 24px;
   height: 24px;
}

.modal-overlay .modal-title {
   font-family: 'Object Sans', Helvetica, Roboto, Arial, sans-serif;
   font-size: 24px;
   line-height: 1.2;
   color: #242B27;
   margin: 0 0 30px 0;
   font-weight: bold;
   padding-right: 50px;
}

@media screen and (min-width: 640px) {
   .modal-overlay .modal-title {
      font-size: 32px;
   }
}

.modal-overlay .modal-body {
   color: #242B27;
   font-size: 16px;
   line-height: 26px;
   margin-bottom: 30px;
}

@media screen and (min-width: 640px) {
   .modal-overlay .modal-body {
      font-size: 20px;
      line-height: 30px;
   }
}

.modal-overlay .modal-body p {
   margin-bottom: 1rem;
}

.modal-overlay .modal-body p:last-child {
   margin-bottom: 0;
}

.modal-overlay .modal-body h1,
.modal-overlay .modal-body h2,
.modal-overlay .modal-body h3,
.modal-overlay .modal-body h4,
.modal-overlay .modal-body h5,
.modal-overlay .modal-body h6 {
   font-family: 'Object Sans', Helvetica, Roboto, Arial, sans-serif;
   color: #242B27;
   margin-bottom: 1rem;
}

.modal-overlay .modal-dismiss {
   width: 100%;
   margin-top: 20px;
}

@media screen and (min-width: 640px) {
   .modal-overlay .modal-dismiss {
      width: auto;
      min-width: 200px;
   }
}

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

@keyframes slideUp {
   from {
      transform: translateY(30px);
      opacity: 0;
   }
   to {
      transform: translateY(0);
      opacity: 1;
   }
}

