.ai-cv-form {
    font-family: 'Inter', sans-serif;
}

.ai-cv-form .navbar {
    background-color: #FFFFFF;
    border-bottom: 1px solid #DCDDEB;
    position: sticky;
    top: 0;
    z-index: 2;
}

.ai-cv-form .navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 75px;
}

.ai-cv-form .navbar .stepper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.ai-cv-form .navbar .stepper .stepper-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.ai-cv-form .navbar .stepper .stepper-step .number {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    background-color: #EFF0F6;
    color: #000000;
    font-size: 14px;
}

.ai-cv-form .navbar .stepper .stepper-step.current .number, .ai-cv-form .navbar .stepper .stepper-step.done .number {
    background-color: #4A3AFF;
    color: #FFFFFF;
}

.ai-cv-form .navbar .stepper .stepper-step p {
    margin-bottom: 0 !important;
    font-weight: 500;
    font-size: 14px;
}

.ai-cv-form .navbar .stepper .stepper-step.current p {
    font-weight: 600;
}

.ai-cv-form .navbar .stepper .stepper-step .line {
    height: 4px;
    width: 22px;
    background-color: #EFF0F6;
    border-radius: 40px;
    margin-left: 2px;
}

.ai-cv-form .navbar .stepper .stepper-step.done .line {
    background-color: #4A3AFF;
}

.ai-cv-form .content {
    min-height: calc(100vh - 76px);
    background-color: #FFFFFF;
    padding: 60px 0;
    overflow: hidden;
    background-image: url(../images/home-v3/hero-background.svg);
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: top;
    background-size: contain;
    background-attachment: fixed;
}

.ai-cv-form .content .step {
    display: none;
    max-width: 700px;
    margin: 0 auto;
}

.ai-cv-form .content .step.current {
    display: block;
}

.ai-cv-form .content .step .hero {
    text-align: center;
    margin-bottom: 30px;
}

.ai-cv-form .content .step .hero h2 {
    letter-spacing: normal;
    font-weight: 700;
    margin-bottom: 15px;
}

.ai-cv-form .content .step .hero p {
    color: #4E4775;
}

.ai-cv-form .content .step .form {
    background-color: #FFFFFF;
    border-radius: 20px;
    border: 1px solid #DCDDEB;
    box-shadow: 0 54px 54px 0 rgba(74, 58, 255, 0.02), 1px 4px 104px 0 rgba(20, 20, 43, 0.04), 0 98px 66px 0 rgba(19, 18, 66, 0.02);
    padding: 20px 25px 45px;
}

.ai-cv-form .content .step .form .form-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: bold;
}

.ai-cv-form .content .step .form .form-header .form-title {
    font-size: 18px;
}

.ai-cv-form .content .step .form .form-header .form-skip {
    color: #2D68FF;
    cursor: pointer;
}

.ai-cv-form .content .step .form form label {
    font-weight: bold;
    margin-bottom: 5px;
}

.ai-cv-form .content .step .form form label span {
    font-weight: normal;
    color: #667085;
    font-size: 13px;
    margin-left: 5px;
}

.ai-cv-form .content .step .form form label span.mandatory {
    color: #DC2B2B;
    margin-left: 2px;
}

.ai-cv-form .content .step .form form input, .ai-cv-form .content .step .form form textarea, .ai-cv-form .content .step .form form select {
    border-radius: 6px;
    box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
    border: 1px solid #dedede;
    margin-top: 0;
}

.ai-cv-form .content .step .form form input::placeholder,
.ai-cv-form .content .step .form form textarea::placeholder,
.ai-cv-form .content .step .form form select::placeholder {
    color: #778296;
}

.ai-cv-form .content .step .form form input.error, .ai-cv-form .content .step .form form textarea.error {
    border: 1px solid #DC2B2B;
}

.ai-cv-form .content .step .form form select {
    width: 100%;
    padding: 10px 12px;
}

.ai-cv-form .content .step .form form.form-info, .ai-cv-form .content .step .form form.form-job {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ai-cv-form .content .step .form fieldset {
    border-radius: 12px;
    border: 1px solid #DCDDEB;
    background: #F7F7FC;
    padding: 20px;
    margin-bottom: 10px;
}

.ai-cv-form .content .step .form fieldset.opened {
    padding: 20px 20px 40px;
}

.ai-cv-form .content .step .form fieldset .fieldset-inputs {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.ai-cv-form .content .step .form fieldset.opened .fieldset-inputs {
    display: grid;
}

.ai-cv-form .content .step .form fieldset .fieldset-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ai-cv-form .content .step .form fieldset.opened .fieldset-header {
    border-bottom: 1px solid #DCDDEB;
    padding-bottom: 10px;
}

.ai-cv-form .content .step .form .fieldset-header p {
    font-weight: 600;
    margin-bottom: 0;
    font-size: 16px;
}

.ai-cv-form .content .step .form .fieldset-header .repeater-buttons {
    display: flex;
    gap: 12px;
}

.ai-cv-form .content .step .form .fieldset-header .repeater-buttons .repeater-delete, .ai-cv-form .content .step .form .fieldset-header .repeater-buttons .repeater-dropdown {
    cursor: pointer;
    display: block;
}

.ai-cv-form .content .step .form fieldset .fieldset-header .repeater-buttons .repeater-dropdown {
    transition: all 0.2s ease-in-out;
    transform: rotate(180deg);
}

.ai-cv-form .content .step .form fieldset.opened .fieldset-header .repeater-buttons .repeater-dropdown {
    transform: rotate(0deg);
}

.ai-cv-form .content .step .form .double {
    grid-column: span 2 / span 2;
}

.ai-cv-form .content .step .form .repeater-button {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    border-radius: 6px;
    border: 2px dashed #2D68FF;
    cursor: pointer;
    padding: 15px;
    margin-top: 15px;
    gap: 5px;
    transition: all 0.2s ease-in-out;
    background-color: #FFFFFF;
}

.ai-cv-form .content .step .form .repeater-button:hover {
    background-color: #F8F8FA;
}

.ai-cv-form .content .step .buttons {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 40px;
}

.ai-cv-form .content .step .buttons.justify-end {
    justify-content: end;
}

.ai-cv-form .content .step .buttons.justify-center {
    justify-content: center;
}

.ai-cv-form .content .step .buttons a {
    border-radius: 100px;
    text-transform: uppercase;
    padding: 12px 40px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.ai-cv-form .content .step .buttons a:hover {
    text-decoration: none;
}

.ai-cv-form .content .step .buttons a.back {
    background-color: #FFFFFF;
    border: 1px solid #11845B;
    color: #11845B;
}

.ai-cv-form .content .step .buttons a.back:hover {
    border: 1px solid #669C81;
    color: #669C81;
}

.ai-cv-form .content .step .buttons a.next {
    background-color: #11845B;
    border: 1px solid #11845B;
    color: #FFFFFF;
}

.ai-cv-form .content .step .buttons a.next:hover {
    background-color: #669C81;
    border: 1px solid #669C81;
}

.ai-cv-form .content .step .buttons a.full {
    width: 100%;
}

.ai-cv-form .content .step .template-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-cv-form .content .step .template-container .template {
    border-radius: 12px;
    border: 1px solid #DCDDEB;
    background: #F7F7FC;
    overflow: hidden;
    cursor: pointer;
}

.ai-cv-form .content .step .template-container .template.selected {
    border: 1px solid #2D68FF;
}

.ai-cv-form .content .step .template-container .template .img-container {
    height: 200px;
    width: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
    background: #FFFFFF;
    padding: 20px 10px 0;
}

.ai-cv-form .content .step .template-container .template.selected .img-container {
    background: #EAF4FF;
}

.ai-cv-form .content .step .template-container .template .img-container img {
    height: 220px;
    box-shadow: 1px 2px 17px 0 rgba(0, 0, 0, 0.12);
}

.ai-cv-form .content .step .template-container .template p {
    border-top: 1px solid #DCDDEB;
    text-align: center;
    padding: 10px 5px;
    font-weight: 600;
    background: #FFFFFF;
    margin-bottom: 0;
}

.ai-cv-form .content .step .template-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
}

.ai-cv-form .content .step .generation h2 {
    font-weight: bold;
    letter-spacing: normal;
    text-align: center;
    margin-bottom: 10px;
    font-size: 26px;
    line-height: 26px;
}

.ai-cv-form .content .step .generation .description {
    text-align: center;
    color: #6F6C90;
}

.ai-cv-form .content .step .generation .insert {
    border-radius: 15px;
    border: 1px solid #DCDDEB;
    background: #F7F7FC;
    box-shadow: 0 5px 14px 0 rgba(8, 15, 52, 0.00);
    padding: 15px 20px;
    margin-top: 30px;
}

.ai-cv-form .content .step .generation .insert .title {
    display: flex;
    align-items: center;
    font-weight: bold;
    gap: 5px;
}

.ai-cv-form .content .step .generation .insert .title img {
    width: 24px;
}

.ai-cv-form .content .step .generation .insert .insert-description {
    color: #211F54;
}

.ai-cv-form .spinner {
    margin: 10px auto;
    position: relative;
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-cv-form .spinner .percentage {
    position: absolute;
    font-size: 20px;
    font-weight: bold;
}

.ai-cv-form .spinner svg {
    width: 100px;
    height: 100px;
    transform: rotate(-90deg);
}

.ai-cv-form .spinner .progress {
    stroke-dasharray: 283;
    stroke-dashoffset: 283;
    transition: stroke-dashoffset 0.3s ease;
}

.ai-cv-form .generation .error {
    text-align: center;
    color: #DC2B2B;
    font-weight: 600;
}

.ai-cv-form .content .step .form .form-group.closed {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-cv-form .content .step .form .form-group.closed input, .ai-cv-form .content .step .form .form-group.closed textarea {
    display: none;
}

.ai-cv-form .content .step .form .form-group .add-job-description {
    display: none;
}

.ai-cv-form .content .step .form .form-group.closed .add-job-description {
    display: inline-block;
}

.ai-cv-form .add-job-description {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 0;
    font-weight: 500;
}

.ai-cv-form .add-job-description img {
    vertical-align: middle;
}

@media screen and (max-width: 950px) {
    .ai-cv-form .navbar .stepper .stepper-step p {
        display: none;
    }

    .ai-cv-form .content .step .template-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 700px) {
    .ai-cv-form .content {
        padding: 30px 0;
    }

    .ai-cv-form .content .step {
        padding-bottom: 120px;
    }

    .ai-cv-form .content .step .hero h2 {
        font-size: 19px;
    }

    .ai-cv-form .content .step .hero p {
        font-size: 12px;
    }

    .ai-cv-form .content .step .form .form-group {
        grid-column: span 2 / span 2;
    }

    .ai-cv-form .content .step .form form.form-info, .ai-cv-form .content .step .form fieldset, .ai-cv-form .content .step .form fieldset.opened .fieldset-inputs, .ai-cv-form .content .step .form form.form-job {
        display: flex;
        flex-direction: column;
    }

    .ai-cv-form .content .step .buttons {
        flex-direction: column-reverse;
        gap: 10px;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background-color: #FFFFFF;
        padding: 20px;
    }

    .ai-cv-form .content .step .buttons a {
        width: 100%;
    }

    .ai-cv-form .content .step .generation h2 {
        font-size: 22px;
    }
}

@media screen and (max-width: 550px) {
    .ai-cv-form .navbar .stepper {
        display: none;
    }

    .ai-cv-form .content .step .template-container {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .ai-cv-form .content .step .form .form-group.closed {
        flex-direction: column;
        align-items: flex-start;
    }
}
