/*
 * Data protection complaints form (/data-protection-complaints).
 * Field styling follows the mortgages hero form (mortgages_form_hero.php):
 * Calibre, navy #0d1e46, gold #ddae1f, square corners, 52px fields. Unlike the
 * hero, labels stay visible because the questions are long.
 */
.wrapper .dpc-page,
.wrapper .dpc-page p,
.wrapper .dpc-page li {
    color: #002554;
    font-family: 'Calibre';
}
.wrapper .dpc-page a {
    color: #0d1e46;
    text-decoration: underline;
    text-decoration-color: #ddae1f;
    text-underline-offset: 3px;
}
.wrapper .dpc-page a:hover {
    color: #ddae1f;
}
.wrapper .dpc-eyebrow {
    margin: 0 0 10px;
    color: #ddae1f !important;
    font-family: 'Calibre';
    font-size: 13px !important;
    font-weight: 600;
    letter-spacing: 1.6px;
    line-height: 1.2 !important;
    text-transform: uppercase;
}

/* Hero: the Compliance intro wording, centred under the fixed header. */
.wrapper .dpc-hero {
    max-width: 780px;
    margin: 0 auto;
    padding: 110px 0 56px;
    text-align: center;
}
.wrapper .dpc-hero h1 {
    margin: 0 0 24px;
    color: #0d1e46;
    font-family: 'GT Super Display';
    font-size: 56px;
    font-weight: 400;
    line-height: 1.1;
}
.wrapper .dpc-hero p:not(.dpc-eyebrow) {
    margin: 0;
    font-size: 19px;
    line-height: 1.6;
}
@media (max-width: 767px) {
    .wrapper .dpc-hero {
        padding: 64px 0 40px;
    }
    .wrapper .dpc-hero h1 {
        font-size: 38px;
    }
    .wrapper .dpc-hero p:not(.dpc-eyebrow) {
        font-size: 17px;
    }
}

/* Form card beside a sticky column of next steps and other channels. */
.wrapper .dpc-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 32px;
    align-items: start;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 0 120px;
}
@media (max-width: 991px) {
    .wrapper .dpc-layout {
        grid-template-columns: minmax(0, 1fr);
        padding-bottom: 80px;
    }
}
.wrapper .dpc-card {
    padding: 44px 48px 48px;
    border: 1px solid #e7e2da;
    background: #fff;
}
@media (max-width: 767px) {
    .wrapper .dpc-card {
        padding: 28px 20px 32px;
    }
}
.wrapper .dpc-card__title,
.wrapper .dpc-panel__title {
    margin: 0 0 8px;
    color: #0d1e46;
    font-family: 'GT Super Display';
    font-size: 30px;
    font-weight: 400;
    line-height: 1.2;
}
.wrapper .dpc-card__note {
    margin: 0 0 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee8df;
    color: #63748c !important;
    font-size: 16px;
}
.wrapper .dpc-card__note .hs-form-required {
    margin: 0;
    color: #ddae1f;
    font-size: inherit;
    line-height: inherit;
}

.wrapper .dpc-aside {
    display: grid;
    gap: 24px;
}
@media (min-width: 992px) {
    .wrapper .dpc-aside {
        position: sticky;
        top: 120px;
    }
}
.wrapper .dpc-panel {
    padding: 36px 32px;
    border: 1px solid #e7e2da;
    background: #fff;
}
.wrapper .dpc-panel__title {
    margin-bottom: 24px;
    font-size: 26px;
}
.wrapper .dpc-panel--navy {
    border-color: #0d1e46;
    background: #0d1e46;
}
.wrapper .dpc-panel--navy .dpc-panel__title,
.wrapper .dpc-panel--navy li {
    color: #fff;
}

.wrapper .dpc-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: dpc-step;
}
.wrapper .dpc-steps li {
    position: relative;
    margin: 0;
    padding: 0 0 22px 52px;
    font-size: 16px;
    line-height: 1.5;
    list-style: none;
    counter-increment: dpc-step;
}
.wrapper .dpc-steps li:last-child {
    padding-bottom: 0;
}
.wrapper .dpc-steps li::before {
    content: counter(dpc-step);
    position: absolute;
    top: -2px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 34px;
    height: 34px;
    border: 1px solid #ddae1f;
    border-radius: 50%;
    color: #ddae1f;
    font-family: 'GT Super Display';
    font-size: 17px;
    line-height: 1;
    background: none;
}
.wrapper .dpc-steps li:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 38px;
    bottom: 4px;
    left: 17px;
    width: 1px;
    background: rgba(221, 174, 31, .35);
}
.wrapper .dpc-steps strong {
    display: block;
    margin-bottom: 2px;
    font-family: 'Calibre';
    font-size: 17px;
    font-weight: 600;
}

.wrapper .dpc-channel + .dpc-channel {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid #eee8df;
}
.wrapper .dpc-channel p:not(.dpc-eyebrow) {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}
.wrapper .dpc-channel .dpc-channel__value {
    font-family: 'GT Super Display';
    font-size: 20px !important;
    overflow-wrap: anywhere;
}
.wrapper .dpc-channel .dpc-channel__value a {
    text-decoration: none;
}

.wrapper .dpc-form:not(.is-ready) {
    min-height: 200px;
}

.wrapper .dpc-form form,
.wrapper .dpc-form fieldset {
    max-width: none !important;
}
.wrapper .dpc-form fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}
.wrapper .dpc-form fieldset.form-columns-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
    align-items: end;
}
@media (max-width: 575px) {
    .wrapper .dpc-form fieldset.form-columns-2 {
        grid-template-columns: 1fr;
    }
}
.wrapper .dpc-form .hs-form-field {
    width: 100% !important;
    float: none !important;
    margin-bottom: 16px;
}
.wrapper .dpc-form .hs-form-field .input {
    margin-right: 0 !important;
}

.wrapper .dpc-form .hs-form-field > label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
/* Placeholder text matches the contact page form (.get-in-touch-form). */
.wrapper .dpc-form .hs-input::placeholder {
    color: #002554 !important;
    font-family: 'Calibre' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    opacity: 1;
}
.wrapper .dpc-form .hs-input::-webkit-input-placeholder {
    color: #002554 !important;
    font-family: 'Calibre' !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    letter-spacing: 1px !important;
    line-height: 1.3 !important;
    text-transform: uppercase !important;
    opacity: 1;
}
.wrapper .dpc-form label span {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
}
.wrapper .dpc-form .hs-form-required {
    margin-left: 2px;
    color: #ddae1f;
}

.wrapper .dpc-form .hs-input:not([type="checkbox"]) {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 52px;
    /* Calibre sits high in its line box, so the top padding is larger to
       centre the text visually (as the contact page form does). */
    padding: 17px 16px 11px;
    border: 1px solid #d5dbe4;
    border-radius: 0;
    background-color: #fff;
    color: #0d1e46;
    font-family: 'Calibre';
    font-size: 16px;
    line-height: 1.3;
    box-shadow: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.wrapper .dpc-form textarea.hs-input {
    height: 140px;
    min-height: 140px;
    resize: vertical;
}
.wrapper .dpc-form .hs-input:not([type="checkbox"]):hover {
    border-color: #b3bcca;
}
.wrapper .dpc-form .hs-input:not([type="checkbox"]):focus {
    border-color: #0d1e46;
    outline: none;
    box-shadow: 0 0 0 3px rgba(221, 174, 31, .24);
}
.wrapper .dpc-form select.hs-input {
    padding-right: 42px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230d1e46' stroke-width='1.6' d='M1 1.5 6 6.5l5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    cursor: pointer;
}
.wrapper .dpc-form select.hs-input.is-placeholder {
    color: #002554;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.wrapper .dpc-form select.hs-input.is-placeholder option {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

/* Phone: HubSpot pairs a dial-code select with the number input. */
.wrapper .dpc-form .hs-input.hs-fieldtype-intl-phone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 10px;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
    box-shadow: none;
}
@media (max-width: 575px) {
    .wrapper .dpc-form .hs-input.hs-fieldtype-intl-phone {
        grid-template-columns: 1fr;
        row-gap: 10px;
    }
}
.wrapper .dpc-form .hs-fieldtype-intl-phone > * {
    min-width: 0;
}
.wrapper .dpc-form .hs-fieldtype-intl-phone select.hs-input {
    padding-left: 12px;
    padding-right: 30px;
    background-position: right 12px center;
}
.wrapper .dpc-form .hs-fieldtype-intl-phone input[type="hidden"] {
    display: none !important;
}

.wrapper .dpc-form .inputs-list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.wrapper .dpc-form .inputs-list li {
    margin: 0;
    list-style: none;
}
.wrapper .dpc-form .inputs-list label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    color: #002554;
    font-family: 'Calibre';
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
    cursor: pointer;
}
.wrapper .dpc-form .hs-fieldtype-booleancheckbox .inputs-list label {
    align-items: center;
    font-size: 16px;
    line-height: 1.4;
}
.wrapper .dpc-form .inputs-list .hs-input {
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 18px;
    height: 18px;
    margin: 2px 0 0;
    border: 1px solid #b3bcca;
    border-radius: 0;
    background: #fff no-repeat center / 11px 9px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.wrapper .dpc-form .inputs-list .hs-input:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(221, 174, 31, .24);
}
.wrapper .dpc-form .inputs-list .hs-input:checked {
    border-color: #0d1e46;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 13 10'%3E%3Cpath fill='none' stroke='%23ddae1f' stroke-width='2' stroke-linecap='square' d='M1 5.2 4.6 8.8 12 1.4'/%3E%3C/svg%3E");
}

/* As on the mortgages hero form, an invalid field is shown by its red outline
   alone. The messages are clipped rather than removed so the role="alert"
   list is still announced by screen readers. */
.wrapper .dpc-form .hs-input.invalid,
.wrapper .dpc-form .hs-input.invalid:focus,
.wrapper .dpc-form .hs-input.error,
.wrapper .dpc-form .hs-input.error:focus {
    border-color: #a73434 !important;
    box-shadow: none !important;
}
/* HubSpot flags a required checkbox only by adding an error list to its field. */
.wrapper .dpc-form .hs-fieldtype-booleancheckbox:has(.hs-error-msgs) .inputs-list .hs-input {
    border-color: #a73434;
}
.wrapper .dpc-form .hs-error-msgs,
.wrapper .dpc-form .hs-error-msgs li,
.wrapper .dpc-form .hs-error-msg {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}
.wrapper .dpc-form .hs_error_rollup {
    display: none;
}

.wrapper .dpc-form .hs-recaptcha {
    margin: 4px 0 0;
}
.wrapper .dpc-form .hs_submit,
.wrapper .dpc-form .actions {
    margin: 0;
    padding: 0;
}
.wrapper .dpc-form .hs-button {
    min-width: 240px;
    min-height: 56px;
    margin: 24px 0 0;
    padding: 21px 32px 17px;
    border: 1px solid #ddae1f;
    border-radius: 0;
    background: #ddae1f;
    color: #fff;
    font-family: 'Calibre';
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.2px;
    line-height: 1;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease;
}
.wrapper .dpc-form .hs-button:hover,
.wrapper .dpc-form .hs-button:focus-visible {
    border-color: #0d1e46;
    background: #0d1e46;
    outline: none;
}
@media (max-width: 575px) {
    .wrapper .dpc-form .hs-button {
        width: 100%;
    }
}

.wrapper .dpc-form .submitted-message,
.wrapper .dpc-form .dpc-form__reference {
    color: #0d1e46;
    font-family: 'Calibre';
    font-size: 18px;
    line-height: 1.5;
}
.wrapper .dpc-form .dpc-form__reference {
    margin: 16px 0 0;
    padding: 16px 20px;
    border-left: 3px solid #ddae1f;
    background: #fdf8f3;
    font-weight: 500;
}
/* /data-protection-complaints/thank-you */
.wrapper .dpc-thank-you {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 0 120px;
    text-align: center;
}
.wrapper .dpc-thank-you p {
    font-size: 17px;
    line-height: 1.6;
}
.wrapper .dpc-page .dpc-thank-you__reference {
    margin: 0 0 24px;
    padding: 18px 22px;
    border: 1px solid #e7e2da;
    background: #fff;
    color: #0d1e46;
    font-weight: 500;
}
.wrapper .dpc-page .dpc-thank-you__reference[hidden] {
    display: none !important;
}
.wrapper .dpc-page .dpc-thank-you__reference strong {
    font-weight: 600;
    white-space: nowrap;
}
.wrapper .dpc-page a.dpc-thank-you__home {
    display: inline-block;
    min-width: 240px;
    margin-top: 12px;
    padding: 21px 32px 17px;
    border: 1px solid #ddae1f;
    background: #ddae1f;
    color: #fff;
    font-family: 'Calibre';
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1.2px;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    transition: background-color .18s ease, border-color .18s ease;
}
.wrapper .dpc-page a.dpc-thank-you__home:hover,
.wrapper .dpc-page a.dpc-thank-you__home:focus-visible {
    border-color: #0d1e46;
    background: #0d1e46;
    color: #fff;
}
