/*!
 * Default CSS for PRI donation form
 * Copyright 2015 Public Radio International
 */

body {
	background: #fefefe;
	font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-size: 1.25em;
  line-height: 1.5em;
  color: #33333c;
  margin: 0; 
  padding: 0;
}

.visually-hidden {display: none;}

ol,ul {
	margin: 0;
	padding: 0;
	list-style-type: none;
}

.float-right {
	float: right;
}

.float-left {
	float: left;
}

.clear {
	clear: both;
}

.wrapper {
	padding: 0 12px 0 8px;
	margin: 0 auto;
	max-width: 640px;
}


/**** BEGIN HEADER ****/
#header {
	padding: 15px 10px 50px;
	text-align: center;
	border-bottom: 1px solid #e5e5e5;
	background: #f1f1f1;
}

.pri-logo {
	height: 30px;
}
.ac-logo {
	height: 70px;
}

.not-form #header {padding-bottom: 15px;}

h1 {
  text-align: center;
	font-size: 28px;
	line-height: 30px;
	color: #444;
	margin: 0 0 10px;
	padding: 40px 0 0;
	font-weight: bold;
}

h2 {  
	text-align: center;
	font-size: 20px;
	line-height: 26px;
	color: #444;
	margin: 0 0 10px;
	padding: 1em 0 0;
	font-weight: bold;}

.lede {
	text-align: center;
	font-size: 18px;
	line-height: 22px;
	margin: 0 0 25px;
	color: #444;
	font-style: italic;
}
p {	
	text-align: center;
	font-size: 18px;
	line-height: 22px;
	color: #444;
}
td {
	padding: 0 14px 0 0;
	text-align: left;
	font-size: 18px;
	line-height: 22px;
	color: #444;
}

#form-steps {
	padding: 10px 0 15px;
	width: 280px;
	margin-left: auto;
	margin-right: auto;
}

#form-steps  ol, #form-steps  ul {
	margin: 0;
	padding: 0;
}

#form-steps li {
	width: 92px;
	display: inline;
	float: left;
	cursor: default;
}

#form-steps li .title {
	color: #999;
	position: relative;
	top: 0px;
	font-size: 16px;
	font-weight: bold;
}

.step-line {
	position: absolute;
	margin: 37px 0 0 50px;
	height: 1px;
	width: 200px;
	background-color: #ccc;
	z-index: 0;
}

.step-active {
	color: #333;
	font-weight: 700;
}

#form-steps li.step-active .title {color: #666;}

.step-icon {
	margin: 0 0 0 32px;
	border-radius: 50%;
	width: 34px;
	height: 34px;
	padding: 7px;
	color: #fff;
	text-align: center;
	font-family: "Alegreya Sans", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
	font-size: 18px;
	font-style: italic;
	background-color: #ccc;
	background-image: none;
	position: absolute;
}

.step-icon-active {
	background-color: #81C341;
}

.step-icon-active:hover {
	background-color: #66a528;
    -webkit-transition: background-color .25s linear;
    -moz-transition: background-color .25s linear;
    -o-transition: background-color .25s linear;
    -ms-transition: background-color .25s linear;
    transition: background-color .25s linear;
}
/**** END HEADER ****/

.donate-step__number {
  position: relative;
  display: inline-block;
  height: 30px;
  width: 30px;
  margin: 0;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  -ms-border-radius: 15px;
  -o-border-radius: 15px;
  border-radius: 15px;
  background-color: #bbb;
  color: white;
  font-family: "Alegreya Sans", "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
  font-size: 18px;
  line-height: 30px;
  text-align: center;
  font-style: italic;
}
.donate-step__message {
	display: block;
	margin: 5px 0 0;
	font-weight: bold;
}
@media (min-width: 601px) {
  .donate-step__message {
		display: inline-block;
		margin: 0 0 0 5px;
  }
}

.checkbox-container {
  display: block;
  margin: 1em auto 0;
  text-align: center;
  width: 100%;
  clear: both;
}
.checkbox-container label {
	padding: 1em 0 .25em;
	font-size: 16px;
}
.checkbox-container .selectric-wrapper {
	width: 100%;
	float: none;
	margin: 0 auto;
	width: 240px;
}

/**** BEGIN MAIN ****/
#main {
	margin: 6px 0 20px 0;
}

.secure-page {
	float: right;
	padding: 0 6px 0 0;
	font-size: 14px;
	color: #5d5d5d;
	width: 100%;
	text-align: right;
	font-weight: bold;
}
.icon-padlock {
	display: inline-block;
	margin-top: -3px;
	margin-right: 3px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
	font-size: 18px;
	width: 100%;
	display: block;
	border: 1px solid #ddd;
	padding: .5rem;
	margin: 0;
	line-height: 25px;
	font-family: "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, "Nimbus Sans L", sans-serif;
	-webkit-transition: all 0.25s ease-in-out;
	-moz-transition: all 0.25s ease-in-out;
	-ms-transition: all 0.25s ease-in-out;
	-o-transition: all 0.25s ease-in-out;
}
/*.field-container.cc_code input[type="text"] {height: 22px;}*/
input[type=text]:focus, 
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
  box-shadow: 0 0 3px rgba(13, 141, 189, 1);
  border: 1px solid rgba(13, 141, 189, 1);
  background-color: #fff;
  color: #333;
}

input.alert-danger {
	border: 1px solid #EBCCD1;
}

.field-default label {
	font-size: 17px;
	font-weight: bold;
	display: inline-block;
	margin: 0 0 5px;
	padding: 0;
	width: 100%;
	color: #444;
}

select {
	padding: 8px;
}

ol.info {
	margin-left: 0.5rem;
	float: left;
}

.field-container {
	padding: 0;
	margin: 0 0 15px;
	display: inline-block;
	float: left;
	width: 100%;
}
.field-container.field-last {
	margin: 0;
}
@media (min-width: 601px) {
	.field-container.field-third {
		width: 33.333333%;
	}
	.field-container.field-third input[type="text"], .field-container.field-third input[type="password"] {
		width: 96%;
	}
	.field-container.field-half {
		width: 50%;
	}
	.field-container.field-half input[type="text"], .field-container.field-half input[type="password"] {
		width: 97%;
	}
	.field-container.field-full {
		width: 100%;
	}
	.field-container.field-full input[type="text"], .field-container.field-full input[type="password"] {
		width: 98.5%;
	}
}
.cc-accept {
	text-align: left;
	float: left;
	width: 100%;
	margin: 0 .5rem 15px;
}
.selectric-wrapper {
	width: 46%;
	float: left;
	margin-right: 1rem;
}
div.selectric-items li {
	font-size: 15px;
  padding: 5px;
}
.selectric p.label {
	font-style: normal;
	color: #444;
	font-weight: normal;
	height: 35px;
	line-height: 26px;
	margin-left: 0;
}

.field-card-expiration {
	width: 100px;
}

#form-amount {
	margin: 0;
	padding: 0;
}
.field-amount-button {
	margin: 0 2% 15px;
	padding: 0;
	width: 46%;
	float: left;
	position: relative;
	list-style: none;
}
@media (min-width: 601px) {
	.field-amount-button {
		width: 29%;
	}
}
.field-amount-button button {
  font-size: 20px;
  width: 99%;
  font-weight: bold;
  display: block;
  padding: 4% 0;
  margin: 0 .5rem;
  text-align: center;
  border-radius: 3px;
  cursor: pointer;
  height: 50px;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #ddd;
  background: #eee;
  color: #3485c5;
}
.field-amount-button button:active,
.field-amount-button .button-blue:focus,
.field-amount-button .button-blue {
	background-color: #2196f3;
	color: #fff;
	-webkit-transition: background-color .25s linear;
    -moz-transition: background-color .25s linear;
    -o-transition: background-color .25s linear;
    -ms-transition: background-color .25s linear;
    transition: background-color .25s linear;
}
.field-amount-button button:hover{
	background-color: #3485c5;
	color: #fff;
}
.donate-step__legend {
	text-align: center;
	margin: 15px 0;
	float: left;
	width: 100%;
	position: relative;
}

#amount_other {
	margin: 0 .5rem;
	text-align: center;
	border-radius: 3px;
	color: #3485c5;
	font-weight: bold;
	font-size: 20px;
	border: 1px solid #ddd;
	height: 50px;
	background: #eee;
}

/*#amount_other:focus {
	background-color: #2196f3;
	color: #fff;
	-webkit-transition: background-color .25s linear;
    -moz-transition: background-color .25s linear;
    -o-transition: background-color .25s linear;
    -ms-transition: background-color .25s linear;
    transition: background-color .25s linear;
}*/

.jvFloat label.placeHolder.active {
  position: absolute;
  z-index: 10;
  left: 15px;
  top: 13px;
  font-size: 13px;
  color: #555;
  font-weight: normal;
}

::-webkit-input-placeholder {
   color: #555;
   font-style: italic;
   font-weight: normal;
   font-size: 16px;
}

:-moz-placeholder { /* Firefox 18- */
   color: #555;  
   font-style: italic;
    font-weight: normal;
   font-size: 16px;
}

::-moz-placeholder {  /* Firefox 19+ */
   color: #555;
   font-style: italic;  
   font-weight: normal;
   font-size: 16px;
}

:-ms-input-placeholder {  
   color: #555;
   font-style: italic;  
    font-weight: normal;
   font-size: 16px;
}

/**** END MAIN ****/


/**** BEGIN BUTTONS ****/
.btn {
	margin: 3em 0 0;
	text-align: center;
	float: left;
	width: 100%;
	cursor: auto;
}
.btn:active {box-shadow: none} /* bootstrap */

.button-default {
	margin-bottom: 16px;
	border-radius: 8px;
	min-width: 240px;
	height: 50px;
	padding: 5px 15px;
	color: #fff;
	text-align: center;
	font-size: 18px;
	border-radius: 3px;
	font-weight: bold;
	background-color: #81C341;
	border-right: none;
	border-left: none;
	border-top: none;
	border-bottom: 1px solid #66a528;
}

.button-default:hover,
.button-default:active {
	background-color: #66a528;
    -webkit-transition: background-color .25s linear;
    -moz-transition: background-color .25s linear;
    -o-transition: background-color .25s linear;
    -ms-transition: background-color .25s linear;
    transition: background-color .25s linear;
}
/**** END BUTTONS ****/

/**** country-select ****/
.ui-autocomplete {
  padding: 0;
  list-style: none;
  background-color: #fff;
  width: 218px;
  border: 1px solid #B0BECA;
  max-height: 350px;
  overflow-x: hidden;
}
.ui-autocomplete .ui-menu-item {
  border-top: 1px solid #B0BECA;
  display: block;
  padding: 4px 6px;
  color: #353D44;
  cursor: pointer;
}
.ui-autocomplete .ui-menu-item:first-child {
  border-top: none;
}
.ui-autocomplete .ui-menu-item.ui-state-focus {
  background-color: #D5E5F4;
  color: #161A1C;
}


/* Mobile Modal */
.mobile-modal #header {padding: 15px;}
.mobile-modal h1 {padding-top: 15px;}
.mobile-modal #main .wrapper {padding: 0 15px;}
.mobile-modal .button {
  margin: 0 auto;
  display: block;
  width: 200px;
  padding: 15px 0 0;
  background-color: #4f83a5;
	border: 1px solid transparent;
	box-shadow: none;
	color: #fff;
	text-shadow: 0 1px 0 #666;
}
.mobile-modal .button:hover,
.mobile-modal .button:active {
	text-decoration: none;
}