/* GENERAL */

body {
    background: #f7f9ff;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 16px;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: #1f2933;
}

a,
.button-link {
    color: #0b5ed7;
    text-decoration: underline;
    font-weight: 500;
}

a:hover,
a:focus,
.button-link:hover,
.button-link:focus {
    color: #063c8a;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 16px;
    z-index: 1000;
    padding: 8px 16px;
    background: #002856;
    color: #fff;
    border-radius: 4px;
    transition: top 0.2s ease-in-out;
}

.skip-link:focus {
    top: 16px;
}

button,
input,
select,
textarea {
    font: inherit;
}

button:focus-visible,
.choice-btn:focus-visible,
.btn:focus-visible,
.button-link:focus-visible,
a:focus-visible {
    outline: 3px solid #f2c94c;
    outline-offset: 2px;
}

.button-link {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-align: left;
}

.button-link:focus-visible {
    border-radius: 2px;
}

.button-text {
    margin-left: 0.5rem;
}

.alert-message {
    background-color: #fef3f4;
    border-left: 4px solid #b4232c;
    border-radius: 6px;
    color: #7a0613;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding: 12px 16px;
}
 
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #00011c;
}
 
p {
    margin-bottom: 12px;
    line-height: 1.9;
}
 
label {
    font-size: 16px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: #00011c;
}

#turnstile-fail-modal .modal-content {
    border: 3px solid #FF0000;
}


/* TITLE */
 
#title-container {
    min-height: 460px;
    height: 100%;
    color: #fff;
    background-color: #002856;
    text-align: center;
    padding: 105px 28px 28px 28px;
    box-sizing: border-box;
    position: relative;
}
 
#title-container h2 {
    font-size: 45px;
    font-weight: 600;
    color: #fff;
    padding: 0;
    margin-bottom: 0px;
}
 
#title-container h3 {
    font-size: 30px;
    font-weight: 400;
    color: #fff;
    background: #9c182f;
    padding: 3px 8px;
    border-radius: 10px;
    display: inline-block;
}
 
#title-container p {
    font-size: 16px;
    padding: 0 25px;
    line-height: 1.6;
}

.eou-background-img {
    background-image: url('/static/img/eou-bg.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
}

.recovery-shell {
    width: min(100%, 1080px);
}

#form-panel,
#title-container {
    width: 100%;
}

#logo-image {
    width: 260px;
    margin-bottom: 30px;
}
 
#monty-image {
    width: 214px;
    margin-bottom: 15px;
    background-color: #fff;
    border: 4px solid;
    border-color: #b68400;
}



/* FORM AREA */
 
#qbox-container {
    background-color: #fff;
    padding: clamp(32px, 4vw, 62px);
    min-height: 642px;
}
 
#steps-container {
    margin: auto;
    width: min(100%, 500px);
    min-height: 420px;
    display: flex;
    vertical-align: middle;
    align-items: center;
}
 
.loading-bar {
    width: 0%;
}

#progress-bar .progress-bar {
    transition: width 1s ease-in-out;
}

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

 
.step h4 {
    margin: 0 0 26px 0;
    padding: 0;
    position: relative;
    font-weight: 500;
    font-size: 23px;
    font-size: 1.4375rem;
    line-height: 1.6;
}

#account-state {
    color: #c81f3b;
    font-weight: bold;
}

#start-over-btn-div {
    display: none;
}

#mobile-down-arrow-btn-div {
    display: none;
}

button.choice-btn {
    position: relative; 
    overflow: hidden;
    border: none;
    margin: 0 auto;
    margin-left: 0;
    padding-top: 10px;
    padding-bottom: 10px;
    background: #c81f3b;
    color: #fff;
    justify-content: space-between;
    align-items: center;
    font-size: larger;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    z-index: 1; 
}

button.choice-btn:hover {
    background: #c81f3b;
    color: #fff; 
}

button.choice-btn::after {
    position: absolute;
    top: 0;
    left: -94%; 
    width: 97%;
    height: 100%;
    background: #9c182f;
    content: "";
    z-index: -1; 
    transition: left 0.3s ease; 
}

button.choice-btn:hover::after {
    left: 0;
}

button#dont-know-email-btn,
button#dont-have-access-to-mfa-btn {
    border: none;
    margin: 0;
    background: transparent;
    color: #0b5ed7;
}

button#dont-know-email-btn:hover,
button#dont-have-access-to-mfa-btn:hover,
button#dont-know-email-btn:focus,
button#dont-have-access-to-mfa-btn:focus {
    color: #063c8a;
}

button#start-over-btn {
    border: 0;
    margin: 0 auto;
    background: #fff;
    color: #1f2933;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

button#start-over-btn:hover,
button#start-over-btn:focus {
    background: #c81f3b;
    color: #fff;
}

button#mobile-down-arrow-btn {
    border: 0;
    margin: 0 auto;
    background: #002856;
    color: #fff;
}

 
button#restart-btn,
button#helpdesk-btn,
button#submit-btn,
button#try-again-btn {
    font-size: 17px;
    font-weight: bold;
    position: relative;
    width: 130px;
    height: 50px;
    background: #c81f3b;
    margin: 0 auto;
    /* margin-top: 40px; */
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    transition: color .3s;
    text-align: center;
    color: #fff;
    border: 0;
    -webkit-border-bottom-right-radius: 5px;
    -webkit-border-bottom-left-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    -moz-border-radius-bottomleft: 5px;
    border-bottom-right-radius: 5px;
    border-bottom-left-radius: 5px;
}
 
button#restart-btn:after,
button#helpdesk-btn:after,
button#submit-btn:after,
button#try-again-btn:after {
    position: absolute;
    top: 90%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #9c182f;
    content: "";
    z-index: -2;
    transition: transform .3s;
}
 
button#restart-btn:hover::after,
button#helpdesk-btn:hover::after,
button#submit-btn:hover::after,
button#try-again-btn:hover::after {
    transform: translateY(-80%);
    transition: transform .3s;
}

button#submit-btn:disabled {
    background: #a94a55;
}

button#submit-btn:disabled:after {
    background: #773540;
}

button#submit-btn:disabled:hover {
    cursor: default;
}

button#submit-btn:disabled:hover::after {
    transform: none;
}

button#try-again-btn:disabled{
    background: #a1a1a1;
}

button#try-again-btn:disabled:after{
    background: #696969;
}

button#try-again-btn:disabled:hover{
    cursor: default;
}

button#try-again-btn:disabled:hover::after{
    transform: none;
}

button#copy-btn,
button#verify-challenge-btn {
    font-size: 17px;
    font-weight: bold;
    position: relative;
    width: 130px;
    height: 50px;
    background: #c81f3b;
    margin: 0 auto;
    overflow: hidden;
    z-index: 1;
    cursor: pointer;
    transition: color .3s;
    text-align: center;
    color: #fff;
    border: 0;
    -webkit-border-bottom-right-radius: 5px;
    -webkit-border-top-right-radius: 5px;
    -moz-border-radius-bottomright: 5px;
    border-bottom-right-radius: 5px;
    border-top-right-radius: 5px;
}
 
button#copy-btn:after,
button#verify-challenge-btn:after {
    position: absolute;
    top: 0;
    left: -94%;
    width: 97%;
    height: 100%;
    background: #9c182f;
    content: "";
    z-index: -1;
    transition: left .3s ease;
}
 
button#copy-btn:hover::after,
button#verify-challenge-btn:hover::after {
    left: 0;
}
 
.progress {
    border-radius: 0px !important;
}
 
.q__question {
    position: relative;
}
 
.q__question:not(:last-child) {
    margin-bottom: 10px;
}
 
 
.form-check-input:checked {
    background-color: #DC3545 !important;
    outline: none !important;
    border: none !important;
}

.no-ssn-message,
.invalid-photo-id-message,
.invalid-file-type-message,
.photo-processing-timed-out,
#eou-email-input-label,
#form-needs-corrected,
#photo-processing-msg {
    display: none;
}

.form-needs-corrected {
    display: none;
}
 
#q-box__buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px; 
}
 
input[type="text"],
input[type="email"],
input[type="date"],
input[type="file"] {
    padding: 8px 14px;
}

button.info-button {
    color: #212529;
    background-color: #F8F9FA;
    border: 1px solid #d1d5db;
    padding: 8px 14px;
}

button.info-button:hover {
    color: #414850;
    background-color: #E9ECF1;
    border: 1px solid #989b9f;
}

button.visible-button {
    color: #212529;
    background-color: #F8F9FA;
    border: 1px solid #d1d5db;
    padding: 8px 14px;
}

button.visible-button:hover {
    color: #414850;
    background-color: #E9ECF1;
    border: 1px solid #d1d5db;
}
 
.otp-code {
    width: 100px;
}

.copy-feedback {
    visibility: hidden;
}

.monospace {
    font-family: monospace;
}

#mfa-list-div {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#mfa-list-div button {
    margin-left: auto;
}


.preview-container {
    position: relative;
    width: 200px;
    height: 150px; 
    display: flex;
    justify-content: center;
    align-items: center;
}

#photo-id-preview {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

#photo-id-icon-feedback {
    position: absolute; 
    height: 50%;
    object-fit: contain;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.preview-spinner {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #002856;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none; 
}

.submit-spinner {
    position: absolute;
    bottom: 100%; /* Positions above the button */
    transform: translateX(-50%); /* Centers the spinner */
    width: 24px;
    height: 24px;
    border: 4px solid rgba(0, 0, 0, 0.1);
    border-top-color: #002856;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none; /* Hidden by default */
    margin-bottom: 8px; /* Adds spacing */
    z-index: 10; /* Ensures it's above the button */
}

/* Animation for the spinners */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* MEDIA QUERIES */
 
@media (min-width: 990px) and (max-width: 1199px) {
    #title-container {
        padding: 72px 24px 24px 24px;
    }
}
 
@media (max-width: 991px) {
    #title-container {
        padding: 30px;
        min-height: inherit;
    }

    #qbox-container {
        min-height: auto;
    }

    #steps-container {
        width: min(100%, 560px);
        min-height: auto;
    }
}
 
@media (max-width: 767px) {
    #qbox-container {
        padding: 30px;
    }
    #steps-container {
        width: 100%;
        min-height: 400px;
    }
    #title-container {
        padding-top: 50px;
    }
}
 
@media (max-width: 560px) {
    #qbox-container {
        padding: 40px;
    }
    #title-container {
        padding-top: 45px;
    }
}
