/* fileError */
.failed-file-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fefefe;
    padding: 15px 21px 32px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 460px;
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}
.close-button.amex{
    color: var(--amexPrimaryColor);
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}
.close-button.amex:hover,
.close-button.amex:focus {
    color: var(--amexPrimaryColor);
    text-decoration: none;
    cursor: pointer;
}


.failed-file-container{
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: center;
}

.failed-file-header-container{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    width: 100%;
}

.failed-file-logo{
width: 90px;
height: 100px;
margin: auto;
}

.failed-file-title{
    font-weight: 400;
    font-size: 24px;
    padding-bottom: 8px;
    text-align: center;
    line-height: 1.25;
    color: black;
}

.failed-file-text-container{
    text-align: center;
    line-height: 1.25;
    color: black;
    font-size: 16px;
    max-width: 290px;
    margin: auto;
}

.failed-file-sub-title{
    text-align: center;
    line-height: 1.25;
    color: black;
    font-size: 16px;
}
.failed-file-btn-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    max-width: 290px;
    width: 100%;
}
.failedFileBtn {
    display: flex;
    width: 100%;
    height: 52px;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    border: 1px solid #101820;
    cursor: pointer;
    background-color: #101820;
    color: white;
}
.failedFileBtn.amex{
    background-color: var(--amexPrimaryColor);
    border-color: var(--amexPrimaryColor);
}

.failedFileBtn:hover {
    color: white;
}

.failedFileClsBtn{
    font-size: 18px;
    font-weight: 400;
    border: none;
    color: #101820;
    background-color: transparent;
    text-decoration: underline;
    cursor: pointer;
    width: fit-content;
    align-self: center;
}
.failedFileClsBtn.amex{
    color: var(--amexPrimaryColor);
}

/* failed */
.failed-section {
    gap: 32px;
    width: 420px;
    margin: 138px 214px;
    align-items: center;
}
.failed-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 420px;
    gap: 25px;
}


.failed-title {
    font-weight: 400;
    font-size: 24px;
    padding-bottom: 8px;
    text-align: center;
    line-height: 1.25;
    color: black;
}

.failed-sub-title {
    text-align: center;
    line-height: 1.25;
    color: black;
    font-size: 16px;
}
.failed-container button {
    display: flex;
    width: 100%;
    max-width: 327px;
    height: 52px;
    padding: 10px 0;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    border: 1px solid #101820;
    cursor: pointer;
    background-color: #101820;
    color: white;
}
.failed-container.amex button{
    background-color: var(--amexPrimaryColor);
    border-color: var(--amexPrimaryColor);
}

.failed-container button:hover {
    color: white;
}


/* success */
.success-section{
    gap: 32px;
    width: 100%;
    align-items: center;
}

.success-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.success-header{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: #2020BA;
    width: 100%;
    height: 260px;
    border-radius: 8px 8px 0 0; 
}

/* Amex background for desktop */
.success-header.amex {
    background-color: transparent;
    background-image: url('../../images/forms/amex_success_bg_desktop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.success-text-container{
    display: flex;
    width: 408px;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
    padding: 40px 85px 50px 0;
}

.success-title{
    color: #FFF;
    font-size: 40px;
    text-align: right;
    font-weight: 400;
    line-height: 125%;
}

.success-sub-title{
    color: #FFF;
    font-size: 20px;
    text-align: right;
    line-height: 26px;
    }

    .success-img{
        align-self: end;
    }

    .success-inputs-container{
        visibility: hidden;
        width: 533px;
        padding: 24px 0;
    }

    .success-inputs-container th{
        text-align: right;
        font-weight: 400;
        border-bottom: 1px solid #F6F6F6;
    }

    .success-inputs-container td{
        text-align: left;
        font-weight: 600;
        border-bottom: 1px solid #F6F6F6;
    }
    .success-container button{

        display: flex;
        width: 327px;
        height: 52px;
        padding: 10px 0;
        justify-content: center;
        align-items: center;
        border-radius: 4px;
        border: 1px solid #101820;
        background-color: white;
        cursor: pointer;
        color: black;
        font-weight: bold;
        margin: 116px 0;
    }
    .success-container.amex button{
        color: var(--amexPrimaryColor);
        border-color: var(--amexPrimaryColor);
    }
    .success-container button:hover{
        color: black;
    }
    .success-container.amex button:hover{
        color: var(--amexPrimaryColor)
    }


 
    @media screen and (max-width:768px) {

        .modal-content {
            width: auto;
        }
        
    .failed-section {
        gap: unset; 
        width: auto;
        margin: 0;         
        padding: 0 18px;
    }

    .failed-container {
      width: auto;    
    }
    .success-section{
        width: 100%;
    }

    .success-header {
        position: relative;
        display: block;
        border-radius: 0;
        height: 274px;
    }

    /* Amex background for mobile */
    .success-header.amex {
        background-image: url('../../images/forms/amex_success_bg_mobile.png');
    }

    .success-text-container {      
       width: auto;    
       align-items: flex-start;
        padding: 40px 24px 40px 0;
    }

    .success-sub-title {
        max-width: 220px;
    }

    .success-img {
        width: 120px;
        height: 120px;
        position: absolute;
        bottom: 0;
        left: 0;
    }

    .success-inputs-container {
        width: 100%;
        padding: 24px;
    }
    }