
fieldset {
    border: 1px solid #ddd !important;
    margin: 0;
    padding: 10px;       
    position: relative;
    border-radius:4px;
    background-color:#f5f5f5;
    padding-left:10px!important;
	}	
	
legend {
    font-size: 30px;
    font-weight: bold;
    width: auto;
    border: 1px solid#ddd;
    border-radius: 8px;
    padding: 5px 20px;
    background-color:#ffffff;
    text-transform: uppercase;
    letter-spacing: 7px;
	}
#apply_form{
    width: 21cm;
    height: 29.7cm;
    display: block;
    margin: 40px auto;
    margin-bottom: 0.5cm;
    box-shadow: 0 0 0.5cm rgba(0,0,0,0.5);
    background-color:#f5f5f5;
    padding: 10px !important;
    border-radius: 4px;
    border: 1px solid#ddd !important;
}
#apply_form > legend {
    font-size: 16px;
    letter-spacing: 3px;
	}
#apply_form >.head{text-align: center;}
#apply_form >.head >img{
    width: 55%;
    margin: 0 auto;
    padding-bottom: 10px;
    display: block;
}
span.idclass {
    border: 1px solid #ddd;
    padding: 1px 5px;
}
.sess{
    border: 1px solid;
    padding: 2px 9px;
    width: 600px;
    display: block;
    margin: 0 auto;
    border-radius: 20px;
}
#apply_form > .head >span{
    font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    letter-spacing: 2px;
}
#apply_form > .details{
    padding: 30px;
	font-size: 12px;
}
.details > .line1{
    width: 100%;
    position: relative;
    height: 95px;
}
.line1_l{
    width: 75%;
    float: left;
    font-weight: 700;
}
.line1_r{
    width: 25%;
    float: right;
}
.stupic{
    height: 17vh;
    width: 8vw;
    border: 2px solid#000;
    margin: 0 auto;
    display: block;
    margin-top: -15px;
}
.details > .line2{
    width: 100%;
    position: relative;
}
.line2 p:nth-child(2) { margin-bottom: 5px; }
.output{
    display: -webkit-inline-box;
    font-style: italic;
    border-bottom: 1px dotted;
    padding-left: 5px;
    color: #1722c8;
    line-height: 15px;
    text-transform: capitalize;
}
.chk {
    -webkit-appearance: checkbox !important; /* Chrome, Safari, Opera */
    -moz-appearance: checkbox !important;    /* Firefox */
    -ms-appearance: checkbox !important;     /* not currently supported */
  }
.details > .line3 > ol{
    padding-left: 18px;
    font-weight: 600;
}
.line3 > ol >li{
    padding-left: 10px;
    font-style: oblique;
    line-height: 30px;
}
.details > .line4 > ol{
    padding-left: 30px;
    font-weight: bold;
    font-size: 11px;
    font-style: italic;
}
.line4 > ol >li{
    padding-left: 10px;
    line-height: 20px;
}
.line4 h4 { margin-bottom: 5px; }
.bottom{
    position: absolute;
    bottom: 20px;
    right: 30px;
}

@media print {
    @page {
        size: A4;
        max-height:29.7cm; 
        max-width:21cm; 
        margin: 10mm;
        background:#f5f5f5;
        border: 5px solid#00d ;
    }
    
    #apply_form{
        width: 21cm;
        height: 29.7cm;
        display: block;
        
    } 
    #apply_form .head{text-align: center;padding-top: 10px;}
    #apply_form .head >img{
      /*  width: 415px;*/
        margin: 0 auto;
        padding-bottom: 10px;
        display: block;
    }
    .sess{
        border: 1px solid;
        padding: 2px 9px;
        width: 600px;
        display: block;
        margin: 0 auto;
        border-radius: 20px;
        text-align: center;
        font-size: 17px;
        text-transform: uppercase;
        letter-spacing: 2px;
    }
    span.idclass {
        border: 1px solid #ddd;
        padding: 1px 5px;
    }
    #apply_form > .head >span{
        font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
        letter-spacing: 2px;
    }
    #apply_form > .details{
        padding: 30px;
		font-size: 12px;
    }
    .output{
        display: -webkit-inline-box;
        font-style: italic;
        border-bottom: 1px dotted;
        padding-left: 5px;
        color: #1722c8;
        line-height: 15px;
        text-transform: capitalize;
    }
    .details > .line1{
        width: 100%;
        position: relative;
        height: 125px;
        margin-top: 30px;
    }
    .line1_l{
        width: 75%;
        float: left;
        font-weight: 700;
    }
    .line1_r{
        width: 25%;
        float: right;
    }
    .stupic{
        height: 170px;
        width: 160px;
        border: 2px solid#000;
        margin: 0 auto;
        display: block;
        margin-top: -15px;
    }
    .details > .line2{
        width: 100%;
        position: relative;
    }
    .chk {
        -webkit-appearance: checkbox !important; /* Chrome, Safari, Opera */
        -moz-appearance: checkbox !important;    /* Firefox */
        -ms-appearance: checkbox !important;     /* not currently supported */
    }
    .details > .line3 > ol{
        padding-left: 18px;
        font-weight: 600;
    }
    .line3 > ol >li{
        padding-left: 10px;
        font-style: oblique;
        line-height: 30px;
    }
    .details > .line4 > ol{
        padding-left: 30px;
        font-weight: bold;
        font-size: 11px;
        font-style: italic;
    }
    .line4 > ol >li{
        padding-left: 10px;
        line-height: 20px;
    }
}