/*! HTML5 Boilerplate v5.3.0 | MIT License | https://html5boilerplate.com/ */

/*
 * What follows is the result of much research on cross-browser styling.
 * Credit left inline and big thanks to Nicolas Gallagher, Jonathan Neal,
 * Kroc Camen, and the H5BP dev community and team.
 */

/* ==========================================================================
   Base styles: opinionated defaults
   ========================================================================== */

html {
    color: #222;
    font-size: 1em;
    line-height: 1.4;
}

html, body {
	overflow:auto;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * These selection rule sets have to be separate.
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid #ccc;
    margin: 1em 0;
    padding: 0;
}


a, a:hover {
	text-decoration: none !important;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 0;
    margin: 0;
    padding: 0;
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: 0.2em 0;
    background: #ccc;
    color: #000;
    padding: 0.2em 0;
}

/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * http://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when navigated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (min-width: 35em) {
    /* Style adjustments for viewports that meet the condition */
}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after,
    *:first-letter,
    *:first-line {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: none;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre,
    blockquote {
        border: 1px solid #999;
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    img {
        max-width: 100% !important;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }

}

/* ==========================================================================
   MBAIS Customisation
   ========================================================================== */
   
   .header {
	   max-height:85px;
	   padding:15px;
	   min-height: 75px;
   }
   .header .button {
	   float:right;
	   position:absolute;
	   right:15px;
   }
   .button {
	    display: inline-block;
		padding: 10px 15px;
		color: #ffffff;
		text-align: center;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: .1rem;
		text-transform: uppercase;
		text-decoration: none;
		white-space: nowrap;
		background-color: #1f4594;
		border-radius: 10px;
		border: 2px solid #1f4594;
		cursor: pointer;
		box-sizing: border-box;
   }
   .button:hover {
		color: #1f4594;
		background-color: transparent;
		border: 2px solid #1f4594;
	    text-decoration: none;
   }
  .button-white {
	    display: inline-block;
		padding: 10px 15px;
		color: #1f4594;
		text-align: center;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: .1rem;
		text-transform: uppercase;
		text-decoration: none;
		white-space: nowrap;
		background-color: #ffffff;
		border-radius: 10px;
		border: 2px solid #ffffff;
		cursor: pointer;
		box-sizing: border-box;
   }
	.button-white-reversed {
        display: inline-block;
        padding: 10px 15px;
        color: white;
        text-align: center;
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .1rem;
        text-transform: uppercase;
        text-decoration: none;
        white-space: nowrap;
        background-color: transparent;
        border-radius: 10px;
        border: 2px solid white;
        cursor: pointer;
        box-sizing: border-box;
    }
	.button-white-reversed:hover {
		color: #ffffff;
		background-color: #F79722;
		border: 2px solid #F79722;
	    text-decoration: none;
   }
   .button-white:hover {
		color: #ffffff;
		background-color: transparent;
		border: 2px solid #ffffff;
	    text-decoration: none;
   }
  .button-reversed {
	    display: inline-block;
		padding: 10px 15px;
		color: #1f4594;
		text-align: center;
		font-size: 12px;
		font-weight: 600;
		letter-spacing: .1rem;
		text-transform: uppercase;
		text-decoration: none;
		white-space: nowrap;
		background-color: #ffffff;
		border-radius: 10px;
		border: 2px solid #1f4594;
		cursor: pointer;
		box-sizing: border-box;
   }
   .button-reversed:hover {
		color: #ffffff;
		background-color: #1f4594;
		border: 2px solid #1f4594;
	    text-decoration: none;
   }
   #video {
	   position:relative;
   }
   .video-text-panel {
	   position:absolute;
	   top: 50%;
	   -webkit-transform: translateY(-50%);
	   -ms-transform: translateY(-50%);
	   transform: translateY(-50%);
	   z-index:3;
	   text-align:center;
	   width:100%;
	   padding:3%;
   }
   .video-text-panel-inner {
	   position: relative;
	   max-width: 750px;
	   margin: auto;
   }
   .cta {
	   color:#F79722;
	   text-decoration:none;
	   margin-bottom:10px;
	   letter-spacing: .1rem;
   }
   .overlay {
	   position:absolute;
	   width:100%;
	   height:100%;
	   background-color:#1f4594;
	   opacity:0.8;
	   z-index:2;
   }
   .no-video {
	   width:100%;
	   height:70vh;
	   background-image:url(../img/the-broker-you-own-background.jpg);
	   background-position:center;
	   background-repeat:no-repeat;
	   background-size:cover;
   }
   #video-play {
	   position: relative;
	   padding-bottom: 56.25%;
	   padding-top: 0px;
	   height: 0;
	   display:none;
   }
   #video-play iframe {
	   position: absolute;
	   top: 0;
	   left: 0;
	   width: 100%;
	   height: 100%;
	}
   .container {
	   max-width:960px;
	   margin-left:auto;
	   margin-right:auto;
	   margin-top:40px;
	   margin-bottom:40px;
	   padding:30px;
   }
   .column {
	   display:inline-block;
	   width:30%;
	   margin-left:4%;
	   margin-top:40px;
	   margin-bottom:40px;
	   vertical-align:top;
   }
   .centre {
	   text-align:center;
   }
   .left {
	   text-align:left;
   }
   .right {
	   text-align:right;
   }
   .no-margin {
	   margin: 0;
   }  
   .no-padding {
	   padding: 0;
   }
   p, h1, h2, h3, h4, h5, h6 {
	   font-style: normal;
	   text-rendering: optimizeLegibility;
	   margin-top: 0.2rem;
	   margin-bottom: 0.5rem;
	   letter-spacing:0px;
   }
   h1, h2, h3, h4, h5, h6 {
	   font-family: din-2014, Helvetica, Arial, sans-serif;
   }
   p {
	   font-family: 'Lato', Helvetica, Arial, sans-serif;
	   font-weight: 300;
	   padding-bottom: 10px;
   }
   h2 {
	   font-size:3rem;
       color:#F79722;
       line-height:1.1;
	   text-transform: uppercase;
	   letter-spacing: 1.5px;
	   font-weight: 200;
   }
   h3 {
	   font-size:1.8rem;
	   line-height:1.2;
       color:#1f4594;
       margin-bottom: 15px;
	   letter-spacing: .3px;
	   font-weight: 600;
   }
   h4 {
	   font-size:1.4rem;
	   line-height:1.1;
       color:#1f4594;
	   letter-spacing: .3px;
	   font-weight: 600;
	}
   label {
	   font-family: din-2014, Helvetica, Arial, sans-serif;
	   font-size:1.2rem;
	   letter-spacing: 1px;
   }
   input.full-width {
	   width: 100%;
	   padding: 10px;
   }
   .bold {
	   font-weight: 700;
   }
   .orange {
    	color:#F79722;
   }
   .tag {
       font-size: 14px;
	   letter-spacing: 0.5px;
	   margin-bottom: 5px;
   }
   .blue {
        color:#1f4594;
   }
   .white-background {
        background-color: white;
   }
   .card-container {
	   padding: 2px 0px;
   }
   .card-container h2 {
	   padding-bottom: 30px;;
   }
   .card-panel {
    padding: 20px;
    -moz-border-radius: 12px;
    -webkit-border-radius: 12px;
    border-radius: 12px;
   }
   .card {
       padding: 20px 25px;
	   -moz-border-radius: 12px;
	   -webkit-border-radius: 12px;
	   border-radius: 12px;
   }
   .card button {
	   width: auto;
	   max-width: 145px;
   }
   .grey-background {
       background-color: #E9E7E7;
   }
   .blue-background {
       background-color: #1f4594;
   }
   .product {
	   position:relative;
       text-align:left;
	   margin-bottom: 30px;
   }
   .tick {
       float: left;
	   width: 42px;
   }
   input {
       min-height: 36px;
       border-radius: 5px;
       border: none;
   }
   .text {
       display: block;
	   font-size:1.3rem;
	   line-height:1.2;
	   color:#1f4594;
   }
   .center {
       text-align: center;
   }
   .angle-banner {
	   -ms-transform:rotate(-2deg);
	   -webkit-transform:rotate(-2deg);
	   transform:rotate(-2deg);
	   transform-origin: bottom left;
	   margin-bottom:-70px;
   }
   .tag-line {
	   padding:20px;
	   margin-top:4px;
	   margin-bottom:4px;
	   background-color:#F79722;
   }
   .tag-line-border {
	   width:100%;
	   border-top:dashed 4px #F79722;
   }
   .tag-line h3 {
	   font-family: 'Permanent Marker', Helvetica, Arial, sans-serif;
	   color:#ffffff;
	   letter-spacing:0.05rem;
	   font-size:1.3rem;
   }
   .contact-column {
	   display:inline-block;
	   width:30%;
	   margin-left:4%;
	   vertical-align:bottom;
   }
   .link {
	   text-decoration:none;
   }
   .phone-number {
	   color:#F79722;
	   margin-bottom: 5px;
   }
   .footer-logo {
	   width:100%;
	   height:26%;
	   margin-top:20px;
   }
   .orange-form {
       color: white;
       background-color: #F79722;
	   -moz-border-radius: 12px;
	   -webkit-border-radius: 12px;
	   border-radius: 12px;
       padding: 20px 35px 35px;
   }
   .orange-form h2, .orange-form p {
       color: white;
    }
   .orange-form hr {
	   border: none;
	   border-top: white solid 1px;
	   margin-top: 10px;
   }
    .field label {
        display: inline-block;
    }
    .Actions {
        margin-top: 100px;
    }
    ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
    }
    .row {
        margin-top: 10px;
    }
    .container {
        max-width: 1260px !important;
    }
    .inline-block {
        display: inline-block;
    }
   .signature img {
	   width: 150px;
	   margin-right: 20px;
   }
   #state-manager-mobile img {
        /*background-image: url("../img/joe-keiper.png");
        background-repeat: no-repeat;
        background-position: 70% 0;
        min-height: 300px;
        background-size: 70%;*/
        max-width: 450px;
   }
   #first-card, #second-card, #third-card {
	   display: none;
   }
   .find-out-more-btn {
       min-width: 250px;
   }

   .row-eq-height {
    display: flex;
    flex-wrap: wrap;
  }
  .content {
      height: 100%;
  }

@media only screen and (max-width: 768px) {
    .find-out-more-btn {
        min-width: 100px;
        margin-bottom: 50px;
    }
    .signature-joe {
        margin-bottom: 30px;
    }
    .mbais-logo {
        width: 150px;
        height: 40px;
    }
    .same-row {
        display: inline-block !important;
    }
    .signature {
        min-width: 250px;
        display: inline-block !important;
		text-align: center;
    }
    .signature img {
        width: 100px;
        margin: 0;
        display: inline-block !important;
    }
    .find-out-more-btn {
        margin-bottom: 25px;
    }
    #extra {
        margin-top: 0 !important;
    }
	h2 {
		font-size: 2rem;
	}
    #nick-morgan {
        margin-top: 0 !important;
        width: 60%;
    }}


@media only screen and (max-width: 1400px) {
    .signature-joe {
        margin-bottom: 30px;
    }
	.signature {
        display: block !important;
    }
    .signature img {
        display: inline-block !important;
    }
    .find-out-more-btn {
        margin-bottom: 15px;
    }
    #nick-morgan {
        margin-top: 0 !important;
        width: 80%;
    }
}

@media only screen and (max-width: 1800px) {
    .find-out-more-btn {
        min-width: 250px;
    }
}

.fa-user-tie, .fa-pencil-ruler, .fa-handshake {
    font-size: 60px;
    margin:20px;
}

/* MODAL CSS */

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 9; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
  }
  
  /* Modal Content/Box */
  .modal-content {
    background-color:#F79722;
    margin: 5% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 60%; /* Could be more or less, depending on screen size */
	max-width: 900px;
  }
  
  /* The Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    visibility: hidden;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }

  .mc-field-group {
      margin-bottom: 15px;
      width: 100%;
  }
  .mc-field-group label{
    width: 40%;
  }
  .mc-field-group input{
    width: 50%;
    padding-left: 10px;
    color: #1f4594;
    }
  .yellow-banner {
        background-color: #F79722;
        color: white;
    }