/*
 *  Remodal - v1.1.0
 *  Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
 *  http://vodkabears.github.io/remodal/
 *
 *  Made by Ilya Makarov
 *  Under MIT License
 */

/* ==========================================================================
   Remodal's default mobile first theme
   ========================================================================== */

.remodal {
  text-shadow: 0px 1px 0px rgba(0,0,0,0.12);
}

/* Default theme styles for the background */

.remodal-bg.remodal-is-opening,
.remodal-bg.remodal-is-opened {
  -webkit-filter: blur(3px);
  filter: blur(3px);
}

/* Default theme styles of the overlay */

.remodal-overlay {
  /* background: rgba(43, 46, 56, 0.9);*/
  /* background: rgba(0, 0, 0, 0.8);*/
  background: RGBA(7, 7, 9, 0.65);

}

.remodal-overlay.remodal-is-opening,
.remodal-overlay.remodal-is-closing {
  -webkit-animation-duration: 0.3s;
  animation-duration: 0.3s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.remodal-overlay.remodal-is-opening {
  -webkit-animation-name: remodal-overlay-opening-keyframes;
  animation-name: remodal-overlay-opening-keyframes;
}

.remodal-overlay.remodal-is-closing {
  -webkit-animation-name: remodal-overlay-closing-keyframes;
  animation-name: remodal-overlay-closing-keyframes;
}

/* Default theme styles of the wrapper */

.remodal-wrapper {
  padding: 10px 10px 0;
}

/* Default theme styles of the modal dialog */

.remodal {
  box-sizing: border-box;
  width: 88%;
  margin-bottom: 10px;
  padding: 2%;

  -webkit-transform: translate3d(0, 0, 0);
  transform: translate3d(0, 0, 0);

  color: #2b2e38;
  background: #fff;
}

.remodal.remodal-is-opening,
.remodal.remodal-is-closing {
  -webkit-animation-duration: 0.3s;
  animation-duration: 0.3s;
  -webkit-animation-fill-mode: forwards;
  animation-fill-mode: forwards;
}

.remodal.remodal-is-opening {
  -webkit-animation-name: remodal-opening-keyframes;
  animation-name: remodal-opening-keyframes;
}

.remodal.remodal-is-closing {
  -webkit-animation-name: remodal-closing-keyframes;
  animation-name: remodal-closing-keyframes;
}

/* Vertical align of the modal dialog */

.remodal,
.remodal-wrapper:after {
  vertical-align: middle;
}

/* Special Styling */

.remodal {
	padding: 1rem 2rem;
	max-width: 500px;
}

.remodal h3 {
	text-transform: uppercase;
	letter-spacing: 2px;
	font-size: 1.4rem;
	font-weight: 900;
    margin-bottom: 0.5rem;
}

.remodal p {
	padding: 0rem 2rem;
    max-width: 380px;
    margin: 1rem auto 1rem;
    line-height: 1.6;
}


/* Form */

.remodal .stay-updated {
    max-width: 300px;
    margin: 3rem auto 0;
}

.remodal form {
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-flow: row wrap;
            flex-flow: row wrap;
    -ms-flex-wrap: row wrap;
        flex-wrap: row wrap;
    width: 100%;
    margin: 0 auto 1rem;
}

.remodal form input {
	outline: none;
    padding: 1rem 1rem;
    border-radius: 0;
}

.remodal form input[type="text"],
.remodal form input[type="number"],
.remodal form input[type="email"] {
	background: #eeeeee;
	color: #4c5057;
	border: none;
  border-bottom: 1px solid rgba(0,0,0,0.14);
	font-size: 0.8rem;
	font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
	font-style: italic;
  box-sizing: border-box;
	-webkit-appearance: none;
    -webkit-box-flex: 1;
        -ms-flex: 1 0 100%;
            flex: 1 0 100%;
}

.remodal form input[type="text"]:focus,
.remodal form input[type="number"]:focus,
.remodal form input[type="email"]:focus {
  border-bottom-color: rgba(0,0,0,0.4);
}

.remodal form input[type="submit"] {
    -webkit-box-flex: 1;
        -ms-flex: 1 0 100%;
            flex: 1 0 100%;
	text-transform: uppercase;
	border: none;
	font-size: 0.8rem;
	font-family: 'Lato', 'Helvetica', 'Arial', sans-serif;
	font-weight: 900 !important;
	background: #ed2323;
    color: white;
	cursor: pointer;
    position: relative;
    top: 0px;
    left: 0;
	-webkit-appearance: none;
}

.remodal form label {
	display: block;
	margin: 1rem auto;
	max-width: 370px;
	text-align: center !important;
	width: 100%;
  font-weight: normal;
}
.remodal form label a { color: black; display: block; opacity: 0.5; margin-top: 0.618rem; }
.remodal form label a:hover { opacity: 0.8; }
.remodal form label:first-of-type {
    display: block !important;
}

.remodal form label.error {
	color: #D13F3F;
}
.remodal form label.error a {
	text-decoration: underline;
	text-transform: capitalize;
}

.remodal form.success input[type="submit"] {
	background: #1AA439 url(../images/ok.svg) no-repeat center center;
	color: white;
	text-indent: -9999px;
	padding: 0.8rem 1.5rem 0.8rem !important;
}

.remodal form.error input[type="submit"] {
	background: #D13F3F url(../images/x-white.svg) no-repeat center center;
	color: white;
	text-indent: -9999px;
	padding: 0.8rem 1.5rem 0.8rem !important;
}

.remodal ul.action-buttons {
	padding: 0;
	margin: 0 auto 1.392rem;
	list-style: none;
	text-align: center;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  max-width: 300px;
}
.remodal ul.action-buttons li:last-child {
  -webkit-box-flex: 0;
      -ms-flex: 0 1 100%;
          flex: 0 1 100%;
}
.remodal ul.action-buttons li {
  display: inline-block;
  max-height: 30px;
  margin: 1rem auto;
  -webkit-box-flex: 0;
      -ms-flex: 0 1 auto;
          flex: 0 1 auto;
}
.remodal ul.action-buttons li a {
  text-align: center;
  display: block;
  max-width: 130px;
  margin: 0 auto;
}
.remodal ul.action-buttons li a img { display: block; width: 100%; margin: 0 auto; }


/* Close button */

.remodal-close {
  position: absolute;
  top: -2rem;
  right: -2rem;

  display: block;
  overflow: visible;

  width: 35px;
  height: 35px;
  margin: 0;
  padding: 0;

  cursor: pointer;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  text-decoration: none;

  color: #95979c;
  border: 0;
  outline: 0;
  background: transparent;
}

.remodal-close:hover,
.remodal-close:focus {
  color: #ffffff;
}

.remodal-close:before {
  font-family: Arial, "Helvetica CY", "Nimbus Sans L", sans-serif !important;
  font-size: 25px;
  line-height: 35px;

  position: absolute;
  top: 0;
  left: 0;

  display: block;

  width: 35px;

  content: "\00d7";
  text-align: center;
}

/* Dialog buttons */

.remodal-confirm,
.remodal-cancel {
  font: inherit;

  display: inline-block;
  overflow: visible;

  min-width: 110px;
  margin: 0;
  padding: 12px 0;

  cursor: pointer;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
  text-align: center;
  vertical-align: middle;
  text-decoration: none;

  border: 0;
  outline: 0;
}

.remodal-confirm {
  color: #fff;
  background: #81c784;
}

.remodal-confirm:hover,
.remodal-confirm:focus {
  background: #66bb6a;
}

.remodal-cancel {
  color: #fff;
  background: #e57373;
}

.remodal-cancel:hover,
.remodal-cancel:focus {
  background: #ef5350;
}

.remodal-learn-more {
  color: #5bb4ff;
  text-transform: lowercase;
}
/* Remove inner padding and border in Firefox 4+ for the button tag. */

.remodal-confirm::-moz-focus-inner,
.remodal-cancel::-moz-focus-inner,
.remodal-close::-moz-focus-inner {
  padding: 0;

  border: 0;
}

/* Keyframes
   ========================================================================== */

@-webkit-keyframes remodal-opening-keyframes {
  from {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);

    opacity: 0;
  }
  to {
    -webkit-transform: none;
    transform: none;

    opacity: 1;
  }
}

@keyframes remodal-opening-keyframes {
  from {
    -webkit-transform: scale(1.05);
    transform: scale(1.05);

    opacity: 0;
  }
  to {
    -webkit-transform: none;
    transform: none;

    opacity: 1;
  }
}

@-webkit-keyframes remodal-closing-keyframes {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);

    opacity: 1;
  }
  to {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);

    opacity: 0;
  }
}

@keyframes remodal-closing-keyframes {
  from {
    -webkit-transform: scale(1);
    transform: scale(1);

    opacity: 1;
  }
  to {
    -webkit-transform: scale(0.95);
    transform: scale(0.95);

    opacity: 0;
  }
}

@-webkit-keyframes remodal-overlay-opening-keyframes {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes remodal-overlay-opening-keyframes {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@-webkit-keyframes remodal-overlay-closing-keyframes {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

@keyframes remodal-overlay-closing-keyframes {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Media queries
   ========================================================================== */

@media only screen and (max-width: 599px) {
    .remodal p br { display: none; }
}
@media only screen and (min-width: 641px) {
  .remodal {
    max-width: 560px;
  }
  .remodal p span {
    display: block;
  }
}

/* IE8
   ========================================================================== */

.lt-ie9 .remodal-overlay {
  background: #2b2e38;
}

.lt-ie9 .remodal {
  width: 700px;
}

/* Text Me */

.text-me {
  margin: 3rem auto 2rem;
}

.linkTextingWidget .linkTextingInner {
  width: 100%;
}

.linkTextingWidget .linkTextingInput {
  padding: 0 7px 0 48px;
}

.linkTextingWidget {
  margin-bottom: 0.618rem;
}
