<?php

$css = '<style>';
$color = isset( $bootstrap_options['theme'])?$bootstrap_options['theme']: '#66afe9';
list($r, $g, $b) = sscanf($color, "#%02x%02x%02x");

$css .= '#gform_wrapper_'.$form_id.' .stla-bootstrap .form-control:focus,#gform_wrapper_'.$form_id.' .stla-bootstrap .btn:focus, #gform_wrapper_'.$form_id.' .stla-bootstrap .btn.focus, #gform_wrapper_'.$form_id.' .stla-bootstrap .custom-control-input:focus ~ .custom-control-label::before, #gform_wrapper_'.$form_id.' .stla-bootstrap .custom-file-input:focus ~ .custom-file-label, #gform_wrapper_'.$form_id.' .stla-bootstrap .custom-range:focus::-webkit-slider-thumb, #gform_wrapper_'.$form_id.' .stla-bootstrap .page-link:focus, #gform_wrapper_'.$form_id.' .stla-bootstrap .btn-primary:not(:disabled):not(.disabled):active:focus, #gform_wrapper_'.$form_id.' .stla-bootstrap .btn-primary:not(:disabled):not(.disabled).active:focus, #gform_wrapper_'.$form_id.' .stla-bootstrap .show > .btn-primary.dropdown-toggle:focus, #gform_wrapper_'.$form_id.' .stla-bootstrap .btn.stla-outline-border:focus {
	border-color: '.$color.';
	box-shadow: inset 0 1px 1px rgba('.$r.', '.$g .','.$b.', 0.075), 0 0 8px rgba('.$r.', '.$g .','.$b.', 0.6);
	-webkit-box-shadow: inset 0 1px 1px rgba('.$r.', '.$g .','.$b.', 0.075), 0 0 8px rgba('.$r.', '.$g .','.$b.', 0.6);
	}';

	$css .= '#gform_wrapper_'.$form_id.' .stla-bootstrap .custom-radio .custom-control-input:checked~.custom-control-label::before, #gform_wrapper_'.$form_id.' .stla-bootstrap .custom-control-input:checked~.custom-control-label::before, #gform_wrapper_'.$form_id.' .stla-bootstrap .custom-checkbox .custom-control-input:checked~.custom-control-label::before ,#gform_wrapper_'.$form_id.' .stla-bootstrap .progress-bar, #gform_wrapper_'.$form_id.' .stla-bootstrap .btn.stla-outline-border:hover{
		background-color:'.$color.';
	}';

		$css .= '#gform_wrapper_'.$form_id.' .stla-bootstrap .custom-control-input:active ~ .custom-control-label::before{
		background-color: rgba('.$r.', '.$g .','.$b.', 0.5);
	}';

	$css .= 'body #gform_wrapper_'.$form_id.' .gform_body .gform_page_footer .stla-bootstrap .btn.stla-outline-border{
		border: 1px solid '.$color.';
		color: '.$color.';
	}
	body #gform_wrapper_'.$form_id.' .gform_body .gform_page_footer .stla-bootstrap .btn.stla-outline-border:hover{
		color: #fff;
	}';

$css .= '</style>';
  echo $css;
