@import "variables.less";

@media only screen and (min-width: 320px) and (max-width: 768px),
only screen and (min-device-width: 320px) and (max-device-width: 768px) {  
  .popup-content {
    width: calc(100vw - 30px) !important;
    
    .popup-form > * {
      margin-bottom: 20px !important;
    }
      
    .popup-image {
      width: 315px !important;
      height: 200px !important;
      margin-bottom: 20px !important;

      img {
        min-width: 100%;
        min-height: 100%;
      }
    }
      
    .popup-title {
      font-size: 20px;
      line-height: 23px;
      margin-bottom: 20px !important;
    }
    
    .popup-description {
      margin-bottom: 20px !important;
    }
    
    input {
      height: 65px !important;
      line-height: 65px !important;
    }
    
    .popup-close-button {
      right: 20px;
      left: auto !important;
      width: 40px !important;
      height: 40px !important;
      
      img {
        width: 40px !important;
        height: 40px !important;
      }
    }
  }
}

section.popup {
  display: none;
  
  &.show {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
  	z-index: 20;
    
    .popup-background {
      display: block;
      position: fixed;
      top: 0;
      left: 0;
      width: 100vw;
      height: 100vh;      
      background: @white-color;
      opacity: .55;
      z-index: 21;
    }
    
    .popup-content {
      display: block;
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translateX(-50%) translateY(-50%);
      width: 650px;
      height: fit-content;
      background: @black-color;
      border-radius: 20px;
      z-index: 22;
      padding: 30px;
      box-sizing: border-box;
      color: @white-color;
      
      .popup-close-button {
        position: absolute;
        top: 15px;
        left: calc(100% + 15px);
        cursor: pointer;
        width: 80px;
        height: 80px;
  		transition: @defaultTransitionProps;
        
        &:hover {
  		  transition: @defaultTransitionProps;
          transform: rotate(90deg);
        }
        
        img {
          width: 80px;
          height: 80px;
        }
      }
      
      .popup-title {
        font-size: 30px;
        line-height: 34px;
        font-weight: bold;
        text-align: center;
        margin-bottom: 30px;
        text-transform: uppercase;
      }
      
      .popup-description {
        font-size: 16px;
        line-height: 18px;
        text-align: center;
        margin-bottom: 30px;
      }
      
      .popup-form {
        display: flex;
        flex-direction: column;
        
        & > * {
          margin-bottom: 30px;
          
          &:last-child {
            margin-bottom: 0;
          }
        }
        
        input[type="button"]:hover {
          background-color: @orange-color;
          color: @white-color;
          box-shadow: 0 0 10px 0 @orange-color;
        }
      }
      
      .popup-image {
        width: 590px;
        height: 280px;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        border-radius: 250px 250px 10px 10px;
        margin: 0px auto 30px;
        overflow: hidden;
        
        img {
          min-width: 100%;
          min-height: 100%;
        }
      }
    }
  }
}