/**
* CSS for 'payonline' application.
* Prior to April 2020 this was a full copy of yordasgroup.com CSS most of which was un-necessary.
* It has been cut down to required styles for this application.
* @author Andy Foote <a.foote@thereachcentre.com>
*/
@import url("https://fonts.googleapis.com/css?family=Ubuntu:400,500i,700");

html {
  position: relative;
  min-height: 100%; 
}

body {
  /* Margin bottom == footer height */
  margin-bottom: 90px;
  line-height: 1.6;
  font-family: 'Ubuntu', sans-serif; 
}

/* Yordas Group logo */
#siteLogo {
  width: 150px; 
  height: 150px;
}

/*
 * Footer (assets/embeds/footer.php)
 */
.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  /* Set the fixed height of the footer here */
  height: 90px;
}

.footer a {
  color: #3C3C3B;
  text-decoration: none;
  font-weight: bold; 
}

.footer .fa {
  margin-left: 10px; 
}

@media (max-width: 991px) {
  .footer {
    text-align: center; 
  }
}

.footer-bottom-gradient {
  height: 3px;
  background: #2A3180;
  /* For browsers that do not support gradients */
  background: -webkit-linear-gradient(left, #82ccf0, #2A3180);
  /* For Safari 5.1 to 6.0 */
  background: -o-linear-gradient(right, #82ccf0, #2A3180);
  /* For Opera 11.1 to 12.0 */
  background: -moz-linear-gradient(right, #82ccf0, #2A3180);
  /* For Firefox 3.6 to 15 */
  background: linear-gradient(to right, #82ccf0, #2A3180);
  margin-bottom: 15px; 
}


/* Generic spacing */

/* margin top */
.mt-10 {
  margin-top: 10px; 
}
.mt-25 {
  margin-top: 25px; 
}
.mt-45 {
  margin-top: 45px; 
}

/* margin bottom */
.mb-10 {
  margin-bottom: 10px;
}
.mb-25 {
  margin-bottom: 25px; 
}
.mb-45 {
  margin-bottom: 45px; 
}

/* margin left */
.ml-10 {
  margin-left: 10px; 
}

.no-padding {
  padding: 0; 
}

label.error {
  color: #f00; 
}


/**
* Override Bootstrap
*/
.btn-lg {
  padding: 7px 20px; 
}

.btn-primary {
  background-color: #022169;
  color: #fff;
  border: 2px solid #022169; 
}

.btn-default {
  /* @link https://stackoverflow.com/questions/22672368/how-to-make-a-transparent-html-button */
  background-color: transparent;
  background-repeat: no-repeat;
  border: 2px solid #fff;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  color: #fff; 
}

.btn-secondary {
  background-color: transparent;
  background-repeat: no-repeat;
  border: 2px solid #022169;
  cursor: pointer;
  overflow: hidden;
  outline: none;
  color: #022169; 
}

.btn-secondary:hover {
  background-color: #fff; 
}


/* Application specific styles */
.payonline {
  margin-top: 25px;
  margin-bottom: 25px;
}
.payonline h2 {
  font-weight: bold;
  color: #022169; 
}

/* Paid and unpaid colour markers */
.paid {
  color: #188038;
}
.unpaid {
  color: #e6362b;
}






/* 
 * Stripe
 * Copied (then modified) from https://github.com/stripe-samples/accept-a-card-payment/blob/master/using-webhooks/client/web/css/global.css
 */

.sr-main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  align-self: center;
  padding: 75px 50px;
  width: 400px;
  border-radius: 6px;
  box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
  0px 2px 5px 0px rgba(50, 50, 93, 0.1),
  0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
}

.sr-field-error {
  color: rgb(105, 115, 134);
  text-align: left;
  font-size: 13px;
  line-height: 17px;
  margin-top: 12px;
}

/* Inputs */
.sr-input,
input[type="text"] {
  /*border: 1px solid var(--gray-border);*/
  border-radius: 6px;
  padding: 5px 12px;
  /*height: 44px;*/
  width: 100%;
  transition: box-shadow 0.2s ease;
  background: white;
  -moz-appearance: none;
  -webkit-appearance: none;
  appearance: none;
}
.sr-input:focus,
input[type="text"]:focus,
button:focus,
.focused {
  box-shadow: 0 0 0 1px rgba(50, 151, 211, 0.3), 0 1px 1px 0 rgba(0, 0, 0, 0.07),
    0 0 0 4px rgba(50, 151, 211, 0.3);
  outline: none;
  z-index: 9;
}
.sr-input::placeholder,
  input[type="text"]::placeholder {
  color: #ccc;
}


.sr-combo-inputs-row {
  box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
    0px 2px 5px 0px rgba(50, 50, 93, 0.1), 0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
  border-radius: 7px;
}

/* Buttons and links */

/* Pay £X.xx button below card input */
#card-button {
  background: #0a721b;
  border-radius: 6px;
  color: white;
  border: 0;
  padding: 12px 16px;
  margin-top: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  box-shadow: 0px 4px 5.5px 0px rgba(0, 0, 0, 0.07);
  width: 100%;
}

#card-button:hover {
  filter: contrast(115%);
}

#card-button:active {
  transform: translateY(0px) scale(0.98);
  filter: brightness(0.9);
}

#card-button:disabled {
  opacity: 0.5;
  cursor: none;
}


/* Stripe Element placeholder */
.sr-card-element {
  padding-top: 12px;
}

/* Responsiveness */
@media (max-width: 720px) {
  .sr-root {
    flex-direction: column;
    justify-content: flex-start;
    padding: 48px 20px;
    min-width: 320px;
  }

  .sr-header__logo {
    background-position: center;
  }

  .sr-payment-summary {
    text-align: center;
  }

  .sr-content {
    display: none;
  }

  .sr-main {
    width: 100%;
    height: 305px;
    background: rgb(247, 250, 252);
    box-shadow: 0px 0px 0px 0.5px rgba(50, 50, 93, 0.1),
      0px 2px 5px 0px rgba(50, 50, 93, 0.1),
      0px 1px 1.5px 0px rgba(0, 0, 0, 0.07);
    border-radius: 6px;
  }
}

/* spinner/processing state, errors, animations */

.spinner,
.spinner:before,
.spinner:after {
  border-radius: 50%;
}

.spinner {
  color: #ffffff;
  font-size: 22px;
  text-indent: -99999px;
  margin: 0px auto;
  position: relative;
  width: 20px;
  height: 20px;
  box-shadow: inset 0 0 0 2px;
  -webkit-transform: translateZ(0);
  -ms-transform: translateZ(0);
  transform: translateZ(0);
}

.spinner:before,
.spinner:after {
  position: absolute;
  content: "";
}

.spinner:before {
  width: 10.4px;
  height: 20.4px;
  background: var(--accent-color);
  border-radius: 20.4px 0 0 20.4px;
  top: -0.2px;
  left: -0.2px;
  -webkit-transform-origin: 10.4px 10.2px;
  transform-origin: 10.4px 10.2px;
  -webkit-animation: loading 2s infinite ease 1.5s;
  animation: loading 2s infinite ease 1.5s;
}

.spinner:after {
  width: 10.4px;
  height: 10.2px;
  background: var(--accent-color);
  border-radius: 0 10.2px 10.2px 0;
  top: -0.1px;
  left: 10.2px;
  -webkit-transform-origin: 0px 10.2px;
  transform-origin: 0px 10.2px;
  -webkit-animation: loading 2s infinite ease;
  animation: loading 2s infinite ease;
}

@-webkit-keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
@keyframes loading {
  0% {
    -webkit-transform: rotate(0deg);
    transform: rotate(0deg);
  }
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

/* Animated form */
.sr-root {
  animation: 0.4s form-in;
  animation-fill-mode: both;
  animation-timing-function: ease;
}

/*.hidden {
  display: none;
}*/

@keyframes field-in {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0px) scale(1);
  }
}

@keyframes form-in {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
