
.modal {
    /* position: fixed; */
    left: 0;
    top: 20px;
    bottom: 0;
    width: 100%;
    height: 60px;
    overflow: hidden;
    /* background: rgba(51, 51, 51, 0.5); */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: 0.4s;
    z-index: 1;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .modal-container {
    display: flex;
    width: 100%;
    height: 100%;
    display: grid;
    align-items: flex-end;
    top: 5px;
   
    border-radius: 10px;
    overflow: hidden;
    position: absolute;
    opacity: 0;
    pointer-events: none;
    transition-duration: 0.3s;
    /* background-color: hsla(var(--hue), 18%, 75%, .8); */
    /* background-image: url(../img/wildebeest.jpg); */
    background: url(../img/wildebeest.jpg)no-repeat center fixed;
  
    background-size: cover;
    /* background: #fff; */
    transform: translateY(100px) scale(0.4);
  
    overflow: auto;
    /* margin: 30px; */
  
  }
  .modal-title {
    font-size: 26px;
    margin: 0;
    font-weight: 400;
    color: #f08b06;
  }
  .modal-desc {
    margin: 6px 0 30px 0;
  }
  .modal-left {
    padding: 60px 30px 20px;
    background: #fff;
    flex: 1.5;
    transition-duration: 0.5s;
    transform: translateY(80px);
    opacity: 0;
  }
  
  .modal-right {
    flex: 2;
    font-size: 0;
    transition: 0.3s;
    overflow: hidden;
  }
  .modal-right img {
    width: 100%;
    height: 100%;
    transform: scale(2);
    -o-object-fit: cover;
       object-fit: cover;
    transition-duration: 1.2s;
  }
  .modal.is-open {
    height: 100%;
    background: rgba(51, 51, 51, 0.85);
  }
  .modal.is-open .modal-button {
    opacity: 0;
  }
  .modal.is-open .modal-container {
    opacity: 1;
    transition-duration: 0.6s;
    pointer-events: auto;
    transform: translateY(0) scale(1);
  }
  .modal.is-open .modal-right img {
    transform: scale(1);
  }
  .modal.is-open .modal-left {
    transform: translateY(0);
    opacity: 1;
    transition-delay: 0.1s;
  }
  .modal-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .modal-buttons a {
    color: rgba(51, 51, 51, 0.6);
    font-size: 14px;
  }
  
  
  
  .input-button {
    padding: 8px 12px;
    outline: none;
    border: 0;
    color: #fff;
    border-radius: 4px;
    background: #8c7569;
    font-family: "Nunito", sans-serif;
    transition: 0.3s;
    cursor: pointer;
  }
  .input-button:hover {
    background: #55311c;
  }
  
  .input-label {
    font-size: 11px;
    text-transform: uppercase;
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    letter-spacing: 0.7px;
    color: #000b47;
    transition: 0.3s;
  }
  
  .input-block {
    display: flex;
    flex-direction: column;
    padding: 8px 8px 6px;
    border: 1px solid #f08b06;
    border-radius: 4px;
    margin-bottom: 5px;
    transition: 0.3s;
    width: calc(50% - 10px); 
      margin-right: 2px; 
      
  }
  
  .input-row {
      display: flex;
      flex-wrap: wrap;
      margin-bottom: 5px;
  }
  
  
  
  .input-block:last-child {
      margin-right: 0; 
  }
  
  @media (max-width: 768px) {
      .input-block {
          width: 100%; 
          margin-right: 0; 
          margin-bottom: 5px; 
      }
  }
  .input-block input {
    outline: 0;
    border: 0;
    text-align: center;
    border-radius: 5px;
    padding: 5px 0 0;
    font-size: 14px;
    font-family: "Nunito", sans-serif;
  }
  .input-block textarea {
    outline: 0;
    border: 0;
    border-color: #000b47;
    /* border-radius: 5px; */
    padding: 5px 0 0;
    font-size: 14px;
    font-family: "Nunito", sans-serif;
  }
  
  .input-block input::-moz-placeholder {
    color: #ccc;
    opacity: 1;
  }
  .input-block input:-ms-input-placeholder {
    color: #ccc;
    opacity: 1;
  }
  .input-block input::placeholder {
    color: #ccc;
    opacity: 1;
  }
  .input-block:focus-within {
    border-color: #000b47;
  }
  .input-block:focus-within .input-label {
    color: rgba(140, 117, 105, 0.8);
  }
  
  .icon-button {
    outline: 0;
    position: absolute;
    right: 10px;
    top: 50px;
    width: 32px;
    height: 32px;
    border: 0;
    background: 0;
    padding: 0;
    cursor: pointer;
  }
  
  
  
  @media (max-width: 750px) {
    .modal-container {
      width: 90%;
    }
  
    .modal-right {
      display: none;
    }
  }
  
  
  
  
  
  
  
  
  
  .modal__content{
    position: relative;
    background-color: #ddd;
    text-align: center;
    padding: 3rem 2rem 2rem;
    border-radius: 1rem 1rem 0 0;
    transition: all .3s;
    z-index: 10000;
    /* width: 900px; */
    min-width: 900px;
  
    /*=== Effect 1 ===*/
    transform: translateY(10%);
  
    /*=== Effect 2 ===*/
    /* transform: scale(.5) translateY(10%); */
  
    /*=== Effect 3 ===*/
    /* transform: rotateX(65deg) scale(.75) translateY(10%);
    transform-origin: 50% 100%; */
  }
  
  .modal__img{
    width: 150px;
    margin-bottom: .75rem;
  }
  
  .modal__close{
    display: inline-flex;
    background-color: #f08b06;
    border-radius: .25rem;
    color: #FFF;
    font-size: 1.5rem;
    position: absolute;
    top: 2rem;
    right: 2rem;
    cursor: pointer;
  }
  
  .modal__title{
    font-size:20px;
    color:#348300;
    font-weight: 500;
  }
  
  .modal__description{
    margin-bottom: 1.5rem;
  }
  
  .modal__button-width{
    width: 90%;
  }
  
  .close-button{
    background-color: #000000;
    color: #ffffff;
    font-weight: 500;
    border-radius: 5px;
  }
  
  /* Show modal */
  .show-modal2{
    visibility: visible;
    opacity: 1;
  }
  
  .show-modal2 .modal__content{
    /*=== Effect 1 ===*/
    transform: translateY(0);
  
    /*=== Effect 2 ===*/
    /* transform: scale(1) translateY(0); */
  
    /*=== Effect 3 ===*/
    /* transform: rotateX(0) scale(1) translateY(0); */
  }
  
  /*=============== BREAKPOINTS ===============*/
  /* For small devices */
  @media screen and (max-width: 576px) {
   
    
    .modal.is-open {
      z-index: 10000;
    
    }
   
    .modal-container{
      overflow: hidden;
    }
    .modal__content {
      margin: auto;
      width: calc(100% - 2rem); /* Adjust width for smaller screens */
      max-width: 380px; /* Limit maximum width for small screens */
      border-radius: 1.25rem;
      transform: translateY(0);
      overflow: hidden;
    }
  
    .modal__img {
      width: 120px; /* Decrease image size for smaller screens */
      margin-bottom: .5rem;
    }
  
    .modal__close {
      top: 1rem; /* Adjust close button position */
      right: 1rem;
    }
  
    .modal-title {
      font-size: 20px; /* Decrease title font size for smaller screens */
    }
  
    .modal-desc {
      font-size: 14px; /* Decrease description font size for smaller screens */
    }
  
    .input-button {
      padding: 6px 10px; /* Adjust button padding for smaller screens */
    }
  }
  
  /* For medium devices */
  @media screen and (min-width: 576px) {
    .modal-container{
      overflow: hidden;
    }
    .modal__content {
      overflow: hidden;
      width: calc(50% - 2rem); /* Adjust width for medium screens */
      max-width: 380px; /* Limit maximum width for medium screens */
      margin: auto;
      border-radius: 1.25rem;
      transform: translateY(0);
    }
  
    .modal__img {
      width: 170px; /* Adjust image size for medium screens */
    }
  }
  
  
  
  
  
  .modal-res {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
    align-items: center;
    justify-content: center;
    }
    
    .modal-res-content {
    /* background-color: #fff;
    margin: 5% auto;
    padding: 10px;
    border-radius: 10px;
    max-width: 50%;
    max-height: 40vh;
    overflow-y: auto;
    position: relative; */
    /* max-width: 40%; */
    width: 340px;
    background-color: #c5c5c5;
    padding: 1rem;
    border-radius: 5px;
    box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.25);
    z-index: 1;
    text-align: center;
    contain: content;
  
  
    height: auto;
    /* display: flex; */
    align-items: center;
    justify-content: center;
    }
  
    .modal-res-content img {
      /* max-width: 50%;
      height: 50%; */
      padding: 1rem;
      border-radius: 3px;
  
    }
  /*   
    .modal-res-content img {
      width: 50%; 
      right: 50%;
      max-width: 200px; 
      height: auto;
  align-items: center;
  justify-content: center;
    } */
    .res-close {
    position:sticky;
    top: 20px;
    left: 40%;
      transform: translateX(50%);
    font-size: 30px;
    cursor: pointer;
    z-index: 1000;
    color: #00bbf0;
    
    
    }
  
    .res-close:hover{
  
      color: goldenrod;
    }
  
    .modal-res-content span{
  background-color: #020230;
  border-radius: 50%;
  padding: 0.5rem;
   width: 40px;
  height: 40px;
    }
  
  
    .modal-res-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color:transparent; 
        backdrop-filter: blur(8px); 
        z-index: -1;
      }
  
      .modal-res h3 {
        margin-top: 0;
        color: black;
      }
    
      .modal-res p {
        color: black;
      }
  
  
      @media (max-width: 600px) {
        .modal-res {
          top: 0;
          align-items: center; 
          justify-content: center;
        }
      
        .modal-res-content {
          width: 90%; 
          padding: 0.5rem; 
          text-align: left; 
        }
     
        .modal-res-overlay {
          background-color: rgba(0, 0, 0, 0.5);
          backdrop-filter: blur(8px); 
        }
      
       
        .modal-res-content img {
          /* width: 100%; 
          max-width: 300px; 
          height: auto; */
      align-items: center;
      justify-content: center;
        }
      }