@media screen and (min-width: 60em) {
    .l-section .l-content-container>.l-section__description {
         width: auto;
    }
}
@media screen and (min-width: 48em){
    .l-section .l-content-container>.l-section__description {
        width: auto;
    }
}

@media screen and (min-width: 48em){
    .l-section .l-content-container>.block-quote, .l-section .l-content-container>.cq-Editable-dom>.block-quote {
        width: auto;
    }
}
.search-nhw .ap-search-container button{
    position: absolute;
    right: 0px;
    padding: 12px;
    background-color: #f4f4f4;
    border-top:0px;
    border-right:0px;
    border-bottom:0px;
    border-radius: .25em;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;

}
.search-nhw .ap-search-container{
    border: 1px solid #aaa;
    max-width: 500px;
    border-radius: .25em;
    margin-top: 1rem;
}
.search-nhw  .ap-search-input-container input{
    width: 90%;
    margin:0;
    padding: 4px;
    border: 0px;
    font-size: 2.3rem;
    line-height: 1.1905 !important;
}
.search-nhw .s-title-results-half{
    width:49%;
    display:inline-block;
}
.search-nhw .s-title-results-half:nth-child(2) h3{
    padding-left:2rem;
}
@media (max-width: 640px) {
    .search-nhw .s-title-results-half{
        display:none;
    }
}


/* YT Video */
.video-component-container {
    max-width: 57.188em;
    margin: 0 auto;
    margin-bottom: 30px;
}

.video--container {
    max-width: 57.188em;
    margin: 0 auto;
    overflow: hidden;
    height: 0;
    margin-bottom: 50px;
    position: relative;
    padding-bottom: 56.25%;
}

.video--container .video--frame.video--frame__yt {
    width: 100%;
    height: 100%;
    max-height: 520px;
    position: absolute;
    top: 0;
    left: 0;
}

@media (min-width: 60em) {
    .aff-page .m-showhide__control {
        padding: 0.4em 0 0.825em 2.375em;
    }
}

/* YT Video in modal*/
.o-modal .video-component-container {
    margin-bottom: 0;
}

.o-modal .video--container {
    margin-bottom: 0;
}

.video-modal .o-modal .o-modal__content-holder,
.video-modal .o-modal .o-modal__content {
    padding: 0;
    background-color: transparent;
}




/* Aviva Quote Modal */
.quoteform__postal-code-container {
    min-height: 124px;
}

.quoteform__home-text {
    margin-top: 10px;
    font-size: 16px;
    margin-bottom: 30px;
}

.o-modal-quickmodal .m-card--50>.quickmodal-image-container {
    width: 100%;
    background-size: cover;
    background-position-x: 45%;
    height: 140px;
}

.o-modal-quickmodal .quickmodal-text-container {
    width: 100%;
    padding: 20px 30px;
    padding-left: 0;
    padding-right: 0;
    position: relative;
}

.quickmodal-tab-container {
    margin-bottom: 30px;
}

.quickmodal-inner-container {
    height: auto;
    z-index:3;
}

.region-modal-button {
    display: none;
}

@media screen and (min-width: 560px) {
    .o-modal-quickmodal .o-modal__content {
        padding: 0 !important;
    }
    .o-modal-quickmodal .o-modal__content-holder {
        padding: 0 !important;
    }
    .o-modal-quickmodal .quickmodal-text-container {
        padding: 30px;
    }
    .quickmodal-container {
        flex-direction: column;
    }
    .o-modal-quickmodal .m-card--50>.quickmodal-image-container {
        height: 37vh;
        /* auto */
    }
    .quickmodal-inner-container {
        height: 250px;
    }
    .o-modal-regionmodal {
        max-width: 500px;
    }
    .region-modal-container {
        margin: auto;
        margin-top: -15px;
        min-height: 350px;
    }
    #language-modal-title {
        margin-top: 10px;
    }
}

@media screen and (min-width: 992px) {
    .o-modal-quickmodal {
        max-width: 1023px;
    }

    .o-modal-quickmodal .m-card--50>.quickmodal-image-container {
        width: 50%;
        height: 430px;
        order: 2;
        /* auto */
    }
    .o-modal-quickmodal .m-card--50>.quickmodal-text-container {
        width: 50%;
    }
    .quickmodal-container {
        flex-direction: row;
    }
    .quickmodal-inner-container {
        height: auto;
    }
}


/* Aviva Quote Modal Tab */
.quoteform__submit > button {
    padding: 13px 14px;
    margin: 39px 0 0;
}

.quoteform__detailtype {
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    background: #F0F0F0;
    border: 1px solid #AAA;
    border-radius: 4px;
    margin: 0;
    padding: 0;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    flex-direction: row;
}
.quoteform__detailtype>label {
    width: 50%
}
.quoteform__detailtype-radio-controler {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    padding: 16px;
    width: 100%;
    height: 100%;
    text-align: center
}
.quoteform__detailtype-radio-controler .sublabel--icon svg path {
    fill: #5C596D
}
.sublabel--icon {
    width: 120px;
    max-height: 50px;
    margin: 0 auto
}
.sublabel--icon-column {
    display: none
}
.sublabel--icon-row {
    display: block
}
input#detailed:checked~.quoteform__detailtype-radio-controler,
input#quick:checked~.quoteform__detailtype-radio-controler {
    background: #4F9F31;
    border: 1px solid #4F9F31;
    border-radius: 4px;
    box-shadow: 0 0 0 1px #4F9F31;
    color: #fff
}
input#detailed:checked~.quoteform__detailtype-radio-controler .sublabel--icon svg path,
input#quick:checked~.quoteform__detailtype-radio-controler .sublabel--icon svg path {
    fill: #fff
}
.quoteform__postal-submit {
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-justify-content: space-between;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 20px;
    flex-direction: row;
}
.quoteform__postal,
.quoteform__submit {
    width: 47%
}
.sublabel--text {
    text-align: unset;
    margin-left: 0;
}

@media (max-width:560px) {
    .quoteform__detailtype {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column
    }
    .quoteform__detailtype>label {
        width: 100%
    }
    .quoteform__detailtype-radio-controler {
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-flex-direction: row;
        -ms-flex-direction: row;
        flex-direction: row
    }
    .sublabel--icon {
        width: 55px;
        margin: 0
    }
    .sublabel--text {
        text-align: left;
        margin-left: 20px
    }
    .sublabel--icon-column {
        display: block
    }
    .sublabel--icon-first-column {
        width: 80%;
    }
    .sublabel--icon-row {
        display: none
    }
    .quoteform__detailtype__simple svg.sublabel--icon-column {
        width: 85%
    }
    .quoteform__postal-submit {
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column
    }
    .quoteform__postal,
    .quoteform__submit {
        width: 100%
    }
}

/* form loading animation */

.ap__loading-overlay {
    transition: opacity .5s;
    z-index: 5000;
    height: 300px;
    width: 100%;
    opacity: 1;
    position: fixed;
    top:0;
}

.ap__loading-overlay .a-loading-indicator-container {
    left: 50%;
    margin: 2em 0 0 -5.5em;
    position: absolute;
}

.ap__notification-card {
    margin-top: 30px;
}



/* CANADA MAP COMPONENT */
.canada-map .regions a path {
    cursor: pointer;
    transition: fill 0.15s ease-out;
}
.canada-map .regions a:hover path, .canada-map .regions a:focus path {
    fill: #1A61BD;
    fill: rgba(6,87,200, 0.8);
}


.canada-map svg {
    max-height: 100%;
    width: 100%;
    margin: 0;
}
@media screen and (max-width: 320px){
    .canada-map svg {
        height:230px;
    }
}
@media screen and (max-width: 400px) and (min-width: 321px) {
    .canada-map svg {
        height:270px;
    }
}
@media screen and (max-width: 480px) and (min-width: 401px) {
    .canada-map svg {
        height:330px;
    }
}
@media screen and (max-width: 568px) and (min-width: 481px) {
    .canada-map svg {
        height:370px;
    }
}
@media screen and (max-width: 685px) and (min-width: 569px) {
    .canada-map svg {
        height:450px;
    }
}
@media screen and (max-width: 767px) and (min-width: 686px) {
    .canada-map svg {
        height:540px;
    }
}
@media screen and (max-width: 979px) and (min-width: 768px) {
    .canada-map svg {
        height:610px;
    }
}
@media screen and (max-width: 1024px) and (min-width: 980px) {
    .canada-map svg {
        height:780px;
    }
}
@media screen and (max-width: 1280px) and (min-width: 1025px) {
    .canada-map svg {
        height:800px;
    }
}
@media screen and (max-width: 1600px) and (min-width: 1281px) {
    .canada-map svg {
        height:820px;
    }
}
@media screen and (min-width: 1601px) {
    .canada-map svg {
        height:1080px;
    }
}



/* national home warranty */

.svg .national-home-warranty .o-masthead-logo {
    background: url(/content/dam/national-home-warranty/logo/NHW_logo-130x24.svg) no-repeat center 1.25em;
    background-position: center 0.875em;
    background-size: 10.125em;
}

/*@media (min-width: 35em){
    .svg .national-home-warranty .o-masthead-logo {
        background-position: center 1.25em;
        background-size: 6.875em;
    }
} */

.national-home-warranty .o-masthead-logo {
    margin: 0 auto;
    width: 12.25em;
}
@media (min-width: 35em) {
    .national-home-warranty .o-masthead-logo {
        float: left;
        margin-right: 2.1875em;
        padding-right: 0;

    }
}
@media (min-width: 60em) {
    .national-home-warranty .o-masthead-logo {
        margin-right: 5em;

    }
}


.a-form--field--required--label {
    color: #bd2624;
}



/* my rewards start */
#myrewards_banner{
    min-height:60px;
    background-color:#00589c;
    background:#00589c;
}
.morerewards .m-card.t-accent-dark--light-blue,
.morerewards .m-card.t-accent-dark--light-blue .a-progress-bar:after,
.morerewards .m-card.t-accent-dark--light-blue .a-progress-bar:before,
.morerewards .m-card.t-accent-dark--light-blue .a-progress-bar__step:after,
.morerewards .m-card.t-accent-dark--light-blue .a-progress-bar__step:before,
.morerewards .m-card.t-accent-dark--light-blue .a-progress-bar__step strong:after,
.morerewards .m-card.t-accent-dark--light-blue .a-progress-bar__step strong:before,
.morerewards .m-card.t-accent-dark--light-blue .a-progress-bar__ui:after,
.morerewards .m-card.t-accent-dark--light-blue .a-progress-bar__ui:before,
.morerewards .m-card.t-accent-dark--light-blue .a-progress-bar__ui div:after,
.morerewards .m-card.t-accent-dark--light-blue .a-progress-bar__ui div:before,
.morerewards .t-accent-dark--light-blue,
.morerewards .t-accent-dark--light-blue .a-progress-bar:after,
.morerewards .t-accent-dark--light-blue .a-progress-bar:before,
.morerewards .t-accent-dark--light-blue .a-progress-bar__step:after,
.morerewards .t-accent-dark--light-blue .a-progress-bar__step:before,
.morerewards .t-accent-dark--light-blue .a-progress-bar__step strong:after,
.morerewards .t-accent-dark--light-blue .a-progress-bar__step strong:before,
.morerewards .t-accent-dark--light-blue .a-progress-bar__ui:after,
.morerewards .t-accent-dark--light-blue .a-progress-bar__ui:before,
.morerewards .t-accent-dark--light-blue .a-progress-bar__ui div:after,
.morerewards .t-accent-dark--light-blue .a-progress-bar__ui div:before,
.morerewards .t-card-accent-dark--light-blue .m-card,
.morerewards .t-card-accent-dark--light-blue .m-card .a-progress-bar:after,
.morerewards .t-card-accent-dark--light-blue .m-card .a-progress-bar:before,
.morerewards .t-card-accent-dark--light-blue .m-card .a-progress-bar__step:after,
.morerewards .t-card-accent-dark--light-blue .m-card .a-progress-bar__step:before,
.morerewards .t-card-accent-dark--light-blue .m-card .a-progress-bar__step strong:after,
.morerewards .t-card-accent-dark--light-blue .m-card .a-progress-bar__step strong:before,
.morerewards .t-card-accent-dark--light-blue .m-card .a-progress-bar__ui:after,
.morerewards .t-card-accent-dark--light-blue .m-card .a-progress-bar__ui:before,
.morerewards .t-card-accent-dark--light-blue .m-card .a-progress-bar__ui div:after,
.morerewards .t-card-accent-dark--light-blue .m-card .a-progress-bar__ui div:before,
.morerewards .t-card-accent-dark .m-card.t-accent-dark--light-blue,
.morerewards .t-card-accent-dark .m-card.t-accent-dark--light-blue .a-progress-bar:after,
.morerewards .t-card-accent-dark .m-card.t-accent-dark--light-blue .a-progress-bar:before,
.morerewards .t-card-accent-dark .m-card.t-accent-dark--light-blue .a-progress-bar__step:after,
.morerewards .t-card-accent-dark .m-card.t-accent-dark--light-blue .a-progress-bar__step:before,
.morerewards .t-card-accent-dark .m-card.t-accent-dark--light-blue .a-progress-bar__step strong:after,
.morerewards .t-card-accent-dark .m-card.t-accent-dark--light-blue .a-progress-bar__step strong:before,
.morerewards .t-card-accent-dark .m-card.t-accent-dark--light-blue .a-progress-bar__ui:after,
.morerewards .t-card-accent-dark .m-card.t-accent-dark--light-blue .a-progress-bar__ui:before,
.morerewards .t-card-accent-dark .m-card.t-accent-dark--light-blue .a-progress-bar__ui div:after,
.morerewards .t-card-accent-dark .m-card.t-accent-dark--light-blue .a-progress-bar__ui div:before,
.morerewards .t-card-accent-light .m-card.t-accent-dark--light-blue,
.morerewards .t-card-accent-light .m-card.t-accent-dark--light-blue .a-progress-bar:after,
.morerewards .t-card-accent-light .m-card.t-accent-dark--light-blue .a-progress-bar:before,
.morerewards .t-card-accent-light .m-card.t-accent-dark--light-blue .a-progress-bar__step:after,
.morerewards .t-card-accent-light .m-card.t-accent-dark--light-blue .a-progress-bar__step:before,
.morerewards .t-card-accent-light .m-card.t-accent-dark--light-blue .a-progress-bar__step strong:after,
.morerewards .t-card-accent-light .m-card.t-accent-dark--light-blue .a-progress-bar__step strong:before,
.morerewards .t-card-accent-light .m-card.t-accent-dark--light-blue .a-progress-bar__ui:after,
.morerewards .t-card-accent-light .m-card.t-accent-dark--light-blue .a-progress-bar__ui:before,
.morerewards .t-card-accent-light .m-card.t-accent-dark--light-blue .a-progress-bar__ui div:after,
.morerewards .t-card-accent-light .m-card.t-accent-dark--light-blue .a-progress-bar__ui div:before,
.morerewards .o-masthead{
    background-color:#00589c;
    background:#00589c;
}
#myrewards_banner .o-masthead-logo{
    background:none;
}
#myrewards_banner .o-masthead-logo__link{
    background-image: url("/content/dam/aviva-public/logos/morerewards.svg") !important;
    position: relative;
    top: -4px;
    background-position: 0%;
    background-size: 7rem;
    background-repeat:no-repeat;

}
.right-col-masthead{
    margin-left: auto;
    order: 2;
    justify-content: center;
    align-self: center;
    display: flex;
    margin-top: 5px;
}
.my-rewards-tel{
    align-self: flex-end;
    margin-right:4rem;
}
.my-rewards-tel a, .powered_aviva_link{
    border-bottom:0px;
    color:#fff;
}
.my-rewards-tel a:before{
    display:block;
    float:left;
    content:" ";
    height:15px;
    width:15px;
    background-image:url("//cdn.aviva.com/static/core/icons/v1/functional/user-actions/svg/phone-white.svg");
    background-size:100%;
    margin-top: 6px;
    margin-right: 8px;
}
.morerewards .menu--right{
    display:none;
}
@media screen and (max-width: 480px){
    .morerewards .o-masthead__navigation-container{
        display:block;
    }
    .right-col-masthead {
        margin-left:auto;
        display:block;
        text-align:center;
        margin-bottom:10px;
    }
    .my-rewards-tel {
        margin-right: auto;
        display: block;
        margin: auto;
        width: 150px;
    }
    .powered_by_aviva{
        float:none;
        display:block;
        margin:auto;
        padding-top:10px;
    }
}

.svg .morerewards .o-masthead-logo {
    background-position: left center;
    background-size: 7rem;
    width: auto;
    margin: 0;
}
@media screen and (max-width: 960px) {
    .svg .morerewards .o-masthead-logo{
        background-position: left center;
        width: auto;
        margin: 0;
    }
}
@media screen and (max-width: 480px) {
    .svg .morerewards .o-masthead-logo{
        margin: auto;
        width:7rem;

    }
}
/* MORE REWARDS END */


.a-color-white {
    color: #fff;
}

.form-group + .l-columns > .l-columns__column > .m-form-row{
    margin: 1.875em 0;
}


.videoWrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    padding-top: 25px;
    height: 0;
}
.videoWrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}