@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'inherit;', sans-serif;
    color: #1e479ed5;
    font-size: large;
    font-weight: 600;
}

body{
    background-color: #4277eb85;
}

.container{
    max-width: 900px;
    margin: 0 auto;
}

.box{
    max-width: 600px; /*its max-width is lesser than its parent container so that it can be centered with respect to parent container. */
    margin: 0 auto;
    background-color: rgb(253, 255, 255);
    margin-top: 3rem;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 4px 4px 4px 4px rgba(27, 143, 197, 0.89); 
    /*
    (0.1) - The alpha parameter is a number between 0.0 (fully transparent) and 1.0 (fully opaque).
    box-shadow: h-offset v-offset blur spread color 
    h-offset- Required. The horizontal offset of the shadow. A positive value puts the shadow on the right side of the box, a negative value puts the shadow on the left side of the box	
    v-offset- Required. The vertical offset of the shadow. A positive value puts the shadow below the box, a negative value puts the shadow above the box	
    blur- Optional. The blur radius. The higher the number, the more blurred the shadow will be	
    spread-	Optional. The spread radius. A positive value increases the size of the shadow, a negative value decreases the size of the shadow, color- Optional. The color of the shadow. The default value is the text color.  */
}


.small_title{
    font-size: 1.0rem;
   
    
}

.form_container{
    margin-top: 1rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.form_items{ 
    /* flex is used in for ex: to align first name and its textbox vertically. That's why we have used flex-direction column. */
    display: flex;
    flex-direction: column;
    
}

label{
    font-size: 15px;
    margin-bottom: 5px;
    
}

input, select, textarea{
    padding: 0.5rem 0.5rem;
    border: 1px solid #1430cc;
    border-radius: 10px;
    font-size: 15px;
}

input:focus{  /*when we click on textbox, its outline color will be changed */
    outline-color: rgb(21, 106, 185);
}

.button-container{
    display: flex;
    justify-content: flex-end; /*to align button horizontally to end */
    margin-top: 20px; 
}

button{
     font: inherit;
    background-color: rgb(18, 51, 236);
    border: transparent solid 2px;
    padding: 0.5rem 0.5rem;
    color: white;
    border-radius: 8px;
    transition: 0.3s ease-in;
    
}

button:hover{
    background-color: #415fe6;
    border: 2px solid rgba(50, 185, 79, 0.486);
    transition: 0.3s ease-out;
    color: black;
    cursor: pointer;
}


.textarea_control{
    grid-column: 1 / span 2;
}

.textarea_control textarea{
    width: 100%;
}

@media (max-width: 460px){
    .textarea_control{
        grid-column: 1 / span 1;
    }
}