/*-------------------------------- RESET CSS ---------------------------------------*/
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,embed,figure,figcaption,footer,header,hgroup,menu,nav,output,ruby,section,summary,time,mark,audio,video{border:0;font-size:100%;font:inherit;vertical-align:baseline;margin:0;padding:0}article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:none}table{border-collapse:collapse;border-spacing:0}
/*============================ END RESET CSS =======================================*/

html, body{
	margin: 0;
	padding: 0;
	font-family: 'Roboto', sans-serif;
	font-size: 15px;
	line-height: 20px;
	color: #333;
	background: #eee;
}

strong {
	font-weight: bold;
}

.logoContainer {
	display: table;
	width: 100%;
	text-align: right;
}

.logo {
	height: 50px;
	width: auto;
}

.section {
	display: table;
    width: 100%;    
    margin: auto;
}

.sectionInner {
	display: table;
	width: 95%;
	margin: auto;
	position: relative;
}

.sectionRow {
	display: table;
	width: 100%;
	margin: 5px 0;
}

.sectionRow_left {
	display: inline-block;
	width: 140px;
	font-weight: bold;
	vertical-align: middle;
}
.sectionRow_right {
	display: inline-block;
	width: calc(100% - 140px);
}

.form_container {
	display: table;
	width: 100%;
	max-width: 700px;
	min-height: 100vh;
	margin: auto;
	background: #fff;
	box-shadow: 0px 0px 10px 0px #aaa;
}

.form_container_inner {
	padding: 40px;
}

h1 {
	font-size: 15px;
    line-height: 25px;
    font-weight: bold;
	text-align: center;
	margin: 0 auto 10px auto;
}

h2 {
	font-weight: bold;
	margin: 10px 0 0 0;
}

p {
	margin: 10px 0;
}

.p_inputs {
	line-height: 25px;
}

.small_gray_text {
	font-size: 13px;
	line-height: 16px;
    color: #888;
    margin-top: 5px;
}

.small_bold_text {
	font-size: 13px;
	line-height: 16px;
	color: #333;
	font-weight: bold;
}

#motive {
	display: table;
	margin-top: 0;
}

#motive li {
	margin: 3px 0;
}
label:hover {
	cursor: pointer;
}

/* #motive li:nth-child(odd) {
	background: #f7f7f7;
}
#motive li:nth-child(even) {
	background: #e3e2e1;
} */

.motiv_checkbox_div,
.motiv_text_div {
	display: inline-block;
    vertical-align: top;
}

.motiv_checkbox_div {
	width: 25px;
}

.motiv_text_div {
	width: calc( 100% - 35px );
}

select,
input,
textarea {
	-webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    outline: 0;
    font-size: 15px;
	margin: 0;
	border: 1px solid #aaa;
	border-radius: 3px;
	padding: 10px 5px;
    color: #333;
	background: #fff;
	font-family: 'Helvetica', sans-serif;
}


/* input {
	border: 0;
	border-bottom: 1px solid #aaa;
	width: 200px;	
    padding: 0 5px;
}

select,
textarea {
	border: 1px solid #aaa;
	border-radius: 5px;
	padding: 5px 5px;
} */

input[type=checkbox],
input[type=radio]  {
	border: 0px;
    width: 20px;
    height: 20px;
    margin: 0px;
}

input[type=checkbox]:hover,
input[type=radio]:hover {
	cursor: pointer;
}

#alte_motive,
#activitati_agricole {
	margin-top: 10px;
	width: 100%;
	display: none;
}

#name {
	width: 150px;
	text-transform: capitalize;
}

#parent_name_1,
#parent_name_2,
#oras,
#judet_sector,
#oras_2,
#judet_sector_2,
#strada,
#strada_2 {
	text-transform: capitalize;
}

#parent_name_1,
#parent_name_2,
#oras,
#judet_sector,
#oras_2,
#judet_sector_2 {
	width: 100px;
}

#strada_numar,
#bloc,
#scara,
#etaj,
#apartament,
#strada_numar_2,
#bloc_2,
#scara_2,
#etaj_2,
#apartament_2,
#serie_bici {
	width: 40px;
}

#strada,
#strada_2 {
	width: 170px;
}

#cnp {
	width: 130px;
}

#serie_bici {
	text-transform: uppercase;
}

#numar_bici {
	width: 70px;
}


#interval_orar,
#deplasare_start,
#deplasare_stop {
	width: 150px;
}

button {
	display: inline-block;
	font-size: 15px;
	padding: 10px 30px;
	border-radius: 5px;
	margin: 20px 10px;
	border: 2px solid #1976D2;
	background: #2196F3;
	color: #fff;
	font-weight: bold;
}

button:hover {
	cursor: pointer;
	opacity: 0.9;
}

#buton_genereaza {
	
}
#buton_png {
	margin-bottom: 50px;
}

.data_semnatura_div {
	display: table;
	width: 100%;
	margin: 10px auto;
}

.data_container {
	display: table;
	float: left;
	width: 100%;
	max-width: 45%;
	text-align: left;
}

.semnatura_container {
	display: table;
	float: right;
	width: 100%;
	max-width: 45%;
	text-align: right;
}

.data_text,
.semnatura_text {
	margin: 5px;
	font-weight: bold;
}

#data_dd,
#data_mm {
	width: 40px;
	margin: 0 1px;
}

#data_yyyy {
	width: 60px;
	margin: 0 1px;
}

#signature-pad {
	border: 1px dashed #ccc;
	display: table;
    width: 300px;
	height: 150px;
	float: right;
}

#clear_signature {
	padding: 5px 15px;
    background: #aaa;
    color: #fff;
    font-weight: bold;
    text-align: center;
    display: table;
    float: right;
    margin-top: 5px;
    border-radius: 5px;
}

#clear_signature:hover {
	cursor: pointer;
}


/*-------- DECLARATIE NOUA ------------*/
#nume,
#prenume {
	width: 49%;
	text-transform: uppercase;
}

#dob_dd,
#dob_mm {
	width: 14%;
}
#dob_yyyy {
	width: 19%;
	margin: 0 0.5%;
}

#adresa {
	width: 100%;
	text-transform: uppercase;
}

#deplasare {
	width: 100%;
	text-transform: uppercase;
}

.html_to_canvas button {
	display: none;
}
.html_to_canvas #formular {
	padding: 50px 0;
}
.html_to_canvas #signature-pad {
	border: 0;
	width: 150px;
	height: 75px;
}

.html_to_canvas #clear_signature {
	display: none;
}

.button_container {
	display: table;
	margin: 0 auto 70px auto;
}


/*------------------------- MEDIA QUERIES --------------------------------*/
@media only screen and (max-width: 500px) {
	.sectionInner {
		width: 100%;
	}
	.form_container_inner {
		padding: 20px;
	}
	.form_container {
		box-shadow: none;
	}
	h1 {
		margin: 0 auto 10px auto;
	}
	body,
	html {
		background: #fff;
	}

	/*------ new form -----*/
	.sectionRow_left,
	.sectionRow_right {
		display: table;
		width: 100%;
	}
	#nume,
	#prenume {		
		margin: 0 0.5%;
	}
	#dob_dd,
	#dob_mm,
	#dob_yyyy {
		width: 32%;
		margin: 0 0.5%;
	}
	#data_dd,
	#data_mm,
	#data_yyyy {
		width: 32%;
		margin: 0 0.5%;
	}
	.data_container,
	.semnatura_container {
		float: none;
		max-width: 100%;
		margin: auto;
		text-align: left;
	}
	#signature-pad {
		width: 99%;
		float: none;
	}
	button {
		display: table;
		margin: 10px auto;
	}
}

/*------------------------- MEDIA PRINT --------------------------------*/
@media print {
	#clear_signature,
	#buton_pdf,
	#buton_print,
	button,
	.button_container {
		display: none;
	}
	.form_container {
		box-shadow: none;
	}	
	#signature-pad {
		border: 0;
	}
	#signature-pad {
		width: 150px;
		height: 75px;
	}
}

@page 
{
	size: auto;   /* auto is the initial value */
	margin: 0mm;  /* this affects the margin in the printer settings */
}