.content-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    gap: 100px;
    padding: 0 50px;
}

.info-section {
    flex: 1;
    margin-top: 150px;
    box-sizing: border-box;
}

.form-section {
    flex: 1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-powered {
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 16px;
    line-height: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    text-align: center;
    gap: 5px;
    color: #0d0d0d;
    width: 226px;
    border-radius: 100px;
    background: #f7f7f7;
}

.ai-powered img {
    width: 20px;
}

h2 {
    font-size: 55px;
    line-height: 55px;
    font-weight: 700;
    margin: 10px 0;
}

h2 span {
    background: linear-gradient(90deg, #8157fb, #3606bf);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#stage-four-container p {
    font-size: 20px;
    padding-top: 10px;
    color: rgba(0, 0, 0, 0.6);
}

.download-box p {
    font-size: 20px;
    padding-top: 10px;
    color: rgba(0, 0, 0, 0.6);
}

.text-box p {
    font-size: 20px;
    padding-top: 10px;
    color: rgba(0, 0, 0, 0.6);
}


.form-section #resumeForm {
    width: 100%;
    background: white;
    border-radius: 20px;
    border: 1px solid #3a00f8;
    min-height: 600px;

}

.form-group {
    height: 100%;
    width: 100%;
}

#step1 {
    padding: 10px 20px;
}

#step1 h4 {
    color: #8157fb;
    font-size: 16px;
}

.progress-tracker {
    display: flex;
    align-self: center;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
    margin-top: 20px;
    width: 300px;
    height: 50px;
}

.step {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.circle {
    width: 20px;
    height: 20px;
    border: 2px solid #4f46e5;
    border-radius: 50%;
    background-color: white;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inner-circle {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #4f46e5;
}

.step.completed .circle .inner-circle::before {
    content: "•";
    color: white;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 2px;
    background-color: #b0b4b8;
    transform: translateY(-50%);
    z-index: 0;
}

.step.completed .circle {
    border-color: #5c3cfa;
    background-color: #5c3cfa;
    color: white;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}


#step1 h4 {
    text-align: left;
}

.upload-box {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed grey;
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 20px;
    height: 120px;
}

.upload-box.highlight {
    border: 2px dashed #09f;
    background-color: #f0f0f0;
}

.upload-box .img-box {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-right: 15px;
}

.upload-box .img-box img {
    width: 90px;
    opacity: 0.6;
}

.upload-box .text-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.upload-box .text-box p {
    font-size: 14px;
    line-height: 1.2;
    text-decoration: underline;
    font-weight: 700;
    margin: 0;
    color: black;
}

.upload-box .text-box span {
    font-size: 12px;
    margin-top: 5px;
}

.upload-box .text-box .custom-file-upload {
    border: 1px solid #ccc;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 20px;
    background-color: black;
    color: white;
    font-size: 13px;
    text-align: center;
    margin-top: 10px;
    transition: 0.3s;
    width: 100px;
}

.upload-box .text-box .custom-file-upload:hover {
    opacity: 0.8;
}

.upload-box .text-box .custom-file-upload input[type="file"] {
    display: none;
}

#step1 .job-description {
    height: 100%;
}

#step1 .job-description textarea {
    flex: 1;
    background: #f7f7f7;
    border-radius: 20px;
    border: 0;
    outline: 0;
    resize: none;
    /* height: 100%; */
    height: 200px;
    width: 100%;
    padding: 25px 25px;
    font-size: 14px;
    margin-top: 20px;
}

#step1 .job-description textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-weight: 800;
    font-size: 14px;
}

.file-details {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px dashed grey;
    border-radius: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
    justify-content: space-between;
    padding: 10px;
    height: 120px;
}

.file-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-self: center;
    margin-right: 10px;
}

.file-icon img {
    width: 100%;
    height: auto;
}

.file-name {
    flex: 1;
    margin-left: 15px;
}

.file-name p {
    font-size: 16px;
    text-align: left;
}

.file-size {
    display: flex;
    align-items: center;
    font-size: 16px;
    padding: 10px;
}

.file-size p {
    font-size: 14px;
}

.fa-ellipsis-vertical {
    margin-left: 15px;
}

.form-container .disabled {
    color: lightgray;
    background: #f7f7f7;
}

.btn {
    background-color: gray;
    border: 1px solid;
    color: black;
    transition: background-color 0.3s, color 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #865cff, #3000bb);
    color: white;
    border: none;
    border-radius: 40px;
    width: 100%;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 25px;
}

.btn-primary:hover {
    opacity: 0.8;
}

.btn-upload:disabled {
    background: #aaa;
    cursor: not-allowed;
}

.btn:disabled {
    background-color: #ececec;
    color: gray;
    cursor: not-allowed;
    border: none;
    border-radius: 40px;
    width: 100%;
    padding: 10px 20px;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s;
    margin-top: 25px;
}

#second-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.seperator {
    background: rgb(223, 223, 223);
    width: 75%;
    height: 2px;
    margin-bottom: 15px;
}

.additional-options {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.additional-options .input-box {
    display: flex;
    align-items: flex-start;
}

.additional-options label {
    color: gray;
    font-size: 16px;
}

.additional-options input[type="checkbox"] {
    display: none;
}

.additional-options input[type="checkbox"]+label {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    padding-left: 50px;
    /* Space for the custom checkbox */
    line-height: 1.5;
    text-align: left;
}

.additional-options input[type="checkbox"]+label::before {
    content: "";
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    border: 2px solid #572ada;
    background-color: #fff;
    border-radius: 4px;
    transition: background-color 0.3s, border-color 0.3s;
}

.additional-options input[type="checkbox"]:checked+label::before {
    background-color: #572ada;
    border-color: #572ada;
}

.additional-options input[type="checkbox"]:checked+label::after {
    content: "✓";
    position: absolute;
    left: 5px;
    color: #fff;
    font-size: 16px;
}

#step2 {
    padding: 25px;
}


/* Step3 */

#step3 {
    height: 400px;
    width: 100%;
    justify-content: center;
    align-items: center;
}

#step3 .animation-container {
    display: flex;
    width: 100%;
    height: 100%;
}

#stage-three {
    width: 100%;
    height: 100%;
}

/* Stage 4 */
#step4 {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.final-stage {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#stage-four-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    width: 100%;
}

.stage-four-animation-container {
    width: 100%;
    width: 200px;
    height: 175px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#stage-four-container p {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #3a00f8;
}

hr {
    margin: 0px auto;
    border: 1px solid #d3d1d1;
    width: 100%;
}

.download-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    text-align: left;
    justify-content: center;
    padding: 25px;
}

.download-box p {
    font-size: 16px;
    color: #3a00f8;
    margin-bottom: 30px;
}

.boxes {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.box {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 200px;
    padding: 12px;
    border: 1px solid #e8e4e4;
    border-radius: 25px;
    background-color: #f7f7f7;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    gap: 15px;
    transition: opacity 0.3s ease, transform 0.2s ease;
}

.box:hover {
    cursor: pointer;
    opacity: 0.85;
    transform: scale(1.05);
}

.box img {
    width: 24px;
    height: 24px;
}

#restartButton {
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: 400px;
    padding: 12px;
    border: 1px solid #e8e4e4;
    border-radius: 25px;
    background-color: #f7f7f7;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #000;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
}


.btnCvAnalaysis {
    width: 90%;
    align-items: center;
    align-self: center;
    margin-top: 20px;
    justify-content: center;
    text-align: center;
    padding: 12px;
    border: 1px solid #e8e4e4;
    border-radius: 25px;
    background-color: #3a00f8;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    font-weight: bold;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.3s ease, transform 0.2s ease;
    animation: pulse 2s infinite ease-in-out;
}


.lay {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px;
    box-sizing: border-box;
}

.layout-structure {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 500px;
    margin-top: 20px;
    margin-bottom: 20px;
}

.general_temp_layout {
    margin-right: 15px;
    width: 120px;
    height: 150px;
    transition: border 0.3s;
    border: 0.5px solid #000;
    border-radius: 5px;
}

.lay input[type="radio"] {
    display: none;
}

.lay input[type="radio"]:checked+img {
    border: 2px solid #572ada;
    border-radius: 5px;
    padding: 2px;
}

.lay h5 {
    color: #572ada;
    font-weight: 600;
    font-size: 17px;
    text-align: left;
}

.lay input[type="radio"] {
    display: none;
}

.lay input[type="radio"]:checked+.general_temp_layout {
    border: 2px solid #572ada;
    border-radius: 5px;
    padding: 2px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .content-wrapper {
        flex-direction: column;
        gap: 40px;
        padding: 0 20px;
    }

    .info-section,
    .form-section {
        flex: none;
        width: 100%;
        margin-top: 20px;
    }

    .ai-powered {
        width: auto;
        padding: 5px 10px;
        font-size: 14px;
    }

    .ai-powered img {
        width: 16px;
    }

    h2 {
        font-size: 45px;
        line-height: 45px;
    }

    h2 span {
        background: linear-gradient(90deg, #8157fb, #3606bf);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    p {
        font-size: 18px;
    }

    .form-section {
        width: 100%;
    }

    .form-section #resumeForm {
        min-height: 500px;
    }

    .upload-box {
        flex-direction: column;
        height: auto;
        gap: 15px;
    }

    .upload-box .img-box img {
        width: 70px;
    }

    .upload-box .text-box .custom-file-upload {
        width: 120px;
    }

    #step1 .job-description textarea {
        height: 150px;
    }

    .file-details {
        flex-direction: column;
        align-items: flex-start;
    }

    .file-icon {
        width: 60px;
        height: 60px;
    }

    .file-size {
        font-size: 14px;
    }

    .btn-primary {
        width: 100%;
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .btn:disabled {
        width: 100%;
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .seperator {
        width: 70%;
    }

    .additional-options .input-box {
        flex-direction: column;
    }

    .additional-options label {
        font-size: 14px;
    }

    .download-box {
        padding: 15px;
        width: 100%;
    }

    .boxes {
        flex-direction: column;
    }

    .box {
        width: 100%;
        max-width: 100%;
        padding: 15px;
        font-size: 12px;
        gap: 10px;
    }

    .box img {
        width: 20px;
        height: 20px;
    }

    .progress-tracker {
        max-width: 250px;
    }

    .circle {
        width: 16px;
        height: 16px;
    }

    .inner-circle {
        width: 6px;
        height: 6px;
    }

    .step:not(:last-child)::after {
        height: 1px;
    }

    #restartButton {
        font-size: 14px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 0px;
    }

    .info-section,
    .form-section {
        flex: none;
        width: 100%;
    }

    .ai-powered {
        width: auto;
        padding: 5px 10px;
        font-size: 12px;
    }

    .ai-powered img {
        width: 14px;
    }

    h2 {
        font-size: 35px;
        line-height: 40px;
    }

    h2 span {
        background: linear-gradient(90deg, #8157fb, #3606bf);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    p {
        font-size: 16px;
    }

    .form-section #resumeForm {
        min-height: 400px;
    }

    .progress-tracker {
        display: flex;
        align-items: center;
        justify-content: space-between;
        position: relative;
    }

    .progress-tracker {
        flex-direction: flex;

    }

    .step {
        margin-bottom: 10px;
    }

    .circle {
        width: 14px;
        height: 14px;
    }

    .inner-circle {
        width: 5px;
        height: 5px;
    }

    .step:not(:last-child)::after {
        width: 100%;
        height: 2px;
        top: auto;
        left: 50%;
        transform: translateY(-50%);
    }


    .upload-box {
        flex-direction: row;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 1px dashed grey;
        border-radius: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
        gap: 0px;
        height: 150px;
        padding: 20px;
    }

    .upload-box .img-box {
        height: 120px;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        margin-right: 15px;
    }

    .upload-box .img-box img {
        width: 90px;
        opacity: 0.6;
    }

    .upload-box .text-box {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .upload-box .text-box p {
        font-size: 14px;
        line-height: 1.2;
        text-decoration: underline;
        font-weight: 700;
        margin: 0;
        color: black;
    }

    .upload-box .text-box span {
        font-size: 12px;
        margin-top: 5px;
        align-self: center;
    }

    .upload-box .text-box .custom-file-upload {
        border: 1px solid #ccc;
        padding: 10px 15px;
        cursor: pointer;
        border-radius: 20px;
        background-color: black;
        color: white;
        font-size: 13px;
        text-align: center;
        margin-top: 10px;
        transition: 0.3s;
        width: 100px;
        align-self: center;
    }

    .upload-box .text-box .custom-file-upload:hover {
        opacity: 0.8;
    }

    .upload-box .text-box .custom-file-upload input[type="file"] {
        display: none;
    }

    #step1 .job-description {
        height: 100%;
    }

    #step1 .job-description textarea {
        flex: 1;
        background: #f7f7f7;
        border-radius: 20px;
        border: 0;
        outline: 0;
        resize: none;
        height: 200px;
        width: 100%;
        padding: 25px 25px;
        font-size: 14px;
        margin-top: 20px;
    }

    #step1 .job-description textarea::placeholder {
        color: rgba(0, 0, 0, 0.4);
        font-weight: 800;
        font-size: 14px;
    }

    .file-details {
        /* display: flex; */
        flex-direction: row;
        justify-content: center;
        align-items: center;
        border: 1px dashed grey;
        border-radius: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
        padding: 10px;
        height: 150px;
    }

    .file-icon {
        width: 120px;
        height: 80px;
        margin-right: 5px;
    }

    .file-icon img {
        width: 100%;
        height: auto;
    }

    .file-name {
        flex: 1;
        margin-left: 5px;
    }

    .file-name p {
        font-size: 16px;
        text-align: left;
        width: 150px;
        display: inline-block;
        word-wrap: break-word;
    }

    .file-size {
        display: flex;
        align-items: center;
        font-size: 16px;
        padding: 10px;
    }

    .file-size p {
        font-size: 14px;
    }

    .upload-box .img-box img {
        width: 60px;
    }

    .upload-box .text-box .custom-file-upload {
        width: 100px;
    }

    .file-icon {
        width: 50px;
        height: 50px;
    }

    .file-size {
        font-size: 13px;
    }

    .btn-primary {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .btn:disabled {
        width: 100%;
        padding: 10px 20px;
        font-size: 0.85rem;
    }

    .seperator {
        width: 60%;
    }

    .additional-options .input-box {
        flex-direction: column;
    }

    .additional-options label {
        font-size: 12px;
    }

    .download-box {
        padding: 10px;
        width: 100%;
    }

    .boxes {
        flex-direction: column;
    }

    .box {
        width: 100%;
        max-width: 100%;
        padding: 10px;
        font-size: 10px;
        gap: 5px;
    }

    .box img {
        width: 18px;
        height: 18px;
    }

    #step3 {
        height: auto;
        width: 100%;
        justify-content: center;
        align-items: center;
    }
}