html,
body {
    height: 100%;
}

body {
    display: flex;
    align-items: center;
    padding: 40px 16px;
    background-color: #f5f5f5;
}

main.form-signin {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

form {
    margin: 0 auto;
    text-align: center;
}

.form-signin .form-floating:focus-within {
    z-index: 2;
}

/* Card / tab layout (was inline in Unsubscribe/Index.cshtml) */
.card {
    width: 100%;
    border: 1px solid #e6e6e6;
    border-radius: 14px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, .06);
}

.card-body {
    padding: 24px 24px 28px;
}

/* Language tabs: centred and wrapping so 9 languages stay tidy on mobile */
#nav-tab {
    flex-wrap: wrap;
    justify-content: center;
    gap: 2px;
    border-bottom: 1px solid #dee2e6;
}

#nav-tab .nav-link {
    padding: 7px 10px;
    line-height: 1;
}

/* Flag tabs: inactive flags are dimmed; the active/hovered one is full colour */
#nav-tab .nav-link .fi {
    font-size: 22px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .08);
    opacity: .5;
    transition: opacity .15s ease;
    vertical-align: middle;
}

#nav-tab .nav-link.active .fi,
#nav-tab .nav-link:hover .fi {
    opacity: 1;
}

.question {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.tabDiv {
    margin-top: 4px;
}

.imgDiv {
    margin-top: 22px;
    margin-bottom: 4px;
}

.imgDiv img {
    max-width: 64px;
    height: auto;
}

.form-floating {
    margin-top: 28px;
    text-align: left;
}

.unsubsBtnDiv {
    margin-top: 24px;
}

.unsubsBtn {
    border: 0;
    border-radius: 12px;
    background-color: #318EBA;
    padding: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}

.unsubsBtn:hover,
.unsubsBtn:focus {
    background-color: #2b7da3;
}

/* Urdu is right-to-left */
[dir="rtl"] .form-floating {
    text-align: right;
}

/***************************** Loading style ***************************************/

.lds-box {
    display: inline-block;
    position: relative;
    width: 70px;
    height: 70px;
}

.lds-box div {
    display: inline-block;
    position: absolute;
    left: 8px;
    width: 16px;
    background: #318EBA;
    animation: lds-box 1.2s cubic-bezier(0, 0.5, 0.5, 1) infinite;
}

.lds-box div:nth-child(1) {
    left: 8px;
    animation-delay: -0.24s;
}

.lds-box div:nth-child(2) {
    left: 32px;
    animation-delay: -0.12s;
}

.lds-box div:nth-child(3) {
    left: 56px;
    animation-delay: 0;
}

@keyframes lds-box {
    0% {
        top: 8px;
        height: 64px;
    }

    50%, 100% {
        top: 24px;
        height: 32px;
    }
}

/***************************** Loading style end ************************************/
