/*
Theme Name: Uace
Contact Form 7 (CF7)
Author: Nisar Abed (Staff. Virtualgeo)
*/

/* -----------------------------------------------------------------------------
Plugin CF7 */

/* ----------------------------------------
Pagebuilder Correction */
.entry-content .wpcf7 p {margin: 0px 0px 0px 0px;}

.entry-content .uace_modal .wpcf7 p {line-height: inherit;}

.entry-content .wpcf7 br {display: none;}

/* ----------------------------------------
Contenitore */
.wpcf7 {
    width: 100%;
    height: auto;
    line-height: 30px;
    font-size: 15px;
    text-align: left;
    font-family: "OpenSans-Regular", sans-serif, Arial;
    position: relative;}

/* ----------------------------------------
Rows */
.wpcf7 .cf7_row {
    width: 100%;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 30px 0px;
    float:left;}

.wpcf7 .cf7_row.cf7_row_last {padding: 0px 0px 0px 0px;}

/* ----------------------------------------
Columns */
.wpcf7 .cf7_row .cf7_col,
.wpcf7 .cf7_row .cf7_col2 {
    width: 100%;
    position: relative;
    box-sizing: border-box;
    margin: 0px 0px 0px 0px;
    padding: 0px 0px 0px 0px;
    display: inline-block;
    float:left;}

.wpcf7 .cf7_row .cf7_col2 {width: 50%;}

.wpcf7 .cf7_row .cf7_col2:first-child {padding:0px 5px 0px 0px;}
.wpcf7 .cf7_row .cf7_col2:last-child {padding:0px 0px 0px 5px;}

/* ----------------------------------------
Contenuti Form */
.wpcf7 .cf7_row .cf7_title,
.wpcf7 .cf7_row .cf7_txt,
.wpcf7 .cf7_row .cf7_input {
    position: relative;
    box-sizing: border-box;
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 0px 0px;
    display:block;
    line-height: 30px;}

/* ----------------------------------------
Una Riga .one_row */
.wpcf7 .cf7_row .cf7_2one_row .cf7_title {
    position: absolute;
    width: 100px;
    top:0px;
    left:0px;
    bottom:auto;
    right:auto;}

.wpcf7 .cf7_row .cf7_2one_row .cf7_input {
    margin: 0px 0px 0px 100px;
    width: auto;}

.wpcf7 .cf7_row .cf7_2one_row.cf7_col2:last-child .cf7_title {text-align: center;}

/* ----------------------------------------
Upload */

.wpcf7 .cf7_row .cf7_col.cf7_upload,
.wpcf7 .cf7_row .cf7_col.cf7_upload .cf7_title {
    position: relative;
    line-height: 30px;
    font-size: 25px;
    width: 50px;
    height: 30px;
    text-align: right;}

.wpcf7 .cf7_row .cf7_col.cf7_upload .cf7_title {}

.wpcf7 .cf7_row .cf7_col.cf7_upload {
    position: absolute;
    top:0px;
    right:0px;
    bottom:auto;
    left:auto;
    z-index: 5;
    color:#aaaaaa;
    transition: 0.2s ease all;}

.wpcf7 .cf7_row .cf7_col.cf7_upload:hover {
    color:#248cc8;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    transition: 0.2s ease all;}

.wpcf7 .cf7_row .cf7_col.cf7_upload .cf7_input {display: none;}

/* ----------------------------------------
Privacy */

.wpcf7 .cf7_privacy .cf7_title,
.wpcf7 .cf7_privacy .cf7_txt,
.wpcf7 .cf7_privacy .cf7_input {
    display: inline-block;}

.wpcf7 .cf7_privacy .cf7_title {min-width: 100px;}

.wpcf7 .cf7_privacy .cf7_txt,
.wpcf7 .cf7_privacy .cf7_input {width: auto;}

.wpcf7 .cf7_privacy .cf7_input span.wpcf7-not-valid-tip {
    top: 5px;
    left: 115%;
    min-width: 200px;}

/* ----------------------------------------
Captcha */
.wpcf7 .cf7_captcha .cf7_title,
.wpcf7 .cf7_captcha .cf7_captcha_img {
    float: left;
    display: inline-block;}

.wpcf7 .cf7_captcha .cf7_captcha_img img {
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 2px;
    margin: 2px 5px -2px 5px;}

/* ----------------------------------------
Newsletter */

.wpcf7 .cf7_newsletter .mc4wp-checkbox {}

.wpcf7 .cf7_newsletter .mc4wp-checkbox input[type="checkbox"] {margin: 0px 10px 2px 0px;}

/* ----------------------------------------
Submit */
.wpcf7 .cf7_submit .cf7_hidden {display: none;}

.wpcf7 .cf7_submit .cf7_txt {padding:0px 0px 10px 0px;}

/* ----------------------------------------
Input */
.wpcf7 input[type="checkbox"] {
    width: 20px;
    height: 20px;}

.wpcf7 input[type="text"], .wpcf7 input[type="email"],
.wpcf7 input[type="tel"], .wpcf7 input[type="password"],
.wpcf7 textarea {
    box-sizing: border-box;
    padding: 5px 5px 5px 5px;
    width: 100%;}

.wpcf7 input[type="text"]:focus, .wpcf7 input[type="email"]:focus,
.wpcf7 input[type="tel"]:focus, .wpcf7 input[type="password"]:focus,
.wpcf7 input[type="checkbox"]:focus, 
.wpcf7 textarea:focus {
    border: 1px solid #84adff;
    box-shadow: inset 0px 3px 6px rgba(102, 153, 255, 0.175);
    transition: 0.2s ease all;}

/* ----------------------------------------
Links */
.wpcf7 a,
.entry-content .wpcf7 a {
    color:#067abc;
    transition: 0.2s ease all;}

.wpcf7 a:hover,
.entry-content .wpcf7 a:hover {
    color:#248cc8;
    transition: 0.2s ease all;}

/* ----------------------------------------
Notifica invio */

.wpcf7 div.wpcf7-response-output.wpcf7-display-none {display: none;}

.wpcf7 div.wpcf7-mail-sent-ok,
.wpcf7 div.wpcf7-mail-sent-ng,
.wpcf7 div.wpcf7-spam-blocked,
.wpcf7 div.wpcf7-validation-errors,
.wpcf7 div.wpcf7-acceptance-missing {
    box-sizing: border-box;
    text-align: center;
    width: 100%;
    height: auto;
    border-radius: 5px;
    padding: 15px 15px 15px 15px;
    margin: 15px 0px 15px 0px;
    color:#31708f;
    background-color: #d9edf7;
    border:1px solid #bce8f1;}

.wpcf7 div.wpcf7-mail-sent-ok {
    color: #3c763d;
    border: 1px solid #d6e9c6;
    background-color: #dff0d8;}

.wpcf7 div.wpcf7-mail-sent-ng,
.wpcf7 div.wpcf7-spam-blocked {
    color:#8a6d3b;
    border: 1px solid #faebcc;
    background-color: #fcf8e3;}

.wpcf7 div.wpcf7-validation-errors,
.wpcf7 div.wpcf7-acceptance-missing {
    color:#a94442;
    border: 1px solid #ebccd1;
    background-color: #f2dede;}

/* ----------------------------------------
Errori */

.wpcf7 .wpcf7-form.invalid {line-height: 32px;}

.wpcf7 span.wpcf7-not-valid-tip {
    position: absolute;
    font-size: 14px;
    line-height: 16px;
    color:#a94442;}

/* Input Button */
.wpcf7 input[type="submit"] {
    color:#f5f5f5;
    text-shadow: none;
    font-size: 16px;
    font-weight: normal;
    border: 0px solid transparent;
    background: linear-gradient(#42a1ec, #0070c9);
    transition: 0.2s ease all;}

.wpcf7 input[type="submit"]:hover {
    color: #fff;
    background: linear-gradient(#51a9ee, #147bcd);
    transition: 0.2s ease all;}

/* -----------------------------------------------------------------------------
Modal (CF7) */

.uace_modal .wpcf7 {
    width: 100%;
    height: auto;
    max-height: 60vh;
    box-sizing: border-box;
    padding: 0px 0px 0px 0px;
    margin: 0px 0px 0px 0px;
    overflow: auto;
    text-align: left;
    font-size: 16px;
    line-height: 0px;}

.uace_modal .wpcf7 textarea {height: 100px;}

/* Doppia Riga > 1 row */
.uace_modal .wpcf7 .cf7_row,
.uace_modal .wpcf7 .cf7_row .cf7_col2:first-child {padding: 0px 0px 20px 0px;}

.uace_modal .wpcf7 .cf7_row.cf7_row_last {padding: 0px 0px 20px 0px;}

.uace_modal .wpcf7 .cf7_row .cf7_col2 {width: 100%;}

.uace_modal .wpcf7 .cf7_row .cf7_col2:last-child {padding:0px 0px 0px 0px;}

.uace_modal .wpcf7 .cf7_row .cf7_col2.cf7_2one_row:last-child .cf7_title {text-align: left;}

/* captcha > 1 row */
.uace_modal .wpcf7 .cf7_captcha .cf7_captcha_img img {
    padding: 4px 5px 4px 5px;
    margin: 0px 5px 0px 5px;}

.uace_modal .wpcf7 .cf7_captcha .cf7_input {
    width: 100px;
    display: inline-block;}

/* Submit > 1 row */
.uace_modal .wpcf7 .cf7_submit .cf7_txt {
    padding: 5px 0px 5px 0px;
    float:right;}

.uace_modal .wpcf7 .cf7_submit .cf7_input {float:left;}

/* Avvisi */
.uace_modal .wpcf7 div.cf7_2,
.uace_modal .wpcf7 div.cf7_100,
.uace_modal .wpcf7 div.wpcf7-mail-sent-ok,
.uace_modal .wpcf7 div.wpcf7-mail-sent-ng,
.uace_modal .wpcf7 div.wpcf7-spam-blocked,
.uace_modal .wpcf7 div.wpcf7-validation-errors,
.uace_modal .wpcf7 div.wpcf7-acceptance-missing {
    width:99%;
    float:none;}

/* Stili Input > dimensioni ridotte per iOS */ 
.uace_modal .wpcf7 input[type="text"], 
.uace_modal .wpcf7 input[type="email"], 
.uace_modal .wpcf7 input[type="tel"],
.uace_modal .wpcf7 input[type="password"] {
    border-radius: 0px;
    border: 0px solid transparent;
    font-size: 15px;
    padding: 0px 0px 0px 0px;
    border-bottom:1px dotted #a0a0a0;}

.uace_modal .wpcf7 input[type="text"]:focus, 
.uace_modal .wpcf7 input[type="email"]:focus,
.uace_modal .wpcf7 input[type="tel"]:focus, 
.uace_modal .wpcf7 input[type="password"]:focus {
    border: 0px solid transparent;
    border-bottom: 1px dotted #84adff;
    box-shadow: none;
    transition: 0.2s ease all;}

/*------------------------------------------------------------------------
Responsive Media Query */

@media (max-width: 640px) {

    .wpcf7 .cf7_row,
    .wpcf7 .cf7_row .cf7_col2:first-child {padding: 0px 0px 20px 0px;}
    
    .wpcf7 .cf7_row .cf7_col2 {width: 100%;}
    
    .wpcf7 .cf7_row .cf7_col2:last-child {padding:0px 0px 0px 0px;}

    .wpcf7 .cf7_row .cf7_col2.cf7_2one_row:last-child .cf7_title {text-align: left;}
    
    .wpcf7 .cf7_privacy .cf7_input span.wpcf7-not-valid-tip {
        top:100%;
        right:0px;
        left:auto;
        text-align: right;}
    
    /* Modal (CF7) */
    .uace_modal .wpcf7 {font-size: 15px;}
    
    .uace_modal .wpcf7 .cf7_privacy .cf7_title {width: 100%;}
    .uace_modal .wpcf7 .cf7_privacy .cf7_txt {font-size: 14px;}
    
    /* Submit > 1 row */
    .uace_modal .wpcf7 .cf7_submit .cf7_txt,
    .uace_modal .wpcf7 .cf7_submit .cf7_input {float:none;}
    
    /* Doppia Riga > 1 row */
    .uace_modal .wpcf7 .cf7_row,
    .uace_modal .wpcf7 .cf7_row .cf7_col2:first-child {padding: 0px 0px 5px 0px;}
    
    /* Newsletter */
    .uace_modal .wpcf7 .cf7_newsletter {padding: 15px 0px 5px 0px;}

}
@media (max-width: 480px) {

    .wpcf7 .cf7_row .cf7_2one_row .cf7_title,
    .wpcf7 .cf7_row .cf7_2one_row .cf7_input {
        width: 100%;
        position: relative;}
    
    .wpcf7 .cf7_row .cf7_2one_row .cf7_input {margin: 0px 0px 0px 0px;}
    
    /* Modal (CF7) */
    .uace_modal .wpcf7 .cf7_captcha .cf7_title {width: 100%;}

}
    