:root {
    --stockport-red:#AC1E2D;
    --salford-royal-blue:#1C57A5;
    --bolton-dark-green:#286140;
    --manchester-purple:#8F1A95;
    --thameside-stone:#D3C5A0;
    --wigan-yellow:#FFD84A;
    --bury-orange:#F57F45;
    --rochdale-blue:#96CFEA;
    --trafford-green: #C7DB48;
    --oldham-pink:#F388AF;
    --greater-black:#0A0203;

    --base-font-size: 1.125rem;
    --primary-font-colour: #0A0203;
    --primary-brand-colour: #0A0203;
    --primary-background-colour: #FFF;
    --secondary-background-color: #f9f9f9;
    --navigation-text-colour: #fff;
    --sidebar-counter-border-colour: #0A0203;
    --sidebar-counter-background-colour: #fff;
    --faq-icon-background-colour: #fff;
    --input-focus-colour: #FFD84A;
    --input-border-colour: #0A0203;
    --primary-button-background-colour: #0A0203;
    --primary-button-text-colour: #fff;
    --primary-button-border-colour: #0A0203;
    --primary-button-hover-background-colour: #014171;
    --primary-button-hover-text-colour: #fff;
    --primary-button-hover-border-colour: transparent;
    --secondary-button-background-colour: #fff;
    --secondary-button-text-colour: #0A0203;
    --secondary-button-border-colour: #0A0203;
    --secondary-button-hover-background-colour: #0A0203;
    --secondary-button-hover-text-colour: #fff;
    --secondary-button-hover-border-colour: #0A0203;
    --button-focus-colour: #0A0203;
    --error-border-colour: #AC1E2D;
    --error-text-colour: #AC1E2D;
    --progress-background: #E9EFEC;
    --alert-heading-font-colour: #0A0203;
    --alert-information-colour: #96CFEA;
    --alert-warning-colour: #F57F45;
    --alert-success-colour: #286140;
}

body {
    font-size: var(--base-font-size);
    line-height: 1.5;
    font-family: "inter", Arial, "Helvetica Neue", Helvetica, sans-serif;
    margin: 0;
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    color: var(--primary-font-colour);
}

*, *:focus, *:hover {
    box-sizing: border-box;
}

.skip-to-content-link {
    background-color: var(--wigan-yellow);
}

header {
    padding: 1.5rem 0 1rem;
    -webkit-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
    -moz-box-shadow: 0px 0px 5px 0px rgba(0,0,0,0.1);
    box-shadow: 0 0 5px 0px rgba(0, 0, 0, 0.1);
}

main {
    margin: 0 auto;
    max-width: 1440px;
    padding: 0 1rem;
}

header .logo a {
    display: inline-block;
}

main {
    flex: 1 0 auto;
}

.logo img {
    height: auto;
	display: block;
    width: 10.313rem;
}

/* Text Elements */

h1 {
    font-size: 3.813rem; /* 61 px */
    line-height: 1;
}

h2 {
    font-size: 2.438rem; /* 39px */
    line-height: 1;
}

h3 {
    font-size: 1.938rem; /* 31px */
    line-height: 1;
}

h4 {
    font-size: 1.563rem;
    line-height: 1;
    font-weight:600;
}

h6 { 
    font-size: 1.25rem;
    line-height: 1;
    font-weight: 600;
}

.product-name {
    margin: 3rem 0 2rem;
	font-size: 3.063rem;
	display: block;
}

@media only screen and (max-width: 1024px) {
    body { font-size: 1rem; }
    h1 { font-size: 3.063rem; /* 49px */ }
    h2 { font-size: 1.938rem; /* 31px */ }
    h3 { font-size: 1.563rem; /* 25px */ }
    h4 { font-size: 1.25rem; /* 20px */ }
    .product-name { font-size: 2.438rem; /* 39px */ }
}

.ot-floating-button__front.custom-persistent-icon button,
.ot-floating-button__back.custom-persistent-icon button,
#onetrust-pc-sdk button,
#onetrust-banner-sdk button{
    margin-top:0;
    &:after{
        display:none;
    }
    &:hover:after{
        display:none;
    }
}


/* Footer */

footer {
    flex-shrink: 0;
    margin-top: 3rem;
}

/* Footer */
.help-container {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0) 50%), url("../images/orange.svg") center no-repeat;
    background-position: right center;
    background-size: 60%;
    background-color: #8F1A95;
    padding: 3rem 0 4rem;
}
.help-content {
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    box-sizing: border-box;
}
.help-content h2 {
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 3.063rem;
}
.help-content h2 {
    margin-bottom: 1rem;
}
.help-content h5 {
    font-size: 1.563rem;
	margin: 1rem 0;
}
.help-content h5 a {
	color: #FFF;
	text-decoration: none;
    word-wrap: break-word;
}
.help-content p {
    margin-bottom: 10px;
    width: 45%;
    word-wrap: break-word;
}
.phone-number {
    font-weight: bold;
}
.help-button {
    background-color: white;
    color: #000;
    padding: 0.8rem 3rem;
    font-size: 1rem;
    font-weight:500;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 1.5rem;
}

.help-button:hover {
    background-color: transparent;
    color: white;
    border: 2px solid;
}

.help-button:after {
    display: none;
}

.help-button:focus-visible {
    background-color: #FFF;
    color: var(--greater-black);
}

.footer-container {
    box-sizing: border-box;
    display: flex;
    background-color: var(--greater-black);
    flex-direction: column;
    align-items: center;
    width: 100%;
    color:White;
    padding: 2rem 0;
    ul {
        list-style: none;
        padding: 0;
    }
    h2 {
        font-weight: bold;
    }
    li{
        padding-bottom: 2px;
    }
    li a{
        color:white;
        text-decoration: none;
        font-size: 1rem;
    }
}

.footer-links {
    display: flex;
    gap: 2rem;
    a:hover {
        text-decoration: underline;
    }
}

.footer-logos {
    display: flex;
    gap: 3rem;
    margin-top: 2.188rem;
}

.footer-top, .footer-bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0px;
    box-sizing: border-box;
    max-width: 1440px;
    padding: 0 1rem;
    p {
        max-width: 1440px;
        font-size: 1rem;
    }
}
.footer-bottom a {
    color: #fff;
}
.footer-bottom {
    margin: 0;
    padding: 0 1rem;
}

.footer-top h6 {
    margin: 1rem 0;
    }

.white-logo {
    width: 250px;
    height: 80px;
}
.white-fscs {
    width: 75px;
}
.social-icons {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}
.social-icons a {
    height: 1.5rem;
    width: 1.5rem;
    display: block;
}
.social-icons a img {
    transition: all ease 0.3s;
}
.social-icons a:hover img {
    transform: scale(1.5);
}

.footer-container {
    a:focus-visible {
        text-decoration: underline;
    }
}

@media only screen and (max-width: 980px) {
    footer {
        text-align: left;
    }
    footer ul li {
        display: block;
        padding: 0 0 10px 0;
        border: 0;
    }
    .help-container {
        background: none;
        background-color: #8F1A95;

    }
    .help-content {
        padding-left: 1rem;
    }
    .footer-container {
        flex-direction: column;
    }
}

/* Responsive */
/* Mobile Devices*/
@media (max-width: 768px){
    .footer-container {
        flex-direction: column;
        text-align: left;
    }
}

/*Tablets (768px - 1024px) */

@media (min-width: 768px) and (max-width: 1024px) {
    .footer-container {
        flex-direction: column;
    }
    .help-container {
        background: none;
        background-color: #8F1A95;
        padding: 2rem 1rem;
    }
    .help-content {
        padding-left: 1rem;
    }
}
@media (max-width: 1163px){
    .help-container {
        background: none;
        background-color: #8F1A95;
        padding: 1.5rem 0 1rem;
    }
    .help-content {
        padding-left: 1rem;
    }
    .help-content p {
        width: 100%;
    }
    .help-content h2 {
        font-size: 2.438rem;
    }
    .help-content h3 {
        font-size: 1.938rem;
    }
}

@media only screen and (max-width: 705px) {
    .help-container {
        background: none;
        background-color: #8F1A95;
    }
    .help-content {
        margin-bottom: 0.625rem;
        width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .help-content p{
        font-size: 1rem;
        margin-bottom: 0.625rem;
        width: 100%;
        word-wrap: break-word;
    }
    /* Footer Mobile */
    .footer-top, .footer-bottom {
        flex-direction: column;
        justify-content: left;
    }
    .social-icons {
        margin-left:2.5rem;
        margin-right: 0;
    }
    .footer-bottom {
        margin-left:2.5rem;
        padding-right: 0.625rem;;
    }
    footer ul {
        display: block;
        border: 0;
        margin:0;
        padding: 0;
    }
    .social-icons {
        margin:0;
        padding-left: 0;
        padding-top: 1rem;
    }
    .footer-bottom {
        margin: 0;
        padding: 1rem 1rem 0;
    }
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
}
@media only screen and (max-width: 400px) {
    .footer-logos {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Hyperlinks */

a {
    color: var(--primary-brand-colour);
    text-underline-offset: .15em;
    overflow-wrap: break-word;
    word-wrap: break-word;
        &:visited {
            color: var(--greater-black);
        }
        &:hover {
            text-decoration: none;
        }
        &:focus-visible {
            outline: 2px solid yellow;
            outline-offset: 2px;
            box-shadow: 0 0 0 2px blue;
            border-radius: 4px;
            display: inline-block;
        }
}

/* Buttons */

button,
a.link-button {
    padding: 0.75rem 1.25rem;
    background: var(--greater-black);
    color: #fff;
    border: 0;
    line-height: 25px;
    border-radius: 5px;
    font-size: 1rem;
    border-radius: 50px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    letter-spacing: 0.02rem;
    border: 2px solid transparent;
    margin-top: 1rem;
    font-family: "inter", Arial, "Helvetica Neue", Helvetica, sans-serif;
        &:after {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='9' height='14' viewBox='0 0 9 14'><path d='M1 1L7 7L1 13' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' fill='none'/></svg>");
            background-repeat: no-repeat;
            vertical-align: middle;
            width: 9px;
            height: 15px;
            content: '';
            display: inline-block;
            margin-left: 10px;
        }
        &:hover {
            background-color: transparent;
            color: var(--greater-black);
            border: 2px solid var(--greater-black);
            text-decoration: none;
            cursor:pointer;
        }
        &:hover::after {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='9' height='14' viewBox='0 0 9 14'><path d='M1 1L7 7L1 13' stroke='%230A0203' stroke-width='2' stroke-linecap='round' fill='none'/></svg>");
        }
        &:focus-visible {
            background-color: #fff;
            color: var(--greater-black);
            border: 2px solid var(--greater-black);
            outline: 0.125rem solid yellow;
            outline-offset: 0.125rem;
            box-shadow: 0 0 0 0.125rem blue;
            border-radius: 4rem;
        }
        &:focus-visible:after {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='9' height='14' viewBox='0 0 9 14'><path d='M1 1L7 7L1 13' stroke='%230A0203' stroke-width='2' stroke-linecap='round' fill='none'/></svg>");
        }
}

button.secondary-action,
a.link-button.secondary-action {
    border: 2px solid var(--secondary-button-border-colour);
    margin-top: 0;
        &:after,
        &:hover:after {
            display: none;
        }
        &:hover,
        &:focus-visible {
            background-color: var(--greater-black);
            color: #fff;
        }
}

.back-button {
    border-bottom: 2px solid;
    width: max-content;
    margin-top: 2rem;
        &:hover {
            border-bottom: 2px solid transparent;
        }
        &:focus-visible {
            display: block;
        }
}

.back-button a {
    background: none;
    padding: 0 0 0.2rem 0;
    color: var(--primary-brand-colour);
    margin-top: 1.5rem;
    text-decoration: none;
    border: none;
        &:before {
            height: 20px;
            width: 20px;
            content: '';
            display: inline-block;
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='9' height='14' viewBox='0 0 9 14' fill='none'><path d='M8 1L2 7L8 13' stroke='%230A0203' stroke-width='2' stroke-linecap='round'/></svg>");
            background-repeat: no-repeat;
            background-position: center left;
            background-size: 7px 12px;
            top: 4px;
            position: relative;
        }
        &:focus-visible {
            display: block;
        }
}

a.back-link:link {
    text-decoration: none;
        &:before {
            transform: none;
            border: none;
            margin: 0;
        }
        &:hover {
            border-bottom: 2px solid transparent;
        }
}

a.link-button.secondary-action#existing-customer-button:before,
a.link-button.secondary-action#existing-customer-button:focus-visible:before {
    background: url(../images/person-icon.svg) no-repeat left center / 15px auto;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    content: '';
    display: inline-block;
    margin-right: 7px;
}

a.link-button.secondary-action#existing-customer-button:hover:before,
a.link-button.secondary-action#existing-customer-button:focus-visible:before {
    background: url(../images/person-icon-white.svg) no-repeat left center / 15px auto;
}

a.link-button.secondary-action#existing-customer-button:focus-visible {
    background-color: var(--greater-black);
    color: #fff;
}

#delete-transfer-modal-return-button {
    color: var(--greater-black);
    background: transparent;
    border: 2px solid var(--greater-black);
        &:after {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='9' height='14' viewBox='0 0 9 14'><path d='M1 1L7 7L1 13' stroke='%230A0203' stroke-width='2' stroke-linecap='round' fill='none'/></svg>");
        }
        &:hover {
            color: #fff;
            background: var(--greater-black);
        }
        &:hover:after {
            background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='9' height='14' viewBox='0 0 9 14'><path d='M1 1L7 7L1 13' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' fill='none'/></svg>");
        }
}

@media only screen and (max-width: 400px) {
    button,
    a.link-button,
    .getting-started button#continue-button  {
        width: 100%;
        line-height: normal;
        padding: 1rem 3rem;
    }
}

/* Inputs */

.question-wrapper input[type='text'],
.question-wrapper input[type='email'],
.question-wrapper input[type='tel'],
.question-wrapper input[type='password'],
.question-wrapper input[type='number'],
.autocomplete__wrapper input,
.question-wrapper select {
    font-family: "inter", Arial, "Helvetica Neue", Helvetica, sans-serif;
    border: 2px solid var(--input-border-colour);
    padding: 8px 12px;
    margin-bottom: 10px;
    border-radius: 6px;
    max-width: 45%;
    width: 100%;
}

.question-wrapper select {
    padding: 10px 5px;
}

.autocomplete__wrapper {
    max-width: 45%;
}

.autocomplete__wrapper input {
    max-width: none !important;
}

.question-wrapper select:focus,
.question-wrapper input[type='text']:focus,
.question-wrapper input[type='email']:focus,
.question-wrapper input[type='tel']:focus,
.question-wrapper input[type='password']:focus,
.question-wrapper input[type='number']:focus,
.question-wrapper textarea:focus,
.autocomplete__wrapper input:focus {
    box-shadow: inset 0 0 0 1px;
}

input[type='radio'], 
input[type='checkbox'] {
    top: 0;
    accent-color: var(--salford-royal-blue);
    width: 2rem;
    height: 2rem;
        &:focus-visible {
            outline: 3px solid var(--input-focus-colour);
            outline-offset: 0;
        }
}

.two-char {
    max-width: 3.5em !important;
}
.four-char {
    max-width: 5em !important;
}

.question-label {
    font-weight: normal;
}

.question-hint {
    margin: 6px 0 15px;
}

@media only screen and (max-width: 800px) {
    .question-wrapper input[type='text'],
    .question-wrapper input[type='email'],
    .question-wrapper input[type='tel'],
    .question-wrapper input[type='password'],
    .question-wrapper input[type='number'],
    .autocomplete__wrapper,
    .autocomplete__wrapper input,
    .question-wrapper select {
        max-width: 100%;
    }
    input#investment-amount-question-input {
        max-width: 90%;
    }
}

/* Errors */

.validation-summary-errors {
    background: var(--stockport-red);
    padding: 1.5rem 1rem 1rem;
    margin-bottom: 1.5rem;
    max-width: 50%;
    color: #fff;
    border-radius: 12px;
        h2 {
            font-size: var(--base-font-size);
            display: block;
            background-image: url(../images/error-icon.svg);
            margin: 10px 0 2rem;
            background-position: left 1rem center;
            background-size: 18px;
            background-repeat: no-repeat;
            padding-left: 3rem;
            color: #fff;
        }
        ul li {
            color: #fff;
        }
}

.has-error {
    padding-left: 1.5rem;
    border-left: 4px solid var(--error-border-colour);
}

.field-validation-error {
    margin: 6px 0 1rem;
    font-weight: bold;
}

@media only screen and (max-width: 980px) {
    .validation-summary-errors {
        max-width: 100%;
    }
}

/* Alerts */

.alert {
    border-radius: 12px;
    margin: 1rem 0 0;
    padding: 1.5rem 1rem;
}

.alert.information {
    border-color: transparent;
    background: var(--alert-information-colour);
}
.alert.information p.alert-heading {
    padding-left: 2.5rem;
    font-weight: bold;
    background: url(../images/info-icon.svg) no-repeat left 0.5rem center / 20px auto;
}

.alert.complete {
    border-color: transparent;
    background: var(--trafford-green);
}
.alert.complete p.alert-heading {
    background: none;
    padding-left: 0.5rem;
    font-weight: bold;
}

#cop-result-match.alert.complete {
    background: var(--trafford-green);
}

.alert.warning {
    border-color: transparent;
    background: var(--alert-warning-colour);
}
.alert.warning p.alert-heading {
    padding-left: 2.5rem;
    font-weight: bold;
    background: url(../images/warning-icon.svg) no-repeat left 0.5rem center / 20px auto;
}

/* Progress bar */

.step1#progress-bar:before {
    background-color: var(--rochdale-blue);
}
.step2#progress-bar:before {
    background-color: var(--bury-orange);
}
.step3#progress-bar:before {
    background-color: var(--manchester-purple);
}
.step4#progress-bar:before {
    background-color: var(--trafford-green);
}
.step5#progress-bar:before {
    background-color: var(--oldham-pink);
}
.step6#progress-bar:before {
    background-color: var(--salford-royal-blue);
}
.step7#progress-bar:before {
    background-color: var(--bolton-dark-green);
}
.step8#progress-bar:before {
    background-color: var(--thameside-stone);
}
.step9#progress-bar:before {
    background-color: var(--wigan-yellow);
}

/* T&Cs */

.download-description {
    display: block;
}

.unread-doc,
.read-doc {
    display: inline-block;
    padding-left: 28px;
    background: url(../images/unread.svg) left 4px center no-repeat;
    background-size: 16px;
}

.read-doc {
    background-image: url(../images/read.svg);
}

.isa-transfer-section {
    background: #f5f5f5;
    border-radius: 12px;
    padding: 0.1rem 2rem 2rem;
    margin-top: 2rem;
}

#non-electronic-isa-transfer-notice {
    background-color: var(--alert-information-colour);
    padding: 0.1em 2rem 1rem;
}

/* Question Specific */

.getting-started h1#PageHeading {
    margin-top: 5rem;
}

#privacy-agreement-question a,
#fscs-question a,
#terms-question a {
    color: var(--salford-royal-blue);
    display: inline-block;
}

#terms-question a#terms-and-conditions-link {
    padding-bottom: 0;
}

#joint-account {
    border: none;
}

#existing-isa,
#nationality,
#date-of-birth,
#sex,
#employment,
#fatca-details,
#marketing-preferences,
#email-address-questions,
#source-of-wealth,
#FSCS,
.memorable-information-section,
.additional-security-info,
#transfer-authority .question-wrapper {
    border-top: 1px solid rgba(80, 90, 95, .1);
}

#contact-number,
#interest-frequency,
#isa-transfer-account-details,
#transfer-isa-amount-question {
    border: none;
    margin: 0;
}

#date-of-birth-question,
#nationality-question {
    margin-top: 1rem;
}

#email-address-questions {
    margin-top: 2rem;
    padding-top: 1rem;
}

#marketing-site-url {
    margin-top: 1rem;
    display: inline-block;
}

.review-your-application hr {
    border: none;
    margin: 0;
}

.confirm-section {
    padding-bottom: 0.5em;
    border: 1px solid rgba(10, 2, 3, .1);
    border-radius: 12px;
    padding: 0 1.5rem 2rem;
    margin-top: 2rem;
}

#find-address-button { text-transform: lowercase; }
#find-address-button::first-letter { text-transform: uppercase }

@media only screen and (max-width: 980px) {
    .getting-started h1#PageHeading {
        margin-top: 3rem;
    }
}

/* Address Lookup */

#postcode-replay {
    margin: 1em 0;
}
    #postcode-replay .postcode {
        margin-right: 1em;
    }

/* Thank you page table */

.thankyoupageinfo1 {
    width: 100%;
    border-collapse: collapse;
    border-color: #000000;
    font-size: var(--base-font-size);
}

.thankyoupageinfo1 th {
    width: 25%;
    font-size: var(--base-font-size);
}

.thankyoupageinfo1 th,
.thankyoupageinfo1 td {
    vertical-align: top;
    text-align: left;
    padding: 5px;
}

@media only screen and (max-width: 920px) {
    .thankyoupageinfo1 th,
    .thankyoupageinfo1 td {
        display: block;
        padding: 0;
        width: 100%;
    }
    .thankyoupageinfo1 {
        border-color: transparent;
    }
}