input[type="submit"],
button {
    -webkit-appearance: none;
    -webkit-border-radius: 0;
}
::-webkit-input-placeholder {
         color: #9b9b9b;
          font-size: 15px;
}
:-moz-placeholder { /* Firefox 18- */
          color: #9b9b9b;
           font-size: 15px;
}

::-moz-placeholder {  /* Firefox 19+ */
          color: #9b9b9b;
           font-size: 15px;
}

:-ms-input-placeholder {  
         color: #9b9b9b;
          font-size: 15px;
}

.form--placeholder ::-webkit-input-placeholder {
         color: transparent;
}
.form--placeholder :-moz-placeholder { /* Firefox 18- */
         color: transparent;
}

.form--placeholder ::-moz-placeholder {  /* Firefox 19+ */
         color: transparent;
}

.form--placeholder :-ms-input-placeholder {  
         color: transparent;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus textarea:-webkit-autofill,
textarea:-webkit-autofill:hover textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
}

.pLegal {
    font-size:11px;
    line-height:1.4em;
    text-align:center;
    padding:0 0.5rem;
    opacity:0.6;
}

.form{
    text-align:left;
}

.field:not(.news):not(.terminos) {
    position: relative;
    width: 100%;
	border-radius:8px;
}

.field:not(:last-child), .form__info-datos {
    margin: 0 0 0.8rem;
}

.field__input,
.field__textarea, .field__select {
    display: block;
    border: 1px solid #ddd;
    border-radius: 8px;
    height:48px;
    line-height:48px; font-weight: inherit;
    padding: 0.6rem;
    width: 100%;
    position: relative;
    font-size: 1rem;
    outline: none;
    z-index: 1;
    background: #fff;
}
.field__input:focus,
.field__textarea:focus, .field__select:focus {
    outline: 0;
    border-color: #999;
}
.field__file{
	font-size: 0.9em;
    line-height: 100%;
}

.field__file{display:none;}
.field__file + label{
    display: flex;
    align-items:center;
    border: 1px solid #ddd;
    border-radius: 8px;
    height:48px;
    font-weight: inherit; 
    background:#fff;
    color:#9b9b9b;
    cursor:pointer;
    width: 100%;
    position: relative;
    font-size: 1rem;
    outline: none;
    z-index: 1;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}
.field__file--attached + label{
    color: var(--font-color);
}
.field__file + label .file__ico{
    content:'\f093';
    font-weight:900;
    font-family: var(--awesome);
    margin-right:1rem;
    display:block;
    height:48px;
    font-size:1.25rem;
    width:48px;
    display:grid;
    place-content:center;
    background:#666;
    color:#fff;
}
.field__file--attached + label .file__ico i::before{
    content:'\f00d';
}

@media screen and (min-width: 600px) {
 
}
@media screen and (min-width: 769px) {
    .form--double .form__info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 1rem;
    }

    .form--double .form__info-datos {
        display: flex;
        flex-direction: column;
    }

    .form--double .form__info-datos .field {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .form--double .form__info-datos .field textarea {
        flex: 1;
    }

    .field__textarea {
        min-height: 120px;
    }
}

.field__textarea {
    height: auto;
    flex: 1;
    resize: vertical;
    min-height: 90px;
    line-height:1.4em;
}

.field__placeholder {
    display:none;
}

/* titles */
.form--titles .field{
    display:flex;
    flex-direction:column-reverse;
}
.form--titles .field__placeholder:not([for="input-file"]) {
    text-transform: uppercase;
    display: block;
    font-size: 0.8rem;
    font-weight: var(--bold1);
    margin: 0 0 0.25rem;
    padding-left: 0.35rem;
}
.form--titles .field__placeholder:not([for="input-file"]):after {
    content: ':';
}
/*******/

/* placeholder */

.form--placeholder .field__placeholder:not([for="input-file"]) {
    display:block;
    background: white;
    padding: 3px;
    font-size: 12px;
    transition: transform 150ms cubic-bezier(0.4, 0, 0.2, 1), opacity 150ms cubic-bezier(0.4, 0, 0.2, 1), font-size 150ms ease, top 150ms ease, width 150ms ease, line-height 150ms ease;
    transform-origin: bottom left;
    color: #bbb;
    position: absolute;
    top: 50%;
    font-size:0.9rem;
    line-height:32px;
    transform:translateY(-50%);
    border-radius:4px;
    left:0.6rem;
    width:calc(100% - 1.2rem);
    z-index: 1;
    cursor: text;
}
.form--placeholder .field__textarea + label:not([for="input-file"]){
    top:1px;
    transform: translateY(0);
}

.form--placeholder .field__input:focus + label,
.form--placeholder .field__input:not(:placeholder-shown) + label,
.form--placeholder .field__file:focus + label,
.form--placeholder .field__file:not(:placeholder-shown) + label,
.form--placeholder .field__select:focus + label,
.form--placeholder .field__select:not(:placeholder-shown) + label {
    transform: translateX(-4px) translateY(-50%);
    font-size: 11px;
    color: var(--primary);
    width:auto;
    top:0;
    line-height:100%;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms cubic-bezier(0.4, 0, 0.2, 1), font-size 300ms ease, top 300ms ease;
}
.form--placeholder .field__textarea:focus + label,
.form--placeholder .field__textarea:not(:placeholder-shown) + label {
    transform: translateX(-4px) translateY(-50%);
    font-size: 11px;
    color: var(--primary);
    width:auto;
    top:0;
    line-height:100%;
    transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms cubic-bezier(0.4, 0, 0.2, 1), font-size 300ms ease, top 300ms ease;
}

/* Check */
.check label {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

input[type=checkbox] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border: 1px solid #ccc;
    background-color: #fff;
    border-radius: 4px;
    outline: 0;
    flex-shrink: 0;
    position:relative;
}

input[type="checkbox"]:before {
    content: "\f00c";
    font-family: var(--awesome);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    transition: all 150ms ease;
    color: var(--primary);
    align-items: center;
    justify-content: center;
    z-index: 1;
    font-weight: 600;
    font-size: 12px;
    display: none;
}

input[type=checkbox]:checked:before {
    display: block;
}


/*Input File */
.field__file{
    padding:0;
    color:#666;
}
input[type="file"]::file-selector-button {
    background-color: #ccc;
    border: none;
    padding:0.6rem;
    border-radius:8px 0 0 8px;
    height:100%;
    margin-right:0.75rem;
    cursor:pointer;
    transition:background 300ms ease;
}
input[type="file"]::file-selector-button:hover{
    background-color:#ddd;
}


.button-send {
    background: var(--dark);
    font-weight: var(--bold1);
    color: #fff;
    border: 0;
    font-size: 1.2rem;
    min-height: 44px;
    display: inline-block;
    text-align: center;
    padding: 0.5rem 1rem;
    border-radius: var(--radiusButton);
    align-items: center;
    min-width: 220px;
    cursor: pointer;
    transition: min-width 200ms ease;
}
.button-send:hover {
    min-width: 240px;
}

/* Mensajes de error y de enviado */
.txtred {
    color: #9f3a38;
}

.txtgreen {
    color: #2c662d;
}

.envio_error, .envio_correcto {
    border: 1px solid;
    padding: 12px;
    margin-top:1rem;
    border-radius: 4px;
    text-align: center;
    font-weight: var(--bold1);
    background: #fff;
}
.envio_correcto{
    font-size:var(--font-s);
}
.envio_correcto i{
    margin-right:4px;
}
