/* Eric Meyer's Reset CSS v2.0 - http://cssreset.com */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  margin: 0;
  padding: 0
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block
}

body {
  line-height: 1
}

ol,
ul {
  list-style: none
}

blockquote,
q {
  quotes: none
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: none
}

table {
  border-collapse: collapse;
  border-spacing: 0
}

* {
  box-sizing: border-box;
}

/* 
--------------------- BROWSER ANIMATION FIXES AND RENDERING OPTIMAZATION -------------------------
--------------------------------------------------------------------------------------------------
*/

.smooth-text {
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  text-rendering: optimizelegibility;
}

/* Add to body*/
.no-pixel-shift {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transform: translateZ(0) scale(1.0, 1.0);
  transform: translateZ(0) scale(1.0, 1.0);
}

.crisp-image {
  image-rendering: -o-crisp-edges;
  /* Opera */
  image-rendering: -webkit-optimize-contrast;
  /* Webkit (non-standard naming) */
  image-rendering: crisp-edges;
  -ms-interpolation-mode: nearest-neighbor;
  /* IE (non-standard property) */
}

.will-change {
  will-change: transform;
}

/* 
-------------------------------- GENERAL BANNER CLASSES ------------------------------------
--------------------------------------------------------------------------------------------
*/

#ad_id.my-ad {
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

#ad_id.my-ad.mrec {
  width: 320px;
  height: 480px;
}

.black-border {
  position: absolute;
  width: 320px;
  height: 480px;
  z-index: 30;
  border: 1px solid #000000;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 999;
}

#fader {
  position: absolute;
  width: 320px;
  height: 480px;
  background: #ffffff;
  pointer-events: none;
  z-index: 1000;
}

/*
-------------------------------- BRAND STYLES ----------------------------------------------
--------------------------------------------------------------------------------------------
*/

#main_image {
  background-image: url(../images/main_image.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: absolute;
  top: 8px;
  left: 8px;
  width: 304px;
  height: 225px;
  overflow: hidden;
  border-radius: 12px;
  transform-origin: center;
  z-index: 2;
}

#slide_one {
  position: absolute;
  left: 0px;
  top: 233px;
  width: 320px;
  height: 246px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: 1;
}

#slide_two {
  position: absolute;
  left: 0px;
  top: 233px;
  width: 320px;
  height: 246px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: -1;
  opacity: 0;
}

#slide_three {
  position: absolute;
  left: 0px;
  top: 233px;
  width: 320px;
  height: 246px;
  box-sizing: border-box;
  overflow: hidden;
  z-index: -1;
  opacity: 0;
}

#text_container {
  position: absolute;
  width: 320px;
  height: 80px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

#form_heading {
  font-size: 17px;
  line-height: 20px;
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  color: #333d4d;
}

#form_text {
  font-size: 13px;
  line-height: 15px;
  font-family: "Work Sans", sans-serif;
  font-weight: 500;
  color: #333d4d;
}

#form_container {
  top: 70px;
  width: 100%;
  height: 181px;
}

.form-group {
  position: relative;
  text-align: center;
}

.form-group input {
  width: 230px;
  padding: 11px 14px;
  font-family: "Work Sans", sans-serif;
  font-weight: 500;
  font-size: 12px;
  color: #353535;
  caret-color: #353535;
  background: transparent;
  border: none;
  border-bottom: 1px solid #b5b5b5;
  outline: none;
  transition: 0.3s ease;
  margin: 0 auto;
}

.form-group input::placeholder {
  color: #353535;
}

.form-group input::-webkit-input-placeholder {
  color: #353535;
}

.form-group input:-ms-input-placeholder {
  color: #353535;
}

.form-group input::-ms-input-placeholder {
  color: #353535;
}

.form-group input:focus {
  border-bottom: 1px solid #270677;
}

.form-group input:not(:focus):not(:placeholder-shown):invalid {
  border-bottom: 1px solid #ce0606;
}

#myForm.submitted input:invalid {
  border-bottom: 1px solid #ce0606;
}

.form-group.error input {
  border-bottom: 1px solid #ce0606 !important;
}

form button {
  font-size: 11px;
  font-family: "Work Sans", sans-serif;
  font-weight: 500;
  background: linear-gradient(90deg,
      #230872 0%,
      #5a2bbf 50%,
      #974bef 100%);
  color: #ffffff;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  height: 30px;
  border-radius: 9999px;
  padding: 0 26px;
  cursor: pointer;
  position: absolute !important;
  bottom: 21px;
  left: 0;
  right: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none !important;
  outline: none !important;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}

#form_button.error {
  background: #e74c3c !important;
  color: #ffffff;
}

.cta_a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  top: 0;
  left: 0;
  height: 30px;
}

.cta_b {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    height: 30px;
    width: fit-content;
    white-space: nowrap;
}

/* ----------------------------------------------------- */

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #353535 !important;
  transition: background-color 9999s ease-out 0s;
  font-family: "Work Sans", sans-serif;
}

.error-box {
  background: #ee525f;
  width: 284px;
  height: 63px;
  padding: 8px 10px;
  font-family: "Work Sans", sans-serif;
  font-weight: 500;
  color: #ffffff;
  font-size: 12px;
  line-height: 14px;
  border-radius: 6px;
  opacity: 0;
  transition: all 0.2s ease;
  position: absolute;
  top: 2px;
  left: 0;
  right: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 998;
}

/* show state */
.error-box.show {
  opacity: 1;
  transform: translateY(0);
}

/*
-------------------------------- FORM SUBMIT SUCCESS ----------------------------------------
---------------------------------------------------------------------------------------------
*/


#success_text_container {
  position: absolute;
  width: 320px;
  height: 250px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

#success_heading {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 26px;
  color: #333d4d;
}

#success_text {
  font-family: "Work Sans", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 21px;
  color: #333d4d;
}

/*
-------------------------------- FORM SUBMIT ERROR ----------------------------------------
---------------------------------------------------------------------------------------------
*/

#error_text_container {
  position: absolute;
  width: 320px;
  height: 250px;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

#error_heading {
  font-family: "Work Sans", sans-serif;
  font-weight: 700;
  font-size: 21px;
  line-height: 26px;
  color: #333d4d;
}

#error_text {
  font-family: "Work Sans", sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 21px;
  color: #333d4d;
  margin-bottom: 12px;
}

#try_again {
  width: 124px;
  height: 30px;
  cursor: pointer;
}

#call_us {
  width: 124px;
  height: 30px;
  cursor: pointer;
}

/*
-------------------------------- HELPER STYLES ----------------------------------------------
---------------------------------------------------------------------------------------------
*/

/* OPACITY HELPERS */

.invisible {
  opacity: 0;
}

/*. TYPOGRAPHY HELPERS */

.text-align-center {
  text-align: center;
}

/*. CENTERING HELPERS */

.absolute-center {
  position: absolute;
  margin: 0 auto;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

.center-block-element {
  margin: 0 auto;
}

.display-table-one {
  /*Add this to parent vertical center element*/
  display: table;

}

.display-table {
  /*Add this to parent vertical center element*/
  display: table;
  margin-left: auto;
  margin-right: auto;
}

.vertical-center {
  /*Add this to next child element of the .display-table element*/
  display: table-cell;
  vertical-align: middle;
}

/*. POSITIONING HELPERS */

.pos-a {
  position: absolute;
}

.pos-r {
  position: relative;
}

.top-0 {
  top: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.left-0 {
  left: 0;
}

.zero-scale {
  transform: scale(0);
}

/*. POSITIONING HELPERS STACKING ORDER */

/*. .z-i-1 = Z Index 1 */

.z-i-1 {
  z-index: 1;
}

.z-i-2 {
  z-index: 2;
}

.z-i-3 {
  z-index: 3;
}

.z-i-4 {
  z-index: 4;
}

.z-i-5 {
  z-index: 5;
}

.z-i-6 {
  z-index: 6;
}

.z-i-7 {
  z-index: 7;
}

.z-i-8 {
  z-index: 8;
}

.z-i-9 {
  z-index: 9;
}

.z-i-10 {
  z-index: 10;
}

.z-i-11 {
  z-index: 11;
}

.z-i-12 {
  z-index: 12;
}

/*. RESPONSIVE HELPERS */

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

/* 
-------------------------------- BANNER SPECIFIC STYLES ----------------------------------------------
------------------------------------------------------------------------------------------------------
*/

.mask {
  overflow: hidden;
  width: 100%;
}