:root {
    --series-padding: 48px;
    --series-gap: 10px;
    --button-radius: 8px;
}

.series__section {
    font-weight: 400;
    color: #606060;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.series__details-title {
    font-weight: 700;
    font-size: 30px;
    color: #383838;
}

.series__details-text {
    line-height: 24px;
    font-weight: 400;
    font-size: 14px;
}

.series__details > ul {
    display: flex;
    flex-direction: column;
    gap: var(--series-gap);
}

li {
    font-size: 16px;
    color: #606060;
    font-weight: 400;
    line-height: 20px;
}

.series__details-text li {
    font-size: 14px !important;
    list-style-position: inside;
}

.series__questionnaire {
    display: flex;
    gap: var(--series-gap);
}

.series__questionnaire-actions {
    display: flex;
    flex-direction: column;
    gap: var(--series-gap);
    justify-content: space-between;
    height: 100%;
}

.series__section {
    margin: 0 auto;
    max-width: var(--site-max-width);
    padding-right: 30px;
    padding-left: 30px;
    width: 100%;
}

.series__icon {
    cursor: pointer;
    color: #d40510;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" -25, "opsz" 20;
}

.series__button-outlined,
.series__button-download {
    white-space: nowrap;
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    font-size: 16px;
    border-radius: var(--button-radius);
    cursor: pointer;
}

.series__button-outlined {
    background-color: white;
    color: #d40510;
    border: 1px solid #d40510;
    font-weight: 500;
}

.series__button-download {
    background-color: #d40510;
    color: white;
    border: none;
    text-decoration: none;

    &:hover {
        color: #ffffff
    }
}

.series__button-download .series__icon {
    margin-right: 10px;
    font-size: 24px;
    font-weight: 500;
    color: white;
}

.series__card {
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    padding: var(--series-padding) var(--series-padding) 28px
        var(--series-padding);
    margin-top: 20px;
    margin-bottom: 20px;
}

.series__separator-vertical {
    border: none;
    border-left: 1px solid #d0d0d0;
    align-self: stretch;
    margin: 0 var(--series-padding) 0 var(--series-padding);
}

@media (max-width: 1279px) {
    .series__separator-vertical {
        display: none;
    }
}

.series__info {
    display: flex;
    flex-direction: column;
}

.series__questionnaire-list > ul {
    margin-left: 20px;
    display: flex;
    flex-direction: column;
    gap: var(--series-gap);
    list-style-type: decimal;
}

.series__questionnaire-list-title {
    margin-top: 0;
    font-weight: 700;
    font-size: 16px;
    color: #383838;
}

.series__details-wrap {
    display: flex;
    flex-direction: column;
}

.series__image-wrap {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    max-width: 300px;
    width: 100%;
}

.series__image-wrap img {
    width: 138px;
}

.series__details {
    margin-top: 1rem;
    margin-left: 20px;
}

@media (max-width: 767px) {
    .series__details-wrap {
        align-items: center;
        justify-content: center;
    }
}

@media (min-width: 768px) {
    .series__details-wrap {
        flex-direction: row;
    }

    .series__image-wrap {
        margin-right: 2rem;
        margin-bottom: 0;
    }

    .series__details {
        margin-top: 0;
    }
}

@media (min-width: 1280px) {
    .series__info {
        flex-direction: row;
    }

    .series__details-wrap {
        width: 66.666667%;
    }

    .series__separator-vertical {
        display: block;
    }
}

.series__questionnaire {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) and (max-width: 1279px) {
    .series__questionnaire {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
        height: 129px;
    }

    .series__questionnaire-list,
    .series__questionnaire-actions {
        width: calc(50% - var(--series-gap) / 2);
    }

    .series__button-outlined,
    .series__button-download {
        width: 100%;
    }
}

@media (min-width: 1280px) {
    .series__questionnaire {
        justify-content: space-between;
    }

    .series__separator-horizontal {
        display: none;
    }
}

.series__separator-horizontal {
    width: 100%;
    border: none;
    border-top: 1px solid #d0d0d0;
    margin: var(--series-padding) 0 var(--series-padding) 0;
}

.series__separator-horizontal-static {
    width: 100%;
    border: none;
    border-top: 1px solid #d0d0d0;
    margin: var(--series-padding) 0 var(--series-padding) 0;
}

.series__resources {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.series__resources-item {
    flex: 1 1 100%;
}

.series__resources-item > h3 {
    font-weight: 700;
    color: #383838;
}

.series__resources-item > ul {
    list-style-type: none;
    padding: 0;
    font-size: 16px;
    font-weight: 400;
    color: #606060;
}

.series__resources-item > ul > li > div {
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.series__resources-item > ul > li > div a {
    color: #d40510;
    font-size: 12px;
    font-weight: 400;
    text-decoration: none;
}

.series__resources-item > ul > li > div span {
    color: #979797;
    font-size: 12px;
    font-weight: 400;
}

.series__resources-item > ul li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 5px;
}

.series__resources-item > ul li::before {
    content: "download";
    font-family: "Material Symbols Outlined";
    font-size: 24px;
    color: #d40510;
    margin-right: 10px;
    flex-shrink: 0;
    cursor: pointer;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" -25, "opsz" 20;
}

.block-text {
    font-size: 16px;
    font-weight: 400;
    color: #606060;
}

@media (min-width: 768px) {
    .series__resources-item {
        flex: 1 1 calc(50% - 10px);
    }
}

@media (min-width: 1024px) {
    .series__resources-item {
        flex: 1 1 calc(33.333% - 13.333px);
    }
}

.series__videos {
    margin-top: 35px;
    margin-bottom: 48px;
}

.series__videos-title {
    font-size: 24px;
    line-height: 28px;
    font-weight: 700;
    color: #383838;
    margin-bottom: 24px;
}

.series__videos-items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--series-gap);
}

.series__videos-items > div {
    cursor: pointer;
}

.series__videos-items > div iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
}

.series__videos-items > div > p {
    margin-top: 1px;
    margin-bottom: 0;
    text-align: flex-start;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    color: #808080;
}

.series__image-xs {
    width: 100%;
    height: auto;
}

.series__bid-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.series__bid-popup-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.series__bid-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.series__bid-popup-title {
    margin: 0;
    font-size: 24px;
}

.series__bid-popup-close {
    font-size: 28px;
    cursor: pointer;
}

.series__bid-popup-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.series__form-row {
    display: flex;
    gap: 20px;
}

.series__form-group {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.series__half-width {
    width: calc(50% - 10px);
}

.series__form-group label {
    margin-bottom: 5px;
    line-height: 24px;
    font-weight: 400;
    font-size: 14px;
    color: #979797;
}

.series__form-group input,
.series__form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.series__form-group textarea {
    resize: vertical;
}

.series__file-upload-container {
    margin-top: 20px;
}

.series__checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
}

.series__checkbox input {
    margin: 0;
}

.series__form-submit {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    font-size: 16px;
    border-radius: var(--button-radius);
    cursor: pointer;
    background-color: #d40510;
    color: white;
    border: none;
    font-weight: 500;
}

.series__form-submit:hover {
    background-color: #b8040e;
}

.series__button-upload {
    width: 100%;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    font-size: 16px;
    border-radius: var(--button-radius);
    cursor: pointer;
    background-color: white;
    color: #d40510;
    border: 1px solid #d40510;
    font-weight: 500;
}

.series__button-upload .series__icon {
    margin-right: 10px;
    font-size: 24px;
    font-weight: 500;
    color: #d40510;
}

.series__bid-popup-form .series__checkbox {
    width: auto;
    margin-top: 10px;
    display: flex;
    align-items: center;
    color: #d40510;
}

.series__bid-popup-form .series__checkbox input {
    width: auto;
    accent-color: #d40510;
}

.series__bid-popup-form input:focus,
.series__bid-popup-form textarea:focus {
    border-color: #d40510;
    outline: none;
}

.series__bid-popup-form {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.series__bid-popup-form .series__form-group {
    flex: 1 1 100%;
}

@media (min-width: 768px) {
    .series__bid-popup-form .series__form-group.series__half-width {
        flex: 1 1 calc(50% - 10px);
    }
}

.series__file-upload-container {
    margin-bottom: 20px;
}

.series__file-upload-flex-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--series-gap);
}

.series__file-upload-flex-wrapper > div {
    width: 50%;
}

.series__file-limit {
    font-size: 14px;
    color: #606060;
    margin-top: 5px;
    margin-bottom: 0px;
}

.series__file-limit-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.series__file-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.series__remove-file {
    background: none;
    border: none;
    color: #d40510;
    cursor: pointer;
    margin-left: 10px;
}

#file-name,
#file-size {
    margin-right: 10px;
}

.policy-checkbox {
    display: flex;
    margin-right: 5px;
}

.policy-checkbox::after {
    content: "*";
    color: #d40510;
    margin-left: 3px;
    display: inline;
}

.series__form-group label::after {
    content: "";
    display: none;
}

.series__form-group.required label::after {
    content: "*";
    color: #d40510;
    margin-left: 2px;
    display: inline;
}

.series__policy-title {
    line-height: 0.1;
    font-weight: 400;
    font-size: 16px;
    color: #979797;
    white-space: normal;
    word-wrap: break-word;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
}

.series__policy-link {
    text-decoration: underline;
    cursor: pointer;
}

.series__policy-title-underlined {
    text-decoration: underline;
    cursor: pointer;
    white-space: normal;
    word-wrap: break-word;
    color: #979797;
}

.series__policy-title-underlined:hover {
    color: #b8040e;
    text-decoration: underline;
}

.series__checkbox-wrap {
    display: flex;
    align-items: center;
}

.policy-checkbox {
    display: flex;
    margin-right: 10px;
}

.policy-checkbox > input[type="checkbox"]:hover {
    box-shadow: 0 0 0 1px #d40510;
}

.policy-checkbox > input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d40510;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    background-color: white;
}

.policy-checkbox > input[type="checkbox"]:checked {
    background-color: #d40510;
}

.policy-checkbox > input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 4px;
    width: 5px;
    height: 11px;
    border: solid white;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}

.series__policy-text {
    flex: 1;
}

.series__policy-title {
    line-height: 2;
    font-weight: 400;
    font-size: 16px;
    color: #979797;
    display: inline;
}

.series__policy-title-underlined {
    text-decoration: underline;
    cursor: pointer;
    display: inline;
}

.series__policy-title-underlined:hover {
    color: #b8040e;
}

@media (max-width: 600px) {
    .series__file-upload-flex-wrapper {
        flex-direction: column;
    }

    .series__file-upload-flex-wrapper > div {
        width: 100%;
    }

    .series__image-wrap img {
        max-width: 297px;
        width: 100%;
    }
}

@media (max-width: 767px) {
    .series__form-row {
        flex-direction: column;
    }

    .series__half-width {
        width: 100%;
    }
}

.series-error {
    border: 1px solid rgba(212, 5, 16, 1) !important;
    animation: borderFadeIn 1s ease forwards, boxShadowPulse 1s ease forwards;
}

@keyframes boxShadowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 5, 16, 0.8);
    }
    50% {
        box-shadow: 0 0 0 2px rgba(212, 5, 16, 0.5);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 5, 16, 0);
    }
}

@keyframes borderFadeIn {
    0% {
        border-color: rgba(212, 5, 16, 0.8);
    }
    100% {
        border-color: rgba(212, 5, 16, 1);
    }
}

.series-valid {
    border: 1px solid #ccc;
}

@media (max-width: 767px) {
    .series__card {
        padding: 20px;
    }

    .series__details-title {
        font-size: 24px;
    }

    .series__questionnaire-list {
        margin-left: 20px;
        margin-bottom: 20px;
    }
}

@media (min-width: 768px) {
    .iti__country-list {
        max-width: 260px;
    }

    .iti__country-list > li {
        width: 100%;
    }
}

@media (min-width: 1279px) {
    .series__questionnaire {
        height: 274px;
        justify-content: space-between;
    }

    .series__questionnaire-actions {
        height: auto;
    }
}

.alertify-notifier {
    color: white;
}

.text-expand {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
    margin-top: 10px;
}

#show-less {
    display: none;
}

.series__button-show-more,
.series__button-show-less {
    width: auto;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border-radius: var(--button-radius);
    cursor: pointer;
    background-color: white;
    color: #d40510;
    border: none;
    font-weight: 500;
    align-self: flex-start;
}

.series__button-show-less {
    margin-top: 0px;
}

.series__button-show-more::after,
.series__button-show-less::after {
    content: "expand_more";
    font-family: "Material Symbols Outlined";
    margin-left: 10px;
    font-size: 24px;
    font-weight: 500;
    color: #d40510;
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" -25, "opsz" 20;
}

.series__button-show-less::after {
    content: "expand_less";
}

@media (max-width: 767px) {
    .series__button-show-more,
    .series__button-show-less {
        width: 100%;
        display: flex;
    }
}

.series__details-text > p {
    margin-bottom: 0px;
}

.expanded > p {
    margin-bottom: 20px !important;
}

.text-expand p:last-child {
    margin-bottom: 0px;
}
