/* FORM */

form, fieldset, input, button, select, label {
	box-sizing: border-box;
	font-size: calc(12px + 0.4vw);
	font-family: sans-serif;
}
form {
	padding: 2vh 2% 1vh;
	background: #fff;
	color: var(--text-color);
	min-width: 300px;
	display: none;
	border: 1px solid rgba(0,0,0,0.03);
	box-shadow: 4px 4px 6px rgba(0,0,0,0.1)
	/* opacity: 1 !important; */
}
.page.rounded form {
	border-radius: 5px;	
}
.form-info {
	background:#f1f1f1; 
	padding: 2%;
	margin: 0 2%;
}
fieldset {
	padding: 1.5vh 3% ;
	position: relative;
}
.fieldNote {
	padding: 0 3%;
	margin-top: -1.5vh;
	margin-bottom: 2.5vh;
	font-size: calc(12px + 0.1vw);
}
label  {
	display: block;
	text-align: left;
}
input[type=checkbox]+label, 
input[type=radio]+label {
	display: inline;
}
input[type=radio]+label {
	margin-right: 5em;
}

input[type=button],input[type=submit] {
	-webkit-appearance: none !important;
	-moz-appearance: none;
	appearance: none;
}

input[type=text], 
input[type=email], 
input[type=password],
input[type=number],
input[type=tel],
textarea,
select
{
	display: block;
	padding: 2%;
	border: 2px solid #ccc;
	box-sizing: border-box;
	width: 100%;	
	border-radius: 3px;
	font-size: inherit;
}

select {
	background: #fff;
}

.fancy-select {
	position: relative;
	display:inline-block;
}

.fancy-select select {
	-webkit-appearance: none !important;
	-moz-appearance: none;
	appearance: none;
}

.fancy-select select select::-ms-expand {
    display: none;
}

.fancy-select i {
	position: absolute;
	right: 20px;
	top: calc(50% - 13px);
	width: 16px;
	height: 16px;
	display: block;
	border-left:4px solid #bbb;
	border-bottom:4px solid #bbb;
	transform: rotate(-45deg); /* Giramos el cuadrado */
	transition: all 0.25s ease;
}

.fancy-select i:focus {
	border-left:4px solid #999;
	border-bottom:4px solid #999;
}

input[type=text]:focus, 
input[type=email]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=tel]:focus,
textarea:focus,
select:focus
{
	border-color: #999;
	outline: none;
	transition: 0.3s;
}

input[type=checkbox], 
input[type=radio] {
    position: absolute;
    z-index: -1;
    opacity: 0;
}
input[type=checkbox]+label, 
input[type=radio]+label {
    display: inline-block;
    align-items: center;
    user-select: none;
}
input[type=checkbox]+label a, 
input[type=radio]+label a {
	display: inline-block !important;
	padding: 0 0.3rem;
	font-weight: bold;
}
input[type=checkbox]+label:before, 
input[type=radio]+label:before {
    content: '';
    display: inline-block;
    width: 1em;
    height: 1em;
    flex-shrink: 0;
    flex-grow: 0;
    border: 2px solid #bbb;
    border-radius: 0.25em;
    margin-right: 0.5em;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 50% 50%;
    background-color: #fff;
    transition: all .2s ease-in-out;	
	font-size: 0.75rem;
	vertical-align: -0.2em
}
input[type=radio]+label:before {
	border-radius: 1em;
}
input[type=checkbox]+label:hover:before, input[type=checkbox]+label:focus::before ,
input[type=radio]+label:hover:before, input[type=radio]+label:focus::before {
    background-color: transparent;
}
input[type="checkbox"]:focus + label:before,
input[type="radio"]:focus + label:before{
  outline: 1px dotted;
}
input[type=checkbox]:checked+label::before ,
input[type=radio]:checked+label::before {
    border-color: var(--first-brand-color);
    background-color: var(--first-brand-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26 2.974 7.25 8 2.193z'/%3e%3c/svg%3e");
}
button, input[type=submit] {
	background: var(--first-brand-color);
	color: #fff;
	text-align: center;
	border: none;
	padding: 2.5% 5%;
	box-sizing: border-box;
	width: 100%;
	border-radius: 3px;	
	transition: 0.6s;	
}
button:hover, input[type=submit]:hover {
	opacity: 0.8;
}

form.invalid input:invalid ,
form.invalid select:invalid ,
form.invalid textarea:invalid ,
form.invalid input[type=checkbox]:invalid + label:before ,
form.invalid input[type=radio]:invalid + label:before { 
	border-color: #c66;
	box-shadow: 0 3px 3px #c66;
}

.formError:not(:empty) {
	background: #edd; 
	color: #c66; 
	padding: 1%;  
	border: 1px dotted #c66; 
	border-radius:2px;
	font-size: 0.9em;
	box-sizing: border-box;	
	margin: 2%;
}
#access {
  text-align: center;
  background: #fff;
  padding: 5% 1%;
  font-size: ;
  display: none;
}

.choose, .chooses  {
	text-align: right;
	padding: 0.5em;
}
.choose a , .chooses a{
	font-size: 0.85em;
	color: #666;
	text-decoration: none
}
.choose a:hover, .choose a.active, 
.chooses a:hover, .chooses a.active  {
	color: #000;
}
.choose a.active, .chooses a.active {
	font-weight: bold;
}

@media (min-width: 1024px) {

	.allhalf fieldset {
		width: 50%;
		float: left;
	}

	.allhalf  fieldset.full {
		width: inherit;
		float: none;
		clear: both;
	}
	
	fieldset.half {
		width: 48%;
		display: inline-block;
	}


}