/* NVI frontend — cross-device layout (phone, tablet, desktop) */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

.navbar-brand img,
.navbar-nav .logo img {
    max-width: 160px;
    width: auto;
    height: auto;
}

.navbar-default .navbar-nav > li > a {
    padding: 12px 10px;
    font-size: 12px;
}

.container.mt20,
.container.mt100 {
    width: 100%;
    max-width: 1140px;
    padding-left: 12px;
    padding-right: 12px;
}

.mt100 {
    margin-top: 72px !important;
}

.col-md-offset-3,
.col-md-offset-1 {
    margin-left: 0;
}

.custom-tabs .ajax-btn {
    display: block;
    width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.custom-tabs .ajax-btn > div {
    width: 100% !important;
}

.form-control.input-lg,
.btn.btn-dark.btn-lg,
.btn.btn-primary.btn-lg {
    min-height: 48px;
    font-size: 16px;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
}

.rowForm .form-group {
    position: relative;
    z-index: 1;
}

.rowForm input[type="text"],
.rowForm input[type="tel"] {
    width: 100%;
    touch-action: manipulation;
}

.nvi-birth-row .form-control {
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
}

#step1Form .alert-danger {
    margin-bottom: 16px;
}

.form-label {
    font-size: 16px !important;
}

.modal-dialog {
    margin: 12px auto;
    max-width: calc(100% - 24px);
}

.modal-body p,
.modal-body span {
    font-size: 15px !important;
    line-height: 1.5;
}

.modal-footer .btn {
    min-height: 44px;
    margin-bottom: 6px;
}

#loaderContainer,
#blockContainer {
    pointer-events: none;
}

.content-wrapper,
.content-wrapper .content {
    max-width: 100%;
    overflow-x: hidden;
}

.content-wrapper .header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
}

.content-wrapper .brand-logo img,
.content-wrapper .member-logo img {
    max-width: min(180px, 45vw);
    height: auto;
}

.form-wrapper .f-input,
.button.btn-commit {
    min-height: 48px;
    font-size: 16px;
}

.info-wrapper .info-row {
    flex-wrap: wrap;
}

@media (max-width: 991px) {
    .navbar-nav .logo {
        display: none !important;
    }

    .navbar-collapse {
        max-height: 70vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .navbar-nav > li {
        float: none;
    }
}

@media (max-width: 767px) {
    .navbar-header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .navbar-toggle {
        margin: 8px 0;
    }

    .navbar-brand {
        padding: 10px 0;
    }

    .navbar-brand img {
        max-width: 130px;
    }

    .mt100 {
        margin-top: 56px !important;
    }

    .tab-cont.margin-t-b p.fs10 {
        font-size: 13px !important;
        line-height: 1.35;
        padding: 4px 8px;
    }

    .text-center .btn-lg {
        width: 100%;
        max-width: 320px;
        white-space: normal;
    }

    .rowForm .col-xs-6 {
        width: 100%;
        float: none;
    }

    .rowForm .btn {
        width: 100%;
    }

    h2.fwb {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    small.fs16,
    span[style*="font-size: 20px"] {
        font-size: 16px !important;
        line-height: 1.45;
        display: block;
    }

    .content-wrapper h1#approve-header {
        font-size: 1.25rem;
        line-height: 1.3;
        padding: 0 8px;
    }

    .info-message h3,
    #auth-message {
        font-size: 15px !important;
        line-height: 1.45;
    }

    .call-to-action .action-row {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container form {
        padding-top: 100px !important;
    }

    .modal-footer {
        display: flex;
        flex-direction: column;
    }

    .modal-footer .btn {
        width: 100%;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .col-md-6 {
        width: 50%;
        float: left;
    }

    .col-md-10.col-md-offset-1,
    .col-md-6.col-md-offset-3 {
        width: 100%;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
