@import url(https://fonts.googleapis.com/css?family=Raleway:400,500);
body{
  background-image:  url(../img/sfondo.png); 
  background-repeat: no-repeat; 
  /*background-size: cover;*/ 
  background-position: top;
}

p{
  text-align:left;
 }
.intestazione{
  /*margin: 0 15%;*/
  text-align:left;
 } 
 
#main-form{
  background:rgb(255,255,255);
  margin:0  auto;
  border-radius:4px;
  /*width:60%;*/
  /*max-width:900px;*/
  padding:10px;
  padding-top:20px;
}
.labels-service{
  display:inline-block;
  text-align:left;
  width:90%;
  padding:5px;
  vertical-align: top;
  margin-top: 10px;
  border: 3px solid #b6008d;
  padding:1px 5px;
}
.labels-user{
  display:inline-block;
  text-align:left;
  width:90%;
  padding:5px;
  vertical-align: top;
  margin-top: 10px;
  border: 3px solid #520a76;
  padding:1px 5px;
}
.risposte{
  display:inline-block;
  text-align:left;
  width:100%;
  vertical-align:middle;
}
.input-field {
  height:20px;
  width:280px;
  padding:5px;
  margin:10px;
  border: 1px solid #c0c0c0;
  border-radius: 2px;
}

#submit_questionario {
  background-color: #B6008D;
  border-radius: 4px;
  color: white;
  font-size: 1em;
  height: 40px;
  width: 96px;
  margin: 10px;
  border: 0px solid;
}
#submit_questionario:hover{
  cursor:pointer;
  background:#520a76;
}

.radio-button, .checkbox, .checkbox-user {
  position: relative;
  left: -43px;
  margin-left: 10px;
  display: block;
  padding-bottom: 10px;
  width:100%
}




@media screen and (max-width: 833px) {
	body{
	  background-image: none;
	  background: #fff;
	  margin:0;
	}		
  .input-field {
    width: 80%;
  }
  select {
    width: 90%;
  }
}

@media screen and (max-width: 520px) {
	body{
	  background-image: none;
	  background: #fff;
	  margin:0;
	}	
  .risposte {
    width: 100%;
    float: left;
  }
  .input-field {
    width: 100%;
  }
  select {
    width: 100%;
  }
}

/* Checkbox */

.checkbox-wrapper {
    display: block;
    position: relative;
    padding-left: 35px !important;
	padding-top:3px !important;
    margin-bottom: 5px !important;
    cursor: pointer !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Nascondo il checkbox di base del browser */
.checkbox-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* creo il mio checkbox */
.checkbox-wrapper .checkmark  {
    position: absolute;
    top: 0;
    left: 0;
    height: 26px;
    width: 26px;
    background-color: #f1deec;
    border: 3px solid transparent;
}


/* Creo la spunta all'interno dell'input (inizialmente nascosta) */
.checkbox-wrapper .checkmark::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 3px;
    width: 5px;
    height: 12px;
    border: solid #ffffff;
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
    display: none;
}

/* checkbox hover */
.checkbox-wrapper:hover input ~ .checkmark {
    background-color: #e6d5e1;
}

/* checkbox select */
.checkbox-wrapper input:checked ~ .checkmark {
	background-color:#b6008d;
}

/* checkbox checked spunta */
.checkbox-wrapper input:checked ~ .checkmark::after {
    display: block;
}



/* Radio button */

label.radio-wrapper{
    display: block;
    position: relative;
    padding-left: 35px;
	padding-top: 3px;
    margin-bottom: 5px;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Nascondo il checkbox di base del browser */
.radio-wrapper input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* creo il mio checkbox */
.radio-wrapper .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 26px;
    width: 26px;
    background-color: #f1deec;
    border-radius: 50%;
    border:3px solid transparent;
}
.radio-wrapper .checkmark-user {
    position: absolute;
    top: 0;
    left: 0;
    height: 26px;
    width: 26px;
    background-color: #e5daea;
    border-radius: 50%;
    border:3px solid transparent;
}

/* Creo la spunta all'interno dell'input (inizialmente nascosta) */
.radio-wrapper .checkmark:after, .radio-wrapper .checkmark-user:after {
    content: "";
    position: absolute;
    display: none;
    top: 5px;
    left: 5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ffffff;
}

/* radio hover */
.radio-wrapper:hover input ~ .checkmark {
    background-color: #e6d5e1;
}
.radio-wrapper:hover input ~ .checkmark-user {
    background-color: #d2c8d7;
}

/* radio checked */
.radio-wrapper input:checked ~ .checkmark {
	background-color:#b6008d;
}
.radio-wrapper input:checked ~ .checkmark-user {
	background-color:#520a76;
}

/* radio checked spunta */
.radio-wrapper input:checked ~ .checkmark::after, .radio-wrapper input:checked ~ .checkmark-user::after  {
    display: block;
}

label {
    font-weight: normal !important;
}

