/**
 * General responsive styles
 */

@media(max-width:768px){
  /* Homepage */
  .m-license-homepage .m-home-body{
    bottom: unset;
  }
  .m-license-homepage .m-home-body .m-home-body-content{
    padding: 0px 50px;
  }
  .m-license-homepage .m-home-body .m-home-body-content p{
    font-size: 14px;
  }
  .m-license-homepage .m-home-body .m-home-body-content .intro p{
    line-height: unset;
  }
  .m-license-homepage .m-home-body .m-home-body-content .subject-selector-content .subject-content{
    padding-bottom: 40px;
  }
  .m-license-homepage .m-home-body .m-home-body-content .subject-selector-content .subject-content:nth-child(1){
    border-right: unset;
  }

  #buy-homepage.m-license-homepage .m-home-body{
    bottom: 0;
  }

  /* Payment pages */
  .payment-body .form-check label{
    display: unset;
  }
  .payment-body .form-content.find-student label{
    width: 25% !important;
  }
  .payment-body .form-content.find-student input{
    margin-bottom: 10px;
  }
  .m-license-navbar .navbar-header .navbar-brand img:nth-child(1){
    padding-right: 30px;
  }
  .m-license-navbar .navbar-header .navbar-brand img:nth-child(2){
    padding-left: 5px;
  }
  .navbar-brand{
    padding: 15px 0px;
  }
  .payment-body{
    margin: 20px 14% 20px 16% !important;
  }
  .progress-bar-container #progressbar{
    justify-content: unset;
  }
  .payment-body .form-check{
    margin-top: 15px;
  }
  .payment-body .form-check select{
    margin-top: 10px;
  }
  .payment-body .select-school-center,
  .payment-body .form-content .form-group{
    display: unset !important;
  }
  .payment-body .select-school-center select{
    margin-left: 0px !important;
  }
  .payment-body .form-content input#postal-code{
    width: 250px !important;
    margin-bottom: 15px;
  }
  .payment-body .school-form .form-group:nth-child(3),
  .payment-body .school-form .form-group:nth-child(5),
  #particular .payment-body .school-form .form-group:nth-child(4){
    border-bottom: none !important;
  }
  .payment-body .school-form input,
  .payment-body .school-form select,
  .payment-body .school-form label{
    width: 100% !important;
  }
  .payment-body .school-form label{
    margin-top: 15px;
  }

  #find-school .payment-container .payment-body .form-check:nth-child(3){
    padding: 10px 0px 0px 0px !important;
  }

  /* Buy student license  */
  #buy-three .payment-body .credit-card-info .form-content .form-group{
    display: grid !important;
  }

  /* Error page */
  #error-page .m-error-body .m-error-body-content{
    padding: 0 20px;
  }
}

@media(min-width: 768px) and (max-width: 992px){
  /* Homepage */
  .m-license-homepage .m-home-body .m-home-body-content .intro p{
    line-height: 16px;
  }
  .m-license-homepage .m-home-body .m-home-body-content .subject-selector-content .subject-content:nth-child(2) .btn-milton-red{
    margin-top: 22px;
  }
  .m-license-homepage .m-home-body .m-home-body-content .subject-selector-content .subject-content:nth-child(1){
    border-right: unset;
  }
  .m-license-homepage .m-home-body .m-home-body-content .subject-selector-content .subject-content p{
    text-align:center;
  }
  .m-license-homepage .m-home-body .m-home-body-content .subject-selector-content .subject-content img:nth-child(1){
    width: 200px;
  }

  /* Payment pages */
  .payment-body{
    margin: 20px 12% 20px 18%;
  }
  .payment-body .form-content.find-student label{
    width: 25% !important;
  }
  .payment-body .form-content.find-student input{
    margin-bottom: 10px;
  }
  .payment-body .form-check{
    margin-top: 15px;
  }
  .payment-body .form-check select{
    margin-top: 10px;
  }
  .payment-body .select-school-center,
  .payment-body .form-content .form-group{
    display: unset !important;
  }
  .payment-body .select-school-center select{
    margin-left: 0px !important;
  }
  .payment-body .form-content input#postal-code{
    width: 250px !important;
    margin-bottom: 15px;
  }
  .payment-body .school-form .form-group:nth-child(3),
  .payment-body .school-form .form-group:nth-child(5),
  #particular .payment-body .school-form .form-group:nth-child(4){
    border-bottom: none !important;
  }
  .payment-body .school-form input,
  .payment-body .school-form select{
    width: 100% !important;
  }

  #find-school .payment-container .payment-body .form-check:nth-child(3){
    padding: 10px 0px 0px 0px !important;
  }

  /* Buy student license  */
  #buy-three .payment-body .credit-card-info .form-content .form-group{
    display: grid !important;
  }
}

@media(min-width: 375px) and (max-width: 500px){
  /* General */
  h3{
    font-size: 20px !important;
  }
  /* Buttons */
  .navigation-content .btn-milton-red,
  .navigation-content .btn-milton-red-white{
    width: unset;
  }

  .navigation-content .btn-milton-red-white img,
  .navigation-content .btn-milton-red-white .sp,
  .navigation-content .btn-milton-red img,
  .navigation-content .btn-milton-red .sp{
    display: none;
  }
  .navigation-content{
    margin-top: 40px;
  }
  #payment-confirmation .navigation-content{
    flex-direction: column;
  }
  #payment-confirmation .navigation-content a {
    margin-top: 20px;
  }
  /* Payments */
  .payment-body{
    margin: 20px 15px !important;
  }
  .payment-body .form-content .form-group{
    flex-direction: column;
  }
  .progress-bar-container #progressbar{
    justify-content: unset !important;
    margin: 0 -8%;
  }
  .progress-bar-container #progressbar li{
    width: 30% !important;
  }
  .progress-bar-container #progressbar li span{
    font-size: 10px;
  }
  .payment-body .form-content input,
  .payment-body select,
  .payment-body .parent-form label{
    width: 100% !important;
  }

  /* Buy student licenses */
  #buy-one .progress-bar-container #progressbar,
  #buy-two .progress-bar-container #progressbar,
  #buy-three .progress-bar-container #progressbar{
    justify-content: center !important;
  }
}

@media(min-width: 320px) and (max-width: 375px){
  /* General */
  h3{
    font-size: 18px !important;
  }
  /* Buttons */
  .navigation-content .btn-milton-red,
  .navigation-content .btn-milton-red-white{
    width: unset;
  }

  .navigation-content .btn-milton-red-white img,
  .navigation-content .btn-milton-red-white .sp,
  .navigation-content .btn-milton-red img,
  .navigation-content .btn-milton-red .sp{
    display: none;
  }

  .navigation-content{
    margin-top: 40px;
  }

  #payment-confirmation .navigation-content{
    flex-direction: column;
  }

  #payment-confirmation .navigation-content a {
    margin-top: 20px;
  }

  /* Payments */
  .payment-body{
    margin: 10px 25px !important;
  }
  .navbar-brand img{
    width: 120px;
  }
  .progress-bar-container #progressbar{
    justify-content: unset !important;
  }
  .progress-bar-container #progressbar li span{
    display: none;
  }
  .payment-body .form-content .form-group{
    flex-direction: column;
  }
  .payment-body .form-content input,
  .payment-body select,
  .payment-body .parent-form label{
    width: 100% !important;
  }

  /* Buy student licenses */
  #buy-one .progress-bar-container #progressbar,
  #buy-two .progress-bar-container #progressbar,
  #buy-three .progress-bar-container #progressbar{
    justify-content: center !important;
  }

  /* CardJs form hacks */
  .card-js .expiry-wrapper .icon{
    display: none;
  }
}

@media(max-width: 500px){
  /* Buy student licenses */
  #buy-three .payment-body .credit-card-info{
    width: 100% !important;
  }
  #buy-three .payment-body .credit-card-info img{
    width: 50px;
    margin: 0px 0px 0px 20px;
  }
  #buy-three .payment-body .form-content .form-group label{
    margin: 10px 0px;
  }
}

@media(min-width: 500px) and (max-width: 768px){
  /* Buy student licenses */
  #buy-three .payment-body .credit-card-info{
    width: 390px !important;
  }
}

@media(min-width: 1200px){
  #payment-two-school .payment-body p{
    line-height: 1px;
  }

  #payment-two-school .navigation-content{
    min-height: 95px;
  }
}

@media(min-width: 992px){
  .payment-body .form-content.find-student input{
    width: 300px;
    margin-bottom: -10px;
  }
}

@media(min-width: 768px) and (max-width: 1200px){
  #find-school .payment-container .payment-body .form-check #license{
    margin-bottom: -10px;
  }
  #find-school .payment-container .payment-body .form-check label[for=license]{
    margin-left: 30px;
    margin-top: -15px;
  }
}

/* Landscape responsive hack fix for payment pages bg */
@media(max-width: 840px) and (orientation:landscape) {
  .payment-content-bg{
    background-repeat: repeat-y !important;
    margin-top: -20px;
    position: unset !important;
  }
}
