:root {
    --pb-blue: #0053a6;
    --pb-dark-blue: #004080;
    --pb-red: #f44336;
    --pb-pale-red: rgba(243,81,81,0.16);
    --pb-grey: #6c757d;
}

html, body, form {
    height: 100%;
    margin: 0;
    padding: 0;
}

/* Основной шаблон */
div.pb-layout {
    font-family: var(--font-family);

    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 8px;
}

div.pb-layout > div.pb-layout-header {
    display: flex;
    padding: 0.5rem;
    border-bottom: 1px solid;
    border-color: #efefef;
}

div.pb-layout > div.pb-layout-content {
    flex-grow: 1;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 5px;
}

div.pb-layout-header > div.pb-contacts-panel {
    display: flex;
    justify-content: flex-end;
    flex-grow: 1;
    flex-wrap: wrap;
    align-items: stretch;
    flex-direction: row;
}

div.pb-layout-header > div.pb-contacts-panel > a.pb-support-email {
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--pb-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
}

div.pb-layout-header > div.pb-contacts-panel > a.pb-support-email::before {
    font-family: "primeicons";
    margin-right: 8px;
    font-size: 1.2rem;
}

div.pb-layout-header > div.pb-contacts-panel > span.pb-support-phone {
    font-family: var(--font-family);
    font-size: 1rem;
    color: var(--pb-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-left: 30px;
}

div.pb-layout-header > div.pb-contacts-panel > span.pb-support-phone::before {
    font-family: "primeicons";
    margin-right: 8px;
    font-size: 1.2rem;
}

/* Страница ошибки */
div.pb-error-page-content {
    height: 74px;
    background-color: var(--pb-pale-red);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    padding-left: 40px;
    padding-right: 40px;
}

div.pb-error-message {
    height: 52px;
    display: flex;
    background-color: #fff;
    align-items: center;
    padding-left: 20px;
    padding-right: 20px;
    border-radius: 5px;
    width: 100%;
}

div.pb-error-message > i {
    font-size: 36px;
    color: #f35151;
    margin-right: 10px;
}

div.pb-error-message > span {
    font-size: 16px;
}

div.pb-error-page-back {
    padding-top: 1rem;
    display: flex;
    justify-content: center;
}

/* Поля ввода */
div.pb-layout .ui-g-12 {
    padding-bottom: 0;
}

div.pb-layout .ui-inputfield.ui-state-hover {
    border-color: var(--pb-blue);
}

div.pb-layout .ui-inputfield.ui-state-focus {
    border-color: var(--pb-blue);
    box-shadow: inset 0 0 0 1px var(--pb-blue);
}

div.pb-layout .ui-inputfield.ui-state-focus.ui-state-error {
    border-color: var(--pb-red);
    box-shadow: inset 0 0 0 1px var(--pb-red);
}

div.pb-layout .ui-selectonemenu.ui-state-hover {
    border-color: var(--pb-blue);
}

div.pb-layout .ui-selectonemenu.ui-state-focus {
    border-color: var(--pb-blue);
    box-shadow: inset 0 0 0 1px var(--pb-blue);
}

div.pb-layout .ui-selectonemenu.ui-state-focus.ui-state-error {
    border-color: var(--pb-red);
    box-shadow: inset 0 0 0 1px var(--pb-red);
}

div.pb-input > label {
    color: var(--pb-grey);
    font-weight: 500;
    padding-bottom: 2px;
}

.ui-outputlabel-rfi {
    color: var(--pb-red);
}

div.pb-validation-message {
    color: var(--pb-red);
    font-weight: 300;
    white-space: pre;
}

div.pb-input-address .ui-inputfield {
    margin-bottom: 0.5rem;
}

div.pb-input-address > div.pb-house-block {
    display: flex;
}

div.pb-input-address > div.pb-house-block > input.ui-inputfield {
    margin-right: 0.5rem;
}

div.pb-input-address > div.pb-house-block > input.ui-inputfield:last-child {
    margin-right: 0;
}

div.pb-select-one > div.pb-input-label {
    display: inline-block;
    line-height: 1.5rem;
    vertical-align: middle;
    color: var(--pb-grey);
    padding-left: 0.5rem;
}

div.pb-input-file > label {
    display: block;
}

/* Капча */

div.pb-captcha-container {
    width: 640px;
    padding: 0.5rem 0.5rem 0 0.5rem;
}

/* Код из СМС */

div.pb-sms-verification-code {
    display: flex;
    justify-content: center;
}

div.pb-sms-verification-code div.pb-validation-message {
    text-align: center;
}

div.pb-sms-verification-code-label {
    color: var(--pb-grey);
    text-align: center;
    padding-left: 0;
    padding-right: 0;
}

div.pb-sms-verification-code-label > span {
    display: block;
}

div.pb-sms-verification-code-value > input {
    text-align: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

div.pb-sms-verification-code-button {
    margin: 0;
}

div.pb-sms-verification-code-button-description {
    font-size: 12px;
    font-style: italic;
    padding: 0 0.5rem;
    text-align: center;
    color: var(--pb-grey);
    display: none;
}


/* Страница ввода заявки на карту. Шаг 1. */

@media (min-width: 768px) {
    div.pb-card-page-content {
        background-image: url(/pbi/custom-resources/card-background-image);
        background-attachment: fixed;
        background-repeat: no-repeat;
        background-size: cover;
    }
}

div.pb-card-application,
div.pb-ils {
    max-width: 640px;
    background-color: white;
    border-radius: 5px;
    margin: 20px auto;
    padding: 5px 10px 15px;
}

h2.pb-card-application-header,
h2.pb-ils-header{
    text-align: center;
    color: var(--pb-grey);
    margin-bottom: 0.5rem;
}

span.pb-card-application-step {
    text-align: center;
    display: block;
    width: 100%;
    color: var(--pb-grey);
    padding-bottom: 1rem;
}

div.pb-card-application-info,
div.pb-ils-info {
    color: var(--pb-grey);
    margin-left: 8px;
}

div.pb-card-application-info.pb-bold,
div.pb-ils-info.pb-bold {
    font-weight: 500;
}

div.pb-card-application-info ul {
    margin-top: 0;
}

div.pb-card-application-info a,
div.pb-ils-info a {
    text-decoration: none;
    color: var(--primary-color);
}

div.pb-card-application-gu,
div.pb-ils-gu {
    padding-top: 25px;
    display: flex;
    justify-content: center;
}

div.pb-card-application-gu > button.ui-button.ui-button-outlined,
div.pb-ils-gu > button.ui-button.ui-button-outlined {
    height: 70px;
    color: var(--pb-blue);
}

div.pb-card-application-gu > img,
div.pb-ils-gu > img {
    width: 50px;
    height: 50px;
    margin-right: -57px;
    margin-top: 10px;
}

div.pb-card-draft-info {
    max-width: 640px;
    margin: 0 auto;
    padding: 10px;
    text-align: justify;
}

div.pb-card-draft-info div.pb-card-draft-info-text {
    font-size: 0.8rem;
}

div.pb-card-application-gu > button.ui-button.ui-button-text-only > span.ui-button-text,
div.pb-ils-gu > button.ui-button.ui-button-text-only > span.ui-button-text {
    padding-left: 60px;
    padding-right: 35px;
}

div.pb-card-application-gu > i,
div.pb-ils-gu > i {
    margin-left: -29px;
    margin-top: 28px;
    width: 23px;
    height: 23px;
    color: var(--pb-blue);
}

div.pb-navigation-buttons {
    margin: 0.5rem;
    padding-top: 1rem;
}

button.ui-button {
    background: var(--pb-blue);
    border: 1px solid var(--pb-blue);
}

button.ui-button.ui-state-hover {
    background: var(--pb-dark-blue);
    border: 1px solid var(--pb-dark-blue);
}

button.ui-button.ui-state-focus {
    box-shadow: none;
}

div.pb-personal-data-procession-consent {
    padding: 0.5rem;
    color: var(--pb-grey);
}

div.pb-personal-data-procession-consent ol {
    margin-top: 0;
}

div.pb-personal-data-procession-consent a {
    text-decoration: none;
    color: var(--primary-color);
}

/* Страница ввода заявки на карту. Шаг 2. */
div.pb-card-application-step02 {
    max-width: 400px;
    margin: auto;
}

div.pb-navigation-buttons {
    display: flex;
    justify-content: space-between;
}

div.pb-navigation-buttons button {
    width: 200px;
}

div.pb-card-application-step02 > div.pb-navigation-buttons button {
    width: 150px;
}

div.pb-single-send-button {
    width: 100%;
    padding: 0.5rem;
}

div.pb-single-send-button button.ui-button {
    width: 100%;
}

/* Страница ввода заявки на карту. Шаг 3. */
div.pb-input-file-description {
    color: var(--pb-grey);
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
}

div.pb-input-file-description > ul {
    margin-top: 0;
    margin-bottom: 0;
}


/* Страница ввода заявки на карту. Шаг 4. */
div.pb-card-application-step04 {
    display: flex;
    flex-direction: column;
}

/* Страница ввода заявки на карту. Последний экран */
div.pb-card-application-step06,
div.pb-ils-finish {
    font-weight: 500;
    margin-top: 2rem;
    text-align: center;
}

div.pb-ils-align-center {
    text-align: center;
}

/* Полоска загрузки страницы  */
.pb-layout-progressbar {
    background-color: var(--pb-blue);

    height: 5px;
    position: fixed;
    top: 0;
    left: 0;

    z-index: 810;
}

.pb-layout .ui-widget-overlay.pb-layout-ajax-content-blocker {
    background: transparent;
    z-index: auto;
}

.pb-layout .ui-widget-overlay.pb-layout-ajax-content-blocker.faded {
    background: rgba(0, 0, 0, 0.4);
    z-index: 800;
}

/* Страница ожидания данных из ЦП */
.pb-card-application-loading-dp {
    text-align: center;
    padding-top: 1rem;
    user-select: none;
}

.pb-card-application-loading-dp-progress-bar {
    height: 6px;
}

/* Ошибки отображаемые на страницах при вводе заявки */
div.pb-messages-error {
    background: var(--pb-pale-red);
    display: flex;
    border-radius: 5px;
    grid-area: m;
}

div.pb-messages-error > div.ui-messages {
    width: 100%;
}

div.pb-messages-error > div.ui-messages > div.ui-messages-error {
    background: white;
    margin: 8px 40px 8px 40px;
    border: none;
    padding: 0.5rem;
    display: flex;
    align-items: center;
}

body div.pb-messages-error > div.ui-messages > div.ui-messages-error > span.ui-messages-error-icon {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 36px;
    color: #f35151;
    height: 36px;
    width: 36px;
}

div.pb-messages-error > div.ui-messages > div.ui-messages-error > span.ui-messages-error-icon:before {
    content: "\f06a";
}

div.pb-messages-error > div.ui-messages > div.ui-messages-error > ul {
    display: flex;
    align-items: center;
}

div.pb-messages-error > div.ui-messages > div.ui-messages-error > ul > li > span.ui-messages-error-summary {
    color: black;
    font-weight: normal;
}

div.pb-input-description {
    font-size: 12px;
    font-style: italic;
    padding: 0 0.5rem;
    color: var(--pb-grey);
}

div.pb-footnote {
    color: var(--primary-color);
    display: inline;
    cursor: help;
}

div.pb-input-file-multiple-container {
    display: block;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
}

div.pb-input-file-multiple-info {
    display: block;
    height: auto;
    width: 100%;
    float: left;
    padding-top: 5px;
}

div.pb-input-file-info .pb-icon-button,
div.pb-input-file-multiple-info .pb-icon-button {
    float: right;
}

div.pb-input-file-container {
    display: block;
    height: auto;
    overflow-x: auto;
    overflow-y: hidden;
}

div.pb-input-file-info {
    display: block;
    height: auto;
    width: 100%;
    float: left;
    padding-top: 5px;
}

body .ui-button.rounded-button.ui-button-icon-only.pb-icon-button {
    border-radius: 50%;
    height: 1.5rem;
    width: 1.5rem;
}

.pb-red-text {
    color: var(--pb-red);
}

.pb-bold-text {
    font-weight: bold;
}
