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

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

/*
 * Remove text-shadow in selection highlight
 *
 * 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;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers
 */

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;
}

/* ==========================================================================
    Custom styles
   ========================================================================== */

.error-msg {
    display: none;
    position: absolute;
    bottom: -5px;
    color: #A12225;
    font-size: 12px;
}

.pension-body {
  margin: 0 auto;
}

.pension-wrapper,
.pension-results-wrapper {
  background-color: #fff;
}

.pension-header {
}

.pension-tax-simulation {
	background: #f2f2f2;
	padding: 20px;
}

.pension-title {
  font-family: "Georgia", serif;
  font-weight: normal;
  font-style: italic;
  font-size: 35px;
  color: #404041;
  line-height:45.5px;
  margin-top: 0;
}

.pension-header-description {
  font-family: "Arial", Helvetica, sans-serif;
  font-size: 16px;
  color: #404041;
  line-height: 24px;
}

.pension-marital-status-wrapper h2 {
  font-family: "Georgia", serif;
  font-weight: normal;
  font-style: italic;
  font-size: 24px;
  color: #000000;
}

.pension-label {
  font-family: "Georgia";
  font-size: 16px;
  color: #000000;
  font-weight: normal;
  position: relative;
}

.pension-input {
  border: 1px solid #B3BAC7;
  width: 180px;
  height: 30px;
  padding: 5px 10px;
  border-radius: 0;
}

.pension-select {
   background: transparent;
   width: 300px;
   height: 40px;
   -webkit-appearance: none;
   -moz-appearance: none;
   appearance: none;
   background: #FFF url("../img/drop-arrow.png") 96% / 5% no-repeat;
}
.select-placeholder {
  color: #ccc;
}
.pension-single-input {
    transition: left .2s ease;
    position: relative;
    position: relative;
    padding-bottom: 20px;
}
.pension-single-input-title {
  font-family: "georgia", serif;
  font-size: 19px;
  font-style:italic;
  text-transform: capitalize;
  color: #A12225;
}

.pension-information-wrapper {
  margin-top: 30px;
}

.half-form {
  width: 48.99%;
  float: left;
  box-sizing: border-box;
}

.separator {
  border-left: 1px solid #A12225;
}

.half-form.spouse-optional {
    padding-left: 80px;
    display: none;
}

.options-switch {
  display: inline-block;
  vertical-align: middle;
  text-align: left;
}
.options-switch .switch-label {
  display: inline-block;
  width: 21px;
  color: #404041;
  font-size: 15px;
  line-height: 32px;
  font-weight: 100;
  cursor: pointer;
  transition: left .2s ease;
}
.switch {
  display: inline-block;
  vertical-align: middle;
  background: #91959A;
  border-radius: 32px;
  height: 24px;
  position: relative;
  width: 44px;
  margin-left: 15px; 
  margin-right:15px;
  }

.switch  input {
  height: 24px;
  left: 0;
  opacity: 0;
  position: absolute;
  top: 0;
  width: 44px;
  z-index: 2;
  cursor: pointer;
}

.switch input:checked + .toggle {
  left: 20px;
}


.switch input:checked {
  z-index: 0;
}

.switch .toggle {
  background: #fff;
  border-radius: 50%;
  height: 20px;
  left: 2px;
  position: absolute;
  top: 2px;
  -webkit-transition: left .2s ease;
  -moz-transition: left .2s ease;
  -ms-transition: left .2s ease;
  -o-transition: left .2s ease;
  transition: left .2s ease;
  width: 22px;
  z-index: 1;
}

.current-tax-wrapper {
  margin-top: 30px;
}
.form-submit-wrapper {
  margin-top: 40px;
}
.form-legend {
  font-family: "Arial", sans-serif;
  font-size: 12px;
  color: #000;
  font-style: italic;
}

.pension-form-button {
  width: 220px;
  height: 60px;
  text-align: center;
  margin-top:20px;
  background-color: transparent;
  border: 1px solid #A32020;
  font-family: "Arial", sans-serif;
  font-weight:bold;
  font-size: 16px;
  color: #A32020;
   -webkit-transition: all .5s ease;
  -moz-transition: all .5s ease;
  -ms-transition: all .2=5s ease;
  -o-transition: all .5s ease;
  transition: all .5s ease;
}

.pension-form-button:hover, 
.pension-form-button:focus {
	background-color: #A32020;
	color: #FFF;
	border: 1px solid #A32020;
}

.pension-results-wrapper {
  margin-top: 40px;
  display: none;
}

.pension-results-container h2,
.pension-results-description {
  /* Your results: */
  font-family: "Georgia";
  font-size: 18px;
  color: #000000;
}

.pension-results-description {
  font-size: 16px;
  color: #404041;
}

.pension-results-table {
  display: table;
}

.pension-table-cell {
  display: table-cell;
  vertical-align: middle;
  margin: 0 auto;
  text-align: center;
  width: 215px;
  height: 160px;
  border: 1px solid #A12225;
  box-sizing: border-box;
}
.pension-table-p {
  font-family: "ArialMT";
  font-size: 16px;
  color: #8E8E92;
  line-height: 10px;
}

.pension-table-span,
.pension-years-span {
  font-family: "Georgia";
  font-weight: bold;
  font-size: 24px;
  display: inline-block;
  padding-right: 10px;
  color: #A12225;
}

.pension-years-span {
  color: #000;
  display: inline-block;
  padding-right: 5px;
  font-size: 36px;
  font-weight: lighter;
}

.table-legend {
  margin-top: 30px;
}

.pension-info-circle {
  position: relative;
  bottom: 1px;
  display: inline-block;
  background-color: #A12225;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  box-sizing: border-box;
  margin-left: 10px;
  font-size: 10px;
  color: #fff;
  text-align: center;
  font-family: "Georgia";
  font-weight: 200;
  line-height: 16px;
  cursor: pointer;
}

.pension-tooltip {
  position: absolute;
  transform: translate(9%,-50%);
  top: 50%;
  width: 300px;
  z-index: 9;
  background-color: rgba(0, 0, 0, 0.9);
  border-radius: 2px;
  box-sizing: border-box;
  padding: 20px 15px;
  font-family: "Georgia";
  font-size: 13px;
  color: #FFFFFF;
  letter-spacing: 0;
  line-height: 16px;
  font-weight: 300;
  display: none;
}

.pension-tooltip p {
  position: relative;
  text-align: left;
  font-weight: 300;
  font-family: "Arial";
  overflow: hidden;
  text-overflow: ellipsis;
}

.pension-tooltip a {
  text-decoration: underline;
  font-weight: 300;
  font-family: "Arial";
  color: #fff;
  transition: 0.2s all;
}

.pension-tooltip a:hover {
  color: #A12225;
}

.pension-tooltip-arrow-left {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right:10px solid rgba(0, 0, 0, 0.9);
}
.pension-optional-self-income {
    display: none;
}
.pension-optional-spouse-income {
    display: none;
}

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

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers
 */

.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
 */

.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
 */

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

.clearfix:after {
    clear: both;
}



@media only screen and (min-width: 900px) {
	.half-form {
		display:block;
	}
}

@media all and (max-width: 750px) {
	.half-form {
		float:none;
		width:100%;
		display:block;
	}
	.half-form.spouse-optional {
		padding-left: 0px;
	}
	.separator {
		border-left:0;
	}
}

@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:
   ========================================================================== */

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

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

    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:
     */

    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;
    }
}
