.d-flex {
    display: flex;
    align-items: center;
}
#photo-upload-area {
    /*background-color: #f8f9fb;*/
}
#photo-preview-area {
    border: 2px dashed #d0d7de;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
     flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#photo-preview-area img {
    max-width: 100%;
    max-height: 300px;
    object-fit: contain;
}
.success-header {
    display: flex;
}
.renewal-alert {
    background-color: #ffffff;
    border: solid 2px #f3f4f6;
    border-left: solid 5px #093768;
    border-radius: 5px;
    padding: 10px;
}
.renewal-alert-heading {
    display: flex;
}
.renewal-alert-title {
    font-weight: bold;
    color: #093768;
    margin-left: 7px;
}
.other-services h6 {
    color: #093768;
    letter-spacing: 2px;
}
.other-services h2 {
    color: #093768;
} 
.other-services a {
    background-color: #093768;
}
#waitingDialog .modal-header {
    padding: 5px 10px;
    background-color: #093768;
    color: white;
}
.progress-container {
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    position: relative;        
    width: 100%;
    background: #00000031;
    /*border: 1px solid #00000031;*/
    border-radius: 6px;
    margin-top: 20px;
}

.progress-bar {
    width: 0;
    height: 25px;
    background: #093768;
    transition: width 0.5s;
    border-radius: 6px;
}

.loading {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    margin-top: 20px;
    position: absolute;
    top: -20px;
    width: 100%;
}
.loading > h5,
.progress-text{
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff;
}
.progress-text {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 25px;
    color: white;
}
.loading > h5 {
    font-size: 23px;
    font-weight: 500;
}

.text-sec > div >div{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 20px;
}
.text-sec > div > h2{
    font-weight: 600;
}
.waiting-alert {
    border: solid 2px #f3f4f6;
    border-left: solid 5px #d0312b; 
    color: #d0312b; padding: 5px 10px; 
    border-radius: 5px; 
    display:flex; 
    margin-top:20px;
    font-weight: 600;
    padding: 10px;
}
.waiting-alert img {
    margin-right: 10px;
    width: 27px;
    height: 29px;        
}
.submit-errors {
    border: solid 2px #f7f7f9;
    padding: 20px;
}
.submit-errors h3 {
    color: #cf312b;
}
#submit_error_text {
    color: #cf312b;
    padding-left: 30px;
}
.button-group {
    display: flex;
}
#resumeRenewalBtn {
    background-color: #093768; 
}
.usa-button:not([disabled]).usa-focus, .usa-button:not([disabled]):focus {
    color: #1a4480;
}
.recent-modal-heading {
    text-align: center;
}
.recent-modal-heading img {
    width: 85px;
}
.recent-modal-heading h1 {
    font-size: 1.8rem;
}
.required {
    color: #e3342f;
} 
.photo-capture-guide-slide {
    text-align: center;
    padding: 20px;
}
.swiper-pagination {
    bottom: -4px !important;
}
.swiper-pagination-bullet {
    width: 15%;
    height: 7px;
    border-radius: 2px;
    background: #ccc;
    opacity: 1; 
}
.swiper-pagination-bullet-active {
    background: #cf312b;
    width: 15%;
}
.swiper-button-prev,
.swiper-button-next {
    background-color: white;
    border-radius: 50%;
    border: solid 2px #f6f8f9;
    --swiper-navigation-color: #093767;
}
.swiper-button-prev svg,
.swiper-button-next svg {
    width: 7px !important;
    fill: #093767 !important;
}
.upload-section {
    display: flex;
    gap: 30px;
    /*margin-bottom: 30px;*/
}
.upload-area {
    border: 2px dashed #d0d7de;
    padding: 40px 30px;
    text-align: center;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.main-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0px;
    margin: 10px;
    padding: 10px;
    border: 2px dashed #d0d7de;
}
.main-content .left-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.main-content .right-panel {
    background: white;
    padding: 35px 25px;
    /*box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);*/
}
.main-content .left-panel .photo-box {
    background: white;
    border: 2px dashed #d0d7de;
    width: 250px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.main-content .left-panel .photo-box .size-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    color: #5a6c7d;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.main-content .left-panel .photo-box .status-label {
    position: absolute;
    top: 5px;
    right: 5px;
    background: transparent;
    z-index: 10;
}

.processing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.crop-line {
    position: absolute;
    left: 0;
    right: 0;
    height: 3px;
    background: #4a9d9c;
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0%, 100% {
        top: 20%;
    }
    50% {
        top: 80%;
    }
}

.processing-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.processing-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    color: #1a4d7d;
    font-size: 17px;
    font-weight: 500;
}

.processing-item:last-child {
    margin-bottom: 0;
}

.check-circle {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 3px solid #d0e3f0;
    outline:2px dashed #1a4d7d;
    flex-shrink: 0;
    outline-offset:4px;
    position: relative;
    transition: all 0.4s;
    background: white;
}

.check-circle.complete {
    border-color: #1a4d7d;
    background: #1a4d7d;
}

.check-circle.complete::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.check-circle.active {
    border-color: #1a4d7d;
    background: #1a4d7d;
}

.check-circle.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    animation: pulse 1s ease-in-out infinite;
}

.check-circle.failed {
    border-color: #e74c3c;
    background: #e74c3c;
}

.check-circle.failed::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}
 
@media (max-width: 1120px) {
    .button-group {
        flex-direction: column;
    }
    #resumeRenewalBtn {
        margin-bottom: 10px;
    }
    .main-content {
        /*display: flex;*/
        /*flex-direction: column;*/
    }
}
@media (max-width: 768px) {
    #passportPhotoTips hr {
        display: none;
    }
    #passportPhotoTips .col-md-6:nth-child(even) {
        padding-top: 1.1rem;
    }
    #passportPhotoTips h1 {
        font-size: 1.7rem;
    }
    .main-content {
        display: flex;
        flex-direction: column;
    }
}    