/* Media Queries
   ========================================================================== */

@media only screen and (max-width: 1290px) {

    header {
        width: 100%;
        height: 9.25vw;

        margin-bottom: 50px;

        background: url("/images/header.jpg") no-repeat top center;

        -webkit-background-size: cover;
        -moz-background-size: cover;
        -o-background-size: cover;
        background-size: cover;
        -webkit-background-clip: border-box;
        -moz-background-clip: border-box;
        -o-background-clip: border-box;
        background-clip: border-box;
    }

    #wrapper {
        width: 100%;
    }

    .modal-content {
        width: calc(100% - 100px);
    }

}

@media only screen and (max-width: 1024px) {

    h1 {
        font-size: 1.875em; /* 30px */
        margin-bottom: 24px;
    }

    h2 {
        font-size: 1.5em; /* 24px */
        margin-bottom: 12px;
    }

    h3 {
        font-size: 1.25em; /* 20px */
        margin-bottom: 12px;
    }

}

@media only screen and (max-width: 960px) {

    section {
        width: 100%;
    }

    article {
        width: 100%;
    }

    /* Introduction */
    #introduction p {
        width: 100%;
    }

    #maternity_date_picker {
        width: 100%;
    }

    #maternity_date_picker article {
        min-height: 31vw;
    }

    /* Flow */
    #section_warnings {
        width: 100%;
    }

    .maternity_flow_mom_text_lgbt_s2 div, .maternity_flow_social1_text_lgbt_s2 div, .maternity_flow_social2_text_lgbt_s2 div,
    .maternity_flow_mom_text_lgbt1 div, .maternity_flow_dad_text_lgbt1 div, .maternity_flow_social1_text_lgbt1 div, .maternity_flow_social1_text_lgbt1 div, 
    .maternity_flow_mom_text_lgbt2 div, .maternity_flow_dad_text_lgbt2 div, .maternity_flow_social1_text_lgbt2 div, .maternity_flow_social2_text_lgbt2 div {
        font-size: 1.60vw;
    }

    /* Modal */
    .modal-content {
        padding: 25px;
        width: calc(100% - 25px);
    }

    /* Custom dot color in radio */
    input[type="radio"]:checked:before {
        position: inherit;
        top: inherit;
        left: inherit;
        width: inherit;
        height: inherit;

        content: inherit;
        display: inherit;

        border-radius: inherit;
        background-color: inherit;
    }

}

@media only screen and (max-width: 768px) {

    /* Introduction */
    #introduction p {
        font-size: 1.25em;
    }

    /* Step 1 */
    .parent_combo_box {
        width: calc(33.33% - 12.5px);
    }

    /* Step 2 */
    .share_leave_box {
        width: calc(33.33% - 12.5px);
    }
    
    .combo_box_spacer {
        width: calc(33.33% - 12.5px);
    }

    /* Step 3 */
    .child_combo_box {
        width: calc(33.33% - 12.5px);
    }

    .residence_box {
        width: calc(33.33% - 12.5px);
    }

    /* Flow */
    .color_box_container {
        flex-wrap: wrap;
    }

    .color_box {
        width: 50%;
    }

    .color_box:nth-child(1), .color_box:nth-child(2) {
        margin-bottom: 25px;
    }

}

@media only screen and (max-width: 710px) {

    /* Step 4 */
    .agreement_selection_input {
        width: calc(100% - 150px);
    }

    .agreement_selection_input p {
        width: 100%;
    }

    .agreement_selection_spacer {
        display: none;
    }

    #warning_box_unemployed_mom, #warning_box_selfemployed_mom, #warning_box_student_mom, #warning_box_unemployed_dad, #warning_box_selfemployed_dad, #warning_box_student_dad {
        padding-left: 0px;
    }
}



@media only screen and (max-width: 600px) {

    /* Step 6 */
    .infographic_container {
        flex-wrap: wrap;
    }

    .infographic_image {
        flex: 0 0 70px;

        margin-bottom: 15px;
    }

    .infographic_text {
       flex: 0 0 calc(100% - 100px);

        margin-bottom: 15px;
    }

    .infographic_flexible {
        flex: 1;
    }

    .infographic_transfer {
        display: none;
    }

    /* Step 7 */
    .agreement_overview_edit {
        right: 0px;

        width: auto;
    }

    #section_headers_mom .agreement_overview_type, #section_headers_dad .agreement_overview_type, #section_headers_mom .agreement_overview_text, #section_headers_dad .agreement_overview_text {
        display: none;
    }

    #section_headers_mom .agreement_overview_info, #section_headers_dad .agreement_overview_info {
        width: 62.5%;
    }

    #section_headers_mom .agreement_overview_using, #section_headers_dad .agreement_overview_using {
        width: 37.5%;
    }

    .agreement_overview_type, .agreement_overview_transfer {
        width: 100%;
        height: 40px;

        align-items: flex-end;
    }

    .agreement_overview_info, .agreement_overview_using {
        width: 33%;
    }

    .agreement_overview_amount {
        width: 35%;
    }

    .agreement_overview_text {
        width: 40%;
    }

    .agreement_overview_chosen {
        width: 25%;
    }

    #section_receive_mom .agreement_overview_text, #section_receive_part1_dad .agreement_overview_text, #section_receive_part2_dad .agreement_overview_text {
        width: 75%;
    }

    /* Flow */
    #overview_mom, #overview_dad, #overview_child {
        width: 100%;

        padding-left: 0;
        padding-bottom: 4vw;
        margin-bottom: 4vw;

        border-left-width: 0px;
    }

    #overview_mom, #overview_dad {
        border-bottom-style: solid;
        border-bottom-width: 1px;
        border-bottom-color: rgba(225, 225, 225, 1.0);
    }

    #overview_child {
        padding-bottom: 0;
        margin-bottom: 0;
    }

    #section_warnings article {
        padding: 0% 3%;
    }

    /* Misc */
    .icon_modal_sector, .icon_modal_contract, .icon_modal_distribute, .icon_modal_extension, .icon_modal_vacation {
        top: 3vw;
        right: 3vw;

        width: 20px;
        height: 20px;
    }
}

@media only screen and (max-width: 575px) {

    /* Flow */
    .maternity_flow_mom_text div, .maternity_flow_dad_text div {
        font-size: 14px;
    }

    .maternity_flow_mom_text_lgbt_s2 div, .maternity_flow_social1_text_lgbt_s2 div, .maternity_flow_social2_text_lgbt_s2 div,
    .maternity_flow_mom_text_lgbt1 div, .maternity_flow_dad_text_lgbt1 div, .maternity_flow_social1_text_lgbt1 div, .maternity_flow_social1_text_lgbt1 div, 
    .maternity_flow_mom_text_lgbt2 div, .maternity_flow_dad_text_lgbt2 div, .maternity_flow_social1_text_lgbt2 div, .maternity_flow_social2_text_lgbt2 div {
        font-size: 1.60vw;
    }

}

@media only screen and (max-width: 550px) {

    /* Flow */
    #postpone_box_shared {
        width: 100%;
    }

}

@media only screen and (max-width: 525px) {

    /* Flow */
    .maternity_flow_mom_text div, .maternity_flow_dad_text div {
        font-size: 13px;
    }

    .maternity_flow_mom_text_lgbt_s2 div, .maternity_flow_social1_text_lgbt_s2 div, .maternity_flow_social2_text_lgbt_s2 div,
    .maternity_flow_mom_text_lgbt1 div, .maternity_flow_dad_text_lgbt1 div, .maternity_flow_social1_text_lgbt1 div, .maternity_flow_social1_text_lgbt1 div, 
    .maternity_flow_mom_text_lgbt2 div, .maternity_flow_dad_text_lgbt2 div, .maternity_flow_social1_text_lgbt2 div, .maternity_flow_social2_text_lgbt2 div {
        font-size: 1.60vw;
    }

}

@media only screen and (max-width: 510px) {

    article {
        padding: 25px;
    }

    /* Step 8 */
    .absence_text {
        width: calc(100% - 50px);
    }

    .absence_hide {
        display: none;
    }

    .absence_image, .absence_text {
        border-bottom-width: 0px;
    }

    .absence_spacer {
        width: 66%;

        padding-right: 25px;
        justify-content: flex-end;
    }

    .absence_chosen {
        width: 33%;
        justify-content: flex-end;
    }

    /* Flow */
    #section_overview article, #section_overview article {
        padding: 25px;
    }

}

@media only screen and (max-width: 485px) {

    /* Step 1 */
    .parent_combo_box {
        width: calc(50% - 12.5px);
    }

    .parent_combo_box:nth-child(3) {
        margin-top: 25px;
    }

    /* Step 2 */
    .share_leave_box {
        width: calc(50% - 12.5px);
    }

    .combo_box_spacer { 
        display: none;
    }

    /* Step 3 */
    #maternity_date_icon {
        display: none;
    }

    #maternity_date {
        width: 100%;
    }

    .child_combo_box {
        width: calc(50% - 12.5px);
    }

    .residence_box {
        width: calc(50% - 12.5px);
    }

    /* Step 6 */
    .infographic_container {
        justify-content: space-between;
    }

    .infographic_flexible {
        flex: 1 0 calc(50% - 15px);
        margin-bottom: 15px;
    }

    .infographic_flexible:nth-child(even) {
        margin-right: 0px;
    }

    .infographic_toggle {
        display: none;
    }

    /* Flow */
    .maternity_flow_mom_text div, .maternity_flow_dad_text div {
        font-size: 12px;
    }

    .maternity_flow_mom_text_lgbt_s2 div, .maternity_flow_social1_text_lgbt_s2 div, .maternity_flow_social2_text_lgbt_s2 div,
    .maternity_flow_mom_text_lgbt1 div, .maternity_flow_dad_text_lgbt1 div, .maternity_flow_social1_text_lgbt1 div, .maternity_flow_social1_text_lgbt1 div, 
    .maternity_flow_mom_text_lgbt2 div, .maternity_flow_dad_text_lgbt2 div, .maternity_flow_social1_text_lgbt2 div, .maternity_flow_social2_text_lgbt2 div {
        font-size: 1.60vw;
    }

    .maternity_flow_mom_text_lgbt_s2 div, .maternity_flow_social1_text_lgbt_s2 div, .maternity_flow_social2_text_lgbt_s2 div,
    .maternity_flow_mom_text_lgbt1 div, .maternity_flow_dad_text_lgbt1 div, .maternity_flow_social1_text_lgbt1 div, .maternity_flow_social1_text_lgbt1 div, 
    .maternity_flow_mom_text_lgbt2 div, .maternity_flow_dad_text_lgbt2 div, .maternity_flow_social1_text_lgbt2 div, .maternity_flow_social2_text_lgbt2 div {
        font-size: 1.60vw;
    }

}

@media only screen and (max-width : 460px) {

    /* Step 9 */
    .extension_select_input {
        width: calc(100% - 75px);
    }

    .extension_select_spacer {
        display: none;
    }

    /* Modal */
    .modal-content {
        width: calc(100% - 10px);

        padding: 12px;
        font-size: 0.9em;

        hyphens: auto;
    }

}

@media only screen and (max-width: 450px) {

    html {
        font-size: 14px;
    }

    article {
        padding: 12px;
    }

    /* Step 4 */
    .agreement_selection_text, .agreement_selection_input {
        width: 100%;
    }

    .agreement_selection_text {
        height: 40px;

        margin-bottom: 0px;
    }

    /* Step 7 */
    .agreement_overview_amount {
        width: calc(40% - 45px);
    }

    .agreement_overview_text {
        width: calc(60% - 45px);
    }

    .agreement_transfer_text {
        width: calc(100% - 90px);
    }

    .agreement_overview_chosen, .agreement_transfer_chosen {
        width: 90px;
    }

    #section_receive_mom .agreement_overview_text, #section_receive_part1_dad .agreement_overview_text, #section_receive_part2_dad .agreement_overview_text {
        width: calc(100% - 90px);
    }

    /* Step 9 */
    .extension_select {
        width: calc(100% - 65px);
    }

    .extension_chosen {
        width: 75px;
    }

    .extension_spacer {
        width: calc(100% - 125px);
    }

    /* Flow */
    .color_box {
        width: 100%;
        margin-bottom: 3.5% !important;
    }

    .color_box:last-of-type {
        margin-bottom: 0;
    }

    .maternity_flow_mom_text_lgbt_s2 div, .maternity_flow_social1_text_lgbt_s2 div, .maternity_flow_social2_text_lgbt_s2 div,
    .maternity_flow_mom_text_lgbt1 div, .maternity_flow_dad_text_lgbt1 div, .maternity_flow_social1_text_lgbt1 div, .maternity_flow_social1_text_lgbt1 div, 
    .maternity_flow_mom_text_lgbt2 div, .maternity_flow_dad_text_lgbt2 div, .maternity_flow_social1_text_lgbt2 div, .maternity_flow_social2_text_lgbt2 div {
        font-size: 1.60vw;
    }

}

@media only screen and (max-width: 320px) {

    .button_print {
        display: none;
    }

    /* Step 3 */
    #maternity_date_picker input {
        width: 100%;
    }

    /* Step 6 */
    .infographic_overview_leave {
        height: auto;
    }

}
