@font-face {
    font-family: 'BBCReithSans';
    src: url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W_Rg.eot');
    src: url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W_Rg.eot?#iefix') format('embedded-opentype'),
        url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W_Rg.woff2') format('woff2'),
        url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W_Rg.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'BBCReithSans';
    src: url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W_Md.eot');
    src: url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W_Md.eot?#iefix') format('embedded-opentype'),
        url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W_Md.woff2') format('woff2'),
        url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W_Md.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'BBCReithSans';
    src: url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W-It.eot');
    src: url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W-It.eot?#iefix') format('embedded-opentype'),
        url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W-It.woff2') format('woff2'),
        url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W-It.woff') format('woff');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'BBCReithSans';
    src: url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W_MdId.eot');
    src: url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W_MdId.eot?#iefix') format('embedded-opentype'),
        url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W_MdId.woff2') format('woff2'),
        url('/customfiles/tvlicensingassets/fonts/BBCReithSans_W_MdId.woff') format('woff');
    font-weight: 700;
    font-style: italic;
}

html {
    background: #f4f4f4;
    --primary-colour: #3b38ff;
    --primary-colour-hover: #312fd5;
    --light-border-colour: #e0e0e0;
    --strong-background-color: #000046;
    font-family: BBCReithSans, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

table {
    border: 0px
}

iframe {
    border: 0px
}

h1 {
    font-family: BBCReithSans, sans-serif;
    font-weight: 700;
    line-height: 40px;
    font-size: 32px;
    margin: 0;
    padding: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--light-border-colour);
}

/* Working down the page */

/* Web form link */

#divZHTML,
.AccessibleLink {
    display: block;
    background: var(--light-border-colour);
    font-family: sans-serif, arial;
}

.AccessibleLink a,
#divZHTML a {
    text-decoration: none;
    display: block;
    padding: 6px 10px;
    color: #212121;
}

.AccessibleLink a:hover,
#divZHTML a:hover,
.AccessibleLink a:focus,
#divZHTML a:focus {
    text-decoration: underline;
}

.HiddenUntilFocused {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    overflow: hidden;
}

.HiddenUntilFocused a {
    height: 1px !important;
    width: 1px !important;
    padding: 0;
    margin: 0;
}

.HiddenUntilFocused a:focus {
    height: auto !important;
    width: auto !important;
    padding: 5px;
}

/* Header frame (and footer) */

#headeriframe,
#footeriframe {
    position: relative;
    display: block;
}

#iframeheaderdiv {
    background: white;
}

#TopControls {
    display: none;
}

.contentcontainer {
    position: relative;
    margin: 0 auto;
    overflow: visible;
    background: white;
}

/* Sub link button is a link which looks like a button in submission page */
.control,
.controlsubmit,
.sublinkbutton {
    max-width: 150px;
    width: 100%;
    color: #fff;
    background-color: var(--primary-colour);
    margin-top: 6px;
    margin-bottom: 0;
    padding: 10px 12px 9px;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    line-height: 1.1875;
    height: 100% !important;
    font: 100% BBCReithSans, system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
    font-size: 13px !important;
    outline: none;
    text-align: left;
    text-decoration: none;
    display: inline-flex;
    justify-content: space-between;
}

.control:hover,
.controlsubmit:hover,
#btnBack1:hover,
.sublinkbutton:hover {
    background-color: var(--primary-colour-hover);
    color: #fff;
}

.control:active,
.control:focus,
.controlsubmit:active,
.controlsubmit:focus,
#btnBack1:active,
#btnBack1:focus,
.sublinkbutton:active,
.sublinkbutton:focus {
    border-color: var(--primary-colour);
    box-shadow: inset 0 0 0 1px var(--primary-colour), inset 0 0 0 2px #ffffff;
    background-color: var(--primary-colour);
    color: #fff;
}

#btnBack1 {
    background-color: rgb(255 255 255);
    color: var(--primary-colour);
    border: 1px solid var(--primary-colour);
}

#btnBack1::after {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg focusable="false" preserveAspectRatio="xMidYMid meet" fill="%233b38ff" aria-label="Back" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" role="img" class="cds--btn__icon" xmlns="http://www.w3.org/2000/svg"><path d="M6.7 12.3 2.9 8.5 15 8.5 15 7.5 2.9 7.5 6.7 3.7 6 3 1 8 6 13z"></path></svg>');
    background-size: contain;
}

#btnBack1:focus::after,
#btnBack1:hover::after {
    background-image: url('data:image/svg+xml;utf8,<svg focusable="false" preserveAspectRatio="xMidYMid meet" fill="%23fff" aria-label="Back" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" role="img" class="cds--btn__icon" xmlns="http://www.w3.org/2000/svg"><path d="M6.7 12.3 2.9 8.5 15 8.5 15 7.5 2.9 7.5 6.7 3.7 6 3 1 8 6 13z"></path></svg>');
}

#btnNext1::after,
#btnSubmit1::after,
.sublinkbutton::after {
    content: "";
    width: 16px;
    height: 16px;
    background-image: url('data:image/svg+xml;utf8,<svg focusable="false" preserveAspectRatio="xMidYMid meet" fill="%23fff" aria-label="Submit" aria-hidden="true" width="16" height="16" viewBox="0 0 16 16" role="img" class="cds--btn__icon" xmlns="http://www.w3.org/2000/svg"><path d="M9.3 3.7 13.1 7.5 1 7.5 1 8.5 13.1 8.5 9.3 12.3 10 13 15 8 10 3z"></path></svg>');
    background-size: contain;
}

/* This is so they don't take up space when hidden */
#btnBack1[style*="visibility:hidden"],
#btnBack1[style*="visibility: hidden"],
#btnNext1[style*="visibility:hidden"],
#btnNext1[style*="visibility: hidden"],
#btnSubmit1[style*="visibility:hidden"],
#btnSubmit1[style*="visibility: hidden"] {
    display: none !important;
}

.footerreg {
    margin: auto;
    margin-top: -40px;
    width: 98%;
    max-width: 99rem;
    text-align: left;
}

.footerreg > div {
    box-sizing: border-box;
    max-width: 75%;
    margin: auto;
    margin-top: 25px;
    padding: 0 5px;
    display: flex;
    gap: 8px;
}

/* these strange numbers are 1055 / 0.98 and 970 / 0.98, because the main form frame is 98% width */
@media only screen and (max-width: 1076.5px) {
    .footerreg > div {
        max-width: unset;
        width: 100%;
        padding: 0 27px;
    }
}

@media only screen and (max-width: 683.67px) {
    .footerreg > div {
        padding: 0 5px;
        margin-top: 8px;
    }
}

/* This stops the br from taking space */
.footerreg > div > br {
    display: none;
}

.backgroundiframe {
    background-color: var(--strong-background-color);
    border: 1px solid var(--strong-background-color);
}

.loadFrameBottomButton {
    background-color: var(--strong-background-color);
}

/* Used in submission messages */

.button-as-link {
    padding: 0;
    font: inherit;
    cursor: pointer;
    border: none;
    display: inline-block;
    text-decoration: underline;
    background-color: transparent;
    color: var(--primary-colour);
}

/* Full-page submission styles */

.subPageContainer {
	width: 98%;
    max-width: 99rem;
    margin: 0 auto;
    text-align: left;
    font-family: BBCReithSans, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.subPageStyle {
    text-align: left;
    box-sizing: border-box;
    max-width: 75%;
    margin: auto;
    margin-top: 25px;
    table-layout: fixed;
    padding: 0 5px;
}

/* these strange numbers are 1055 / 0.98 and 970 / 0.98, because the main form frame is 98% width */
@media only screen and (max-width: 1076.5px) {
    .subPageStyle {
        max-width: unset;
        width: 100%;
        padding: 0 27px;
    }
}

@media only screen and (max-width: 683.67px) {
    .subPageStyle {
        padding: 0 5px;
        margin-top: 8px;
    }
}

.subPageStyle h1 {
    text-align: left;
}

.subPageStyle p {
    text-align: left;
    padding: 5px 0;
}

.InfoBox, p.InfoBox {
    padding: 10px 10px 10px 46px;
    background: #edf5ff;
    border: 1px solid rgba(0, 67, 206, .3019607843);
    position: relative;
    font-weight: normal;
    display: block;
    text-align: left;
    border-inline-start: 3px solid #0043ce;
}

.InfoBox::before, p.InfoBox::before {
    position: absolute;
    left: 10px;
    top: 10px;
    content: 'i';
    font-weight: bold;
    font-family: Georgia, serif;
    color: white;
    width: 18px;
    height: 18px;
    background-color: var(--primary-colour);
    border: 2px solid var(--primary-colour);
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}

#btnSubmit1 {
    display: none;
}