﻿/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
for details on configuring this project to bundle and minify static web assets. */

/*
Quickstart ui site.css
*/

.body-container {
    margin-top: 60px;
    padding-bottom: 40px;
}

.welcome-page li {
    list-style: none;
    padding: 4px;
}

.logged-out-page iframe {
    display: none;
    width: 0;
    height: 0;
}

.grants-page .card {
    margin-top: 20px;
    border-bottom: 1px solid lightgray;
}

.grants-page .card .card-title {
    font-size: 120%;
    font-weight: bold;
}

.grants-page .card .card-title img {
    width: 100px;
    height: 100px;
}

.grants-page .card label {
    font-weight: bold;
}

/*
End of Quickstart ui site.css
*/

:root {
    --primary-color: #0b4127;
    --accent-color: #f9c730;
    --error-color: #C40208;
}

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

/* Sticky footer styles
-------------------------------------------------- */
html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

button:active,
button:focus {
    outline: none;
}

/* common */
html {
    position: relative;
    height: 100%;
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    font-family: 'Roboto';
    background-color: white;
    height: 100%;
    display: flex;
    flex-direction: column;
    touch-action: pan-x pan-y;
}

.text-danger {
    font-size: 0.75rem;
}

.text-danger--black {
    color: black !important;
}

input.input-validation-error[type="checkbox"] + label {
    color: #dc3545;
}

.brand-logo {
    height: 50px
}

/* input */
.floating-label {
    position: relative;
    width: 300px;
    margin-bottom: 2.5rem;
}

#input-user-birth[value]:not([value=""]),
#input-user-birth.selected_date {
    color: black;
}

.floating-label__label {
    position: absolute;
    pointer-events: none;
    top: 50%;
    transform: translate(0, -50%);
    left: 5px;
    color: #999;
    font-size: 16px;
    font-weight: normal;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.floating-label__input,
.floating-label__select {
    display: block;
    padding: 10px 10px 10px 5px;
    width: 300px;
    color: var(--primary-color) !important;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #757575;
    font-size: 16px;
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.floating-label__input--phone-prefix {
    padding-left: 38px;
}

.floating-label__input:focus,
.floating-label__select:focus,
.floating-label__input.input-validation-error {
    outline: none;
    border-color: transparent;
}

.floating-label__input:focus ~ label,
.floating-label__input:not(:placeholder-shown) ~ label {
    top: 0;
    color: black;
    background-color: white;
    font-size: 12px;
}

.floating-label__input.input-validation-error ~ .floating-label__bar:before,
.floating-label__input.input-validation-error ~ .floating-label__bar:after {
    background: #dc3545;
    width: 50%;
}

.floating-label__input.input-validation-error {
    border-color: #dc3545;
}

.floating-label__input:focus ~ .floating-label__bar:before,
.floating-label__input:focus ~ .floating-label__bar:after {
    width: 50%;
}

.floating-label__select:focus ~ .floating-label__bar:before,
.floating-label__select:focus ~ .floating-label__bar:after {
    width: 50%;
}

.floating-label__select:focus ~ label,
.floating-label__select:not([value=""]):valid ~ label {
    top: -20px;
    font-size: 12px;
    color: black;
}

.floating-label__bar {
    position: relative;
    display: block;
    width: 300px;
}

.floating-label__bar:before,
.floating-label__bar:after {
    content: '';
    height: 1px;
    width: 0;
    bottom: 0;
    position: absolute;
    background: var(--accent-color);
    transition: 0.2s ease all;
    -moz-transition: 0.2s ease all;
    -webkit-transition: 0.2s ease all;
}

.floating-label__bar:before {
    left: 50%;
}

.floating-label__bar:after {
    right: 50%;
}

.floating-label__highlight {
    position: absolute;
    height: 60%;
    width: 100px;
    top: 25%;
    left: 0;
    pointer-events: none;
    opacity: 0.5;
}

.floating-label__icon {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translate(0, -50%);
    width: 20px;
    height: 20px;
    background-image: url("/img/calendar.svg");
    background-repeat: no-repeat;
}

.login-phone__label {
    position: relative;
    transition: color .2s ease;
}

.login-phone__label--primary-color {
    color: var(--primary-color);
}

.button--primary {
    border-radius: 2rem;
    min-width: 230px;
    font-weight: bold;
    background-color: var(--primary-color);
    color: white;
    padding: 0.75rem 0.588rem;
    font-size: 1rem;
}

.button--primary:hover {
    color: white;
}

.button--secondary {
    border-color: var(--primary-color);
    border-radius: 2rem;
    min-width: 230px;
    font-weight: bold;
    background-color: transparent;
    color: var(--primary-color);
    padding: 0.75rem 0.588rem;
    font-size: 0.875rem;
}

.button--secondary:active {
    color: var(--primary-color);
}

.button--secondary:hover {
    color: var(--primary-color);
}

/* MODAL */
.modal-header {
    border-bottom: none;
    padding-bottom: 0;
}

.modal-header .close {
    padding: 0.5rem 1rem 1rem;
    font-size: 2rem;
}

.modal-footer {
    margin: 0 auto;
    padding: 1rem 2rem 2rem;
    border-top: none;
}

.modal-body {
    max-width: 70%;
    margin: 0 auto;
    font-size: 1.2rem;
    text-align: center;
    line-height: 1.3;
}

/* SUBMIT button */
.submit-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform .2s, box-shadow .2s;
    padding: 0.75rem 0.588rem;
    color: white !important;
    background-color: var(--primary-color);
    border: none;
    border-radius: 2rem;
    font-size: 1rem;
    font-weight: bold;
    letter-spacing: .6px;
}

.submit-button:active,
.submit-button:focus {
    transform: translateY(1px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.submit-button:hover {
    color: white;
    text-decoration: none;
}

.submit-button--red {
    background-color: var(--error-color);
}

@media (min-width: 768px) {
    .submit-button {
        min-width: 100%;
    }
}

/* TEXT button */
.text-button {
    display: block;
    transition: color .2s;
    border: none;
    background: transparent;
    -webkit-appearance: none;
    color: black;
    outline: none;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-decoration: underline;
    text-underline-offset: 3px;
    letter-spacing: 0.6px;
}

.text-button:active,
.back-btn:active,
.text-button:focus,
.back-btn:focus {
    color: rgba(0, 0, 0, .5);
}

/* TOGGLE button */
.toggle-btn {
    position: relative;
    z-index: 99;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 300px;
    margin-bottom: 2.5rem;
    font-size: 16px;
}

.toggle-btn__label {
    position: relative;
    display: inline-block;
    width: 50%;
    padding: 10px;
    transition: background .6s ease;
    color: black;
    border: 2px solid #999;
    text-align: center;
}

.toggle-btn__label--right {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
}

.toggle-btn__label--left {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}

.toggle-btn__input {
    display: none;
}

.toggle-btn__input + label {
    cursor: pointer;
    min-width: 60px;
}

.toggle-btn__input + label:hover {
    background: none;
    color: #1a1a1a;
}

.toggle-btn__input + label:after {
    position: absolute;
    z-index: -1;
    content: "";
    top: 0;
    height: 100%;
    width: 100%;
    background: var(--primary-color);
}

.toggle-btn__input.toggle-btn__input--left + label {
    border-right: 0;
}

.toggle-btn__input.toggle-btn__input--left + label:after {
    left: 100%;
}

.toggle-btn__input.toggle-btn__input--right + label:after {
    left: -100%;
}

.toggle-btn__input:checked + label {
    color: #fff;
    transition: color 0s;
}

.toggle-btn__input:checked + label:after {
    left: 0;
}

.toggle-btn__input:not(:checked) + label:after {
    background: transparent;
}

.toggle-btn__label--primary-border {
    border: 2px solid var(--primary-color);
}

/* BACK button */
.back-btn {
    padding: 10px;
    transform: translate(-10px,-10px);
    transition: filter .2s;
    border: none;
    background: transparent;
}

.back-btn__icon {
    width: 1.6rem;
    height: 1.6rem;
    background-image: url("/img/left_arrow.svg");
    background-repeat: no-repeat;
}

@media (max-width: 768px) {
    .toggle-btn,
    .text-button,
    .submit-button,
    .button--primary,
    .button--secondary,
    .floating-label,
    .floating-label__bar,
    .floating-label__input,
    .floating-label__select {
        width: 100%;
    }
}

/* header */

.navbar {
    background-color: var(--primary-color);
    padding: 1rem;
    border-bottom-left-radius: 3rem;
}

.navbar-collapse {
    padding-top: 0.625rem;
    padding-left: 0.625rem;
}

.navbar-toggler:focus {
    outline: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(255,255,255, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
}

.navbar-logo {
    height: 2.875rem;
}

/* content */
.wrapper {
    background-color: var(--primary-color);
    flex: 1
}

.inner-wrapper {
    height: 100%;
    padding-top: 1.875rem;
    padding-bottom: 1.875rem;
    border-bottom-left-radius: 3rem;
    border-top-right-radius: 55px;
    background-color: white;
}

.hide-element {
    display: none !important;
}

/* footer */
footer {
    background-color: var(--primary-color);
    border-top-right-radius: 3rem;
    color: white;
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

footer a {
    color: var(--accent-color)
}


/* Checkboxes */
.md-checkbox {
    position: relative;
    margin: 2em 0;
    text-align: left;
}

.md-checkbox.md-checkbox-inline {
    display: inline-block;
}

.login-phone-add-email__rodo label,
.login-phone-add-email__footer-description label,
.md-checkbox label {
    cursor: pointer;
    display: block;
    line-height: 1.25em;
    vertical-align: top;
    padding-left: 1px;
    font-size: 14px;
    overflow-wrap: break-word;
    margin-left: 18px;
}

.login-phone-add-email__rodo h4 {
    margin-left: 0;
    margin-top: 2em;
    margin-bottom: 2em;
}

.login-phone-add-email__description h4 {
    margin-left: 0;
    margin-top: 1em;
    margin-bottom: 2em;
}

.md-checkbox label:not(:empty) {
    padding-left: 0.75em;
}

.md-checkbox label:before, .md-checkbox label:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
}

.md-checkbox label:before {
    width: 1.25em;
    height: 1.25em;
    background: #fff;
    border: 2px solid rgba(0, 0, 0, 0.54);
    border-radius: 0.125em;
    cursor: pointer;
    transition: background 0.3s;
}

.md-checkbox input.input-validation-error ~ label:before {
    border: 2px solid #dc3545;
}

.md-checkbox input[type="checkbox"] {
    outline: 0;
    opacity: 0;
    width: 1.25em;
    margin: 0;
    display: block;
    float: left;
    font-size: inherit;
}

.md-checkbox input[type="checkbox"]:checked + label:before {
    background: var(--primary-color);
    border: none;
}

.md-checkbox input[type="checkbox"]:checked + label:after {
    transform: translate(0.25em, 0.3365384615em) rotate(-45deg);
    width: 0.75em;
    height: 0.375em;
    border: 0.125em solid #fff;
    border-top-style: none;
    border-right-style: none;
}

.md-checkbox input[type="checkbox"]:disabled + label:before {
    border-color: rgba(0, 0, 0, 0.26);
}

.md-checkbox input[type="checkbox"]:disabled:checked + label:before {
    background: rgba(0, 0, 0, 0.26);
}

.checkbox-label:focus {
    outline: none;
}

.checkbox-label--disabled {
    color: #999;
}

.checkbox-label--disabled:before {
    background: #fff !important;
    border-color: #999 !important;
}

.checkbox-label--disabled:after {
    content: none;
}

/* roboto-regular - latin */
/* roboto-regular - latin-ext */
@font-face {
    font-family: 'Roboto';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/roboto-v20-latin-ext-regular.eot'); /* IE9 Compat Modes */
    src: local('Roboto'), local('Roboto-Regular'), url('/fonts/roboto-v20-latin-ext-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
    url('/fonts/roboto-v20-latin-ext-regular.woff2') format('woff2'), /* Super Modern Browsers */
    url('/fonts/roboto-v20-latin-ext-regular.woff') format('woff'), /* Modern Browsers */
    url('/fonts/roboto-v20-latin-ext-regular.ttf') format('truetype'), /* Safari, Android, iOS */
    url('/fonts/roboto-v20-latin-ext-regular.svg#Roboto') format('svg'); /* Legacy iOS */
}

label.required:after {
    content: ' *';
    display: inline;
    position: absolute;
    top: -1px;
    margin-left: 4px;
}

p.disp_appver {
    display: inline;
    color: var(--primary-color);
}

/* Date picker */
.mobilefriendly .month-item {
    height: 467px;
}

.button-cancel, .button-apply {
    cursor: pointer;
}

/* General */
.flex-wrapper {
    display: flex;
    flex-direction: column;
}

.heading-primary {
    font-size: 1.5rem;
    font-weight: 700;
}

.heading-secondary {
    font-size: 1rem;
    line-height: 20px;
}

.heading-secondary--bold {
    font-weight: 700;
}

.heading-third {
    font-size: 16px;
    font-weight: 700;
}

.login-phone__checkbox-label {
    font-size: 1rem !important;
}

.login-phone__consent {
    margin-bottom: -1.5rem;
    padding-left: 2.6em;
    font-size: 12px;
}

.login-phone__consent-link {
    color: black;
    font-weight: 700;
    line-height: 1.4em;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.2px;
}

.login-phone__consent-link:hover {
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.2px;
}

/* LOGIN Add phone */
.login-phone__rodo .login-phone__description {
    margin-top: 2rem;
}

.login-phone__rodo-text {
    margin-top: 1.3rem;
    margin-bottom: 2rem;
    color: #999;
    font-size: 12px;
    line-height: 20px;
}

.login-phone__rodo-text .login-phone__consent-link {
    color: #999;
}

/* LOGIN Add phone number page */
.login-phone__header-box {
    margin-bottom: 1.3rem;   
}

.login-phone__change-phone-number {
    margin-top: 3rem;
}

.login-phone__change-phone-number .text-button {
    display: inline;
    padding: .5rem 0;
    font-size: 12px;
}

.login-phone__rodo .login-phone__description,
.login-phone__change-phone-number .login-phone__description {
    margin-bottom: 0;
}

.login-phone__wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.login-phone__form,
.login-phone-verify__form,
.login-phone-add-email__form,
.login-phone-questionnaire__form,
.login-phone-verify-existing-user__form,
.phone-change-verify-email__form {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.login-phone__form #recaptchaV2,
.login-phone-add-email__form #recaptchaV2,
.login-phone-questionnaire__form #recaptchaV2,
.login-phone-verify__form #recaptchaV2,
.login-phone-verify-existing-user__form #recaptchaV2 {
    margin-top: .5rem;
    margin-bottom: 2rem;
}

.logout-phone__form,
.login-phone__form,
.login-phone-add-email__form {
    padding-top: 2rem;
}

.login-phone-verify__form,
.login-phone-verify-existing-user__form {
    padding-top: .5rem;
}

.login-phone__input {
    position: relative;
    margin-bottom: 2rem;
}

.login-phone__input > div,
.floating-label > div {
    position: relative;
}

.login-phone__phone-prefix {
    position: absolute;
    top: 10px;
    left: 5px;
    font-size: 16px;
}

.login-phone__description {
    margin-bottom: 2rem;
    font-size: 12px;
    line-height: 20px;
}

.login-phone__submit-btn,
.login-phone-verify__submit-btn,
.login-phone-add-email__submit-btn,
.login-phone-verify-existing-user__submit-btn {
    margin-top: auto;
}

.login-phone-add-email__consents .heading-secondary {
    margin-bottom: 2em;
}

.login-phone-add-email__form #consents-validation, 
.login-phone-questionnaire__form #consents-validation {
    display: block;
    margin-bottom: 1em;
}

/* LOGIN Verify phone number page */
/* PHONE CHANGE verify email page */
.login-phone-verify__header-box,
.phone-change-verify-email__header-box {
    margin-bottom: 1.4rem;
}

.login-phone-verify__header-box .back-btn,
.phone-change-verify-email__header-box .back-btn {
    margin-bottom: .7rem;
}

/* LOGIN Add email page */
.login-phone__submit-btn,
.login-phone-add-email__submit-btn {
    padding-top: .5rem;
}

/* LOGIN Questionnaire page */
.login-phone-questionnaire__header-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.3rem;
}

.login-phone-questionnaire__header-box h4 {
    margin-bottom: 0;
}

.login-phone-questionnaire__header-box .text-button {
    width: fit-content;
    padding: 5px 10px;
    font-size: 13px;
}

.login-phone-questionnaire__consent {
    margin-bottom: -1.5rem;
    padding-left: 2.6em;
    font-size: 12px;
}

.login-phone-questionnaire__gender-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 300px;
}

.login-phone-questionnaire__gender-box .text-button {
    width: fit-content;
    padding: 5px 10px;
    font-size: 13px;
    font-weight: 400;
    text-decoration: none;
}

.login-phone-questionnaire__gender-box > .login-phone__label {
    left: 15px;
    font-size: 12px;
}

/* LOGIN Register success page */
.register-success__form,
.change-phone-email-send-success,
.phone-change-success,
.error-page,
.confirm-email {
    display: flex;
    flex-direction: column;
    height: 100%;
    font-weight: 700;
    text-align: center;
}

.logout-phone__header,
.register-success__header,
.change-phone-email-send-success__header,
.phone-change-success__header,
.error-page__header,
.confirm-email__header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
}

.logout-phone__header .heading-secondary:first-child,
.register-success__header .heading-secondary:first-child,
.change-phone-email-send-success__header .heading-secondary:first-child {
    padding-bottom: 1rem;
}

.register-success__form .heading-secondary,
.change-phone-email-send-success .heading-secondary,
.confirm-email .heading-secondary {
    font-size: 1rem;
    line-height: 1.4rem;
}

.register-success__footer {
    display: flex;
    flex-direction: column;
}

.register-success__description {
    padding-top: 1rem;
}

.register-success__description .heading-secondary:first-child {
    padding: 1rem 0;
}

.register-success__description .heading-secondary:last-child {
    padding-bottom: 2.1rem;
}

@media (max-width: 768px) {
    .logout-phone__header,
    .login-phone.heading-secondary,
    .logout-phone.heading-secondary,
    .login-phone__header-box {
        text-align: center;
    }
}