/*********************************************
 * Plugin Gravity Form v2.1 (compatible with GF 2.5 and later)
 * Note: default GF CSS must be disabled.
**********************************************/
body .gform_wrapper {
    /* GF variables */
    --gf-color-error:var(--twc-color-error, red);
    --gf-spacing-row:var(--twc-spacing-default, 45px);
    --gf-spacing-field:20px;
    --gf-spacing-label:10px;
    --gf-gap:10px; /* between field columns */
    --gf-field-bg:#f6f6f6;
    --gf-field-bg-hover:#eee;
    --gf-field-color:#000;
    --gf-field-size:16px;
    --gf-field-font:inherit;
    --gf-field-height:53px;
    --gf-field-padding:25px;
    --gf-placeholder-color:#000;

    margin-bottom:var(--gf-spacing-row); position:relative;
}

/*********************
 * Body, Footer, Columns
**********************/
/* Form Body */
body .gform_wrapper .gform_body .gform_fields {
    display:flex; flex-wrap:wrap;
    margin:0 calc(var(--gf-gap) * -1);
}

/* Form Footer */
body .gform_wrapper .gform_footer {margin-top:var(--gf-spacing-field);}
body .gform_wrapper .gform_ajax_spinner {
    width:40px; height:40px;
    position:absolute; top:50%; left:50%;
    transform:translate(-50%, -50%);
}

/* Field Columns */
body .gform_wrapper .gfield {width:100%; padding:0 var(--gf-gap);}
body .gform_wrapper .gfield:not(:first-child) {padding-top:var(--gf-spacing-field);}
@media only screen and (min-width:768px) {
    body .gform_wrapper .gfield.gfield--width-two-thirds {width:66.66%;}
    body .gform_wrapper .gfield.gfield--width-third {width:33.33%;}
    body .gform_wrapper .gfield.gfield--width-three-quarter {width:75%;}
    body .gform_wrapper .gfield.gfield--width-quarter {width:25%;}
    body .gform_wrapper .gfield.gfield--width-half {width:50%;}
    body .gform_wrapper .gfield.gfield--width-half:nth-child(1),
    body .gform_wrapper .gfield.gfield--width-half:nth-child(2) {padding-top:0;}
}


/*********************
 * Misc
**********************/
/* Field validation (hidden by default) */
body .gform_wrapper .gfield.gform_validation_container {display:none;}

/* Validation message */
body .gform_wrapper .gfield_validation_message {display:none;}

/* Validation error */
body .gform_wrapper .gform_validation_errors {color:var(--gf-color-error); margin-bottom:var(--gf-spacing-field);}

/* Confirmation (after submit form) */
.gform_confirmation_wrapper {margin-bottom:var(--gf-spacing-row);}

/* Field Label */
body .gform_wrapper .gfield.hidden_label .gfield_label {display:none;}
body .gform_wrapper .gfield_label {
    display:block;
    margin-bottom:var(--gf-spacing-label);
}
body .gform_wrapper .gfield_required {color:var(--gf-color-error); margin-left:2px; display:none;}

/* Hidden field */
body .gform_wrapper .gfield_visibility_hidden,
body .gform_wrapper .gform_hidden {display:none;}


/*********************
 * Fields
**********************/
/* Field consent */
body .gform_wrapper fieldset.gfield {border:none; margin:0; font-size:14px;}
body .gform_wrapper .ginput_container_consent {display:flex; align-items:center;}
body .gform_wrapper .gfield_consent_label {padding-left:5px;}
body .gform_wrapper fieldset.gfield a:hover,
body .gform_wrapper fieldset.gfield a:focus {color:var(--twc-color-primary);}

/* Fields */
body .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body .gform_wrapper textarea,
body .gform_wrapper select {
    background:var(--gf-field-bg); color:var(--gf-field-color);
    font-size:var(--gf-field-size); font-family:var(--gf-field-font);
    width:100%; height:var(--gf-field-height); padding:5px var(--gf-field-padding); display:block;
    transition:all .3s ease;
    -webkit-appearance:none !important; -webkit-border-radius:0 !important;
}
body .gform_wrapper textarea {height:160px; padding:15px var(--gf-field-padding); resize:vertical;}

/* Fields :hover, :focus */
body .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
body .gform_wrapper textarea:hover,
body .gform_wrapper select:hover,
body .gform_wrapper input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
body .gform_wrapper textarea:focus,
body .gform_wrapper select:focus {
    background:var(--gf-field-bg-hover);
}

/* Fields error */
body .gform_wrapper .gfield_error input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body .gform_wrapper .gfield_error textarea,
body .gform_wrapper .gfield_error select {
    box-shadow:inset 0 0 0 1px var(--gf-color-error);
}
body .gform_wrapper .gfield_error .ginput_container_consent {color:var(--gf-color-error);}

/* Placeholder */
body .gform_wrapper ::-webkit-input-placeholder {font-family:inherit; font-weight:inherit; font-size:inherit; color:var(--gf-placeholder-color);}
body .gform_wrapper ::-moz-placeholder {font-family:inherit; font-weight:inherit; font-size:inherit; color:var(--gf-placeholder-color);}
body .gform_wrapper :-ms-input-placeholder {font-family:inherit; font-weight:inherit; font-size:inherit; color:var(--gf-placeholder-color);}
body .gform_wrapper :-moz-placeholder {font-family:inherit; font-weight:inherit; font-size:inherit; color:var(--gf-placeholder-color);}


/*********************
 * Newsletter form
**********************/
body .gform_wrapper.newsletter_wrapper {
    --gf-field-height:50px;
    max-width:470px; margin-left:auto; margin-right:auto;
}
body .gform_wrapper.newsletter_wrapper fieldset.gfield,
body .gform_wrapper.newsletter_wrapper fieldset.gfield a {color:rgb(255 255 255 / 0.5); font-weight:400;}
body .gform_wrapper.newsletter_wrapper fieldset.gfield a:hover,
body .gform_wrapper.newsletter_wrapper fieldset.gfield a:focus {color:#fff;}

body .gform_wrapper.newsletter_wrapper form {display:flex;}
body .gform_wrapper.newsletter_wrapper .gform_body {width:100%;}
body .gform_wrapper.newsletter_wrapper .gform_footer {margin-top:0;}
body .gform_wrapper.newsletter_wrapper .gfield--type-consent {transform:translateX(60px);}
body .gform_wrapper.newsletter_wrapper .ginput_container_consent {justify-content:center;}
@media only screen and (max-width:480px) {
    body .gform_wrapper.newsletter_wrapper {--gf-field-height:46px;}
}
body .gform_wrapper.newsletter_wrapper .gform_validation_errors {text-align:center;}

/* form with text color white */
body .txt_color_white .gform_wrapper {
    --gf-field-bg:rgb(255 255 255 / 0.1);
    --gf-field-bg-hover:rgb(255 255 255 / 0.2);
    --gf-field-color:#fff;
    --gf-placeholder-color:#fff;
}
body .site-footer .txt_color_white .gform_wrapper {
    --gf-color-error:var(--twc-color-yellow);
}
body .txt_color_white input[type="checkbox"] {position:absolute; opacity:0;}
body .txt_color_white input[type="checkbox"] + label {
    padding-left:32px; position:relative;
    cursor:pointer;
}
body .txt_color_white input[type="checkbox"] + label:before {
    position:absolute; top:3px; left:0;
    content:""; display:inline-block;
    border:1px solid rgba(255, 255, 255, .5); border-radius:0;
    width:15px; aspect-ratio:1;
    transition:all .3s ease;
}
body .txt_color_white input[type="checkbox"] + label:after {
    position:absolute; top:4px; left:0; display:inline-block;
    content:"\e932"; font-family:var(--twc-font-icomoon); font-size:10px;
    background:transparent; color:var(--twc-color-primary);
    transition:all .1s ease; transform:translateX(.4em);
}
body .txt_color_white input[type="checkbox"][aria-invalid="true"] + label a {color:var(--gf-color-error);}
body .txt_color_white input[type="checkbox"][aria-invalid="true"] + label a:hover,
body .txt_color_white input[type="checkbox"][aria-invalid="true"] + label a:focus {color:#fff;}

/* hover */
body .txt_color_white input[type="checkbox"]:hover + label:before,
body .txt_color_white input[type="checkbox"]:checked + label:before,
body .txt_color_white input[type="checkbox"][aria-invalid="true"]:checked + label:before {border-color:#fff;}

/* :checked */
body .txt_color_white input[type="checkbox"]:checked + label:before {background:#fff;}
body .txt_color_white input[type="checkbox"]:not(:checked) + label:after {
    opacity:0;
}

/* error */
body .txt_color_white input[type="checkbox"][aria-invalid="true"] + label:before {border-color:var(--gf-color-error);}

@media only screen and (max-width:480px) {
    body .txt_color_white input[type="checkbox"] + label {padding-left:25px;}
}

/*********************************************
 * Plugin Gravity Form v2.0 Responsive
**********************************************/
@media only screen and (max-width:767px) {
    body .gform_wrapper {
        --gf-spacing-field:12px;
        --gf-field-height:48px;
        --gf-field-padding:20px;
    }

    /* Fields */
    html.iphone body .gform_wrapper select {text-indent:12px;}
    body .gform_wrapper input:not([type="checkbox"]):not([type="radio"]),
    body .gform_wrapper textarea,
    body .gform_wrapper select {
        height:47px; padding:5px 15px;
    }
    body .gform_wrapper textarea {height:140px; padding:15px;}
}