/* Variables */
:root main {
    --cpx-conf-primary-color: var(--e-global-color-secondary);
    --cpx-conf-accent-color: var(--e-global-color-accent);
    --cpx-conf-background-color: #fff;
    --cpx-conf-text-color: var(--e-global-color-text);
    --cpx-conf-hover-bg: var(--e-global-color-200675d);
    --cpx-cards-width: 500px;
}

/* Wrapper */
.cursus-configurator {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    font-size: var(--e-global-typography-text-font-size);
    font-weight: var(--e-global-typography-text-font-weight);

    color: var(--cpx-conf-text-color);

    line-height: 1;
}

.cursus-configurator__text {
    font-size: var(--e-global-typography-text-font-size);
    line-height: var(--e-global-typography-text-line-height);
}

/* Step 1 */
.cursus-configurator__step-1 {
    font-size: 18px;
}

@media screen and (max-width: 768px) {
    .cursus-configurator__step-1 {
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        gap: 5px;
    }
}

/* Custom Select Wrapper */
.cursus-configurator__cursus-select {
    position: relative;
    display: inline-block;
    cursor: pointer;

    user-select: none;

    vertical-align: middle;
}

@media screen and (min-width: 768px) {
    .cursus-configurator__cursus-select {
        margin-left: 9px;
    }
}

/* Current Selection */
.cursus-configurator__cursus-select__current {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--cpx-conf-background-color);
    box-shadow: 0 0 15px 0 rgba(0,54,108,.13);
    padding: 3px 15px;
    border-radius: 14px;
    transition: background 0.3s;
    max-width: 240px;
    position: relative;
}

@media screen and (max-width: 768px) {
    .cursus-configurator__cursus-select__current {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

.cursus-configurator__cursus-select__current > span {
    margin-bottom: -1px;
}

.cursus-configurator__cursus-select__current img {
    width: 37px !important;
    height: 37px !important;
    object-fit: contain;
    object-position: center;
    border-radius: 0 !important;
}

.cursus-configurator__cursus-select__indicator {
    border-radius: 100%;
    height: 14px;
    width: 14px;
    background-color:var(--cpx-conf-primary-color);
    position: relative;
}

@media screen and (max-width: 768px) {
    .cursus-configurator__cursus-select__indicator {
        position: absolute;
        right: 15px;
    }
}

.cursus-configurator__cursus-select__indicator svg {
    height: 8px;
    width: 8px;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.cursus-configurator__cursus-select__current:hover {
    background: var(--cpx-conf-hover-bg);
}

/* Options Container */
.cursus-configurator__cursus-select__options {
    opacity: 0;
    pointer-events: none;

    position: absolute;
    top: 100%;
    left: 0;
    width: max-content;
    background: var(--cpx-conf-background-color);
    border: 1px solid var(--cpx-conf-border-color);
    border-radius: 14px;
    border-top-left-radius: 0;
    box-shadow: 0 7.5px 7.5px 0 rgba(0,54,108,.06);
    z-index: 100;
}

/* Individual Option */
.cursus-configurator__cursus-select__option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 3px 15px;
    cursor: pointer;
    transition: background 0.3s;
}

@media screen and (max-width: 768px) {
    .cursus-configurator__cursus-select__option {
        padding-top: 8px;
        padding-bottom: 8px;
    }
}

.cursus-configurator__cursus-select__option img {
    width: 37px !important;
    height: 37px !important;
    object-fit: contain;
    object-position: center;
    border-radius: 0 !important;

    opacity: 0;
    transform: translateX(-5px);
    transition: all .2s ease-in;
}

/* Stagger */
.cursus-configurator__cursus-select__option:nth-child(2) img {
    transition-delay: 0.05s;
}
.cursus-configurator__cursus-select__option:nth-child(3) img {
    transition-delay: 0.1s;
}
.cursus-configurator__cursus-select__option:nth-child(4) img {
    transition-delay: 0.15s;
}
.cursus-configurator__cursus-select__option:nth-child(5) img {
    transition-delay: 0.2s;
}
.cursus-configurator__cursus-select__option:nth-child(6) img {
    transition-delay: 0.25s;
}

.cursus-configurator__cursus-select__option:hover {
    background: var(--cpx-conf-background-color);
}

/* Active state */
.cursus-configurator__cursus-select.active .cursus-configurator__cursus-select__options {
    opacity: 1;
    pointer-events: auto;

    background-color: var(--cpx-conf-hover-bg);
    overflow: hidden;
}
.cursus-configurator__cursus-select.active .cursus-configurator__cursus-select__current {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.cursus-configurator__cursus-select.active.active--biggest-option .cursus-configurator__cursus-select__current {
    border-bottom-right-radius: 14px;
}
.cursus-configurator__cursus-select.active.active--biggest-option .cursus-configurator__cursus-select__options {
    border-top-right-radius: 0;
}

.cursus-configurator__cursus-select.active .cursus-configurator__cursus-select__option img {
    opacity: 1;
    transform: none;
}

.cursus-configurator__cursus-select.active .cursus-configurator__cursus-select__indicator {
    transform: rotate(180deg);
}

.fade-in {
    animation: fadeInScale 0.3s ease-in-out forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.cursus-configurator__step-2 {
    margin-top: 20px;
}

.cursus-configurator__options {
    margin-top: 1em;
}

.cursus-configurator__option-card {
    position: relative;
    border: 2px solid var(--e-global-color-200675d);
    background-color: #fff;
    padding: 25px;
    padding-left: 45px;
    margin-bottom: 25px;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px 0 rgba(0,54,108,.13);
    overflow: hidden;
    user-select: none;

    width: var(--cpx-cards-width);
    max-width: 100%;
    min-height: 110px;
}

@media screen and (max-width: 768px) {
    .cursus-configurator__option-card {
        padding-bottom: 45px;
    }
}

.cursus-configurator__option-card__inner {
    transform: translateX(-15px);
    transition: transform 0.3s ease;
}

.cursus-configurator__option-card:hover, .cursus-configurator__option-card:focus {
    border-color: var(--cpx-conf-primary-color);
}

.cursus-configurator__option-card.selected {
    border-color: var(--cpx-conf-accent-color);
}

.cursus-configurator__option-card.selected .cursus-configurator__option-card__inner {
    transform: translateX(0);
}

.cursus-configurator__option-card.selected .cursus-configurator__selected {
    opacity: 1;
}

.cursus-configurator__option-card.selected .cursus-configurator__duration {
    background-color: var(--cpx-conf-accent-color);
}

.cursus-configurator__selected {
    opacity: 0;
    pointer-events: none;

    position: absolute;
    background-color: var(--cpx-conf-accent-color);
    color: var(--cpx-conf-text-color);
    height: 100%;
    width: 22px;
    top: 0;
    left: 0;
    font-size: 14px;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

    transition: opacity .12s ease-in-out;
}

.cursus-configurator__selected span {
    display: block;
    transform: rotate(-90deg);
    margin-left: 3px;
}

.cursus-configurator__option-card h3 {
    margin: 0 0 10px;
}

.cursus-configurator__option-card ul {
    list-style: none;
    padding: 0;
}

.cursus-configurator__option-card li {
    display: flex;
    align-items: center;
    gap: 5px;
}

.cursus-configurator__title {
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-size: var(--e-global-typography-accent-font-size);
    font-weight: 700;
    margin-bottom: 1em;
}

.cursus-configurator__eigenschappen {
    font-family: var(--e-global-typography-5349075-font-family), Sans-serif;
    font-size: var(--e-global-typography-5349075-font-size);

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
}

.cursus-configurator__eigenschappen li {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 9px;
}

.cursus-configurator__eigenschappen li span {
    line-height: 1;
}

.cursus-configurator__eigenschappen li img {
    height: 1.2em;
    width: 1.2em;
    object-fit: contain;
    object-position: center;
}

.cursus-configurator__duration {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5px;

    font-family: var(--e-global-typography-5349075-font-family), Sans-serif;
    font-size: var(--e-global-typography-5349075-font-size);

    position: absolute;
    right: 0;
    bottom: 0;
    background-color: var(--e-global-color-200675d);

    padding: 11px 15px;
    padding-bottom: 7px;
    line-height: 1;
    border-top-left-radius: 14px;

    transition: background-color 0.3s ease-in-out;
}

.cursus-configurator__duration img {
    height: 1em;
    width: auto;
    object-fit: contain;
    margin-top: -3px;
}

.cursus-configurator button.cursus-configurator__cta {
    background-color: var(--e-global-color-accent);
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-size: var(--e-global-typography-accent-font-size);
    font-weight: var(--e-global-typography-accent-font-weight);
    color: var(--e-global-color-text);
    border-radius: 14px 14px 14px 14px;
    padding: 15px 28px 15px 28px;
    width: var(--cpx-cards-width);
    max-width: 100%;
    border: none;
}

/* Step 3 */
.cursus-configurator__step-3 {
    margin-top: 30px;
}

.cursus-configurator__date-options {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.cursus-configurator__date-btn {
    background-color: var(--cpx-conf-primary-color);
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s;
}

.cursus-configurator__date-btn.selected {
    background-color: var(--e-global-color-secondary) !important;
    color: #fff !important;
}

.cursus-configurator__date-btn:hover {
    background-color: var(--cpx-conf-accent-color);
}

.cursus-configurator__calendar {
    margin-top: 15px;
}

#cursus-configurator-datepicker {
    position: absolute;
    left: -9999px; /* Move it far off-screen */
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.cursus-configurator__calendar .flatpickr-calendar {
    border-radius: 14px;
    box-shadow: 1px 0 0 #F5F7F8,-1px 0 0 #F5F7F8,0 1px 0 #F5F7F8,0 -1px 0 #F5F7F8,0 3px 13px rgba(0,0,0,0.08);
}

.cursus-configurator__calendar .flatpickr-day.selected {
    background: var(--e-global-color-secondary) !important;
    border-color: var(--e-global-color-secondary) !important;
}

/* Step 4 */
.cursus-configurator__step-4 {
    margin-top: 30px;
}

.cursus-configurator__form {
    width: 100%;
    margin: 0 auto;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 0px;
}

.form-group input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.form-group--full {
    grid-column: span 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

.form-group--full label {
    font-weight: normal;
}

.form-group.form-group--noflex {
    display: block;
}

/* Responsive for Mobile */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .form-group--full {
        grid-column: span 1;
    }
}

.form-group label {
    font-size: 14px !important;
}

.form-group label a {
    font-size: inherit;
}

button[type="submit"].cursus-configurator__confirm-btn {
    margin-top: 15px;
    border: none !important;
    width: 100%;
    background-color: var(--e-global-color-accent);
}

/* Step 5 */
.cursus-configurator__step-5 {
    margin-top: 30px;
}

.cursus-configurator__step-5 .cursus-configurator__text {
    margin-bottom: 15px;
    display: block;
}

.codepay-payment-button {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
}

.codepay-payment-button .codepay-payment-button__price {
    font-size: 23px;
    font-weight: bold;
}

.codepay-payment-button__ideal-button a.codepay-payment-button__ideal-button__link {
    font-family: var(--e-global-typography-accent-font-family), Sans-serif;
    font-size: var(--e-global-typography-accent-font-size);
    font-weight: var(--e-global-typography-accent-font-weight);
    line-height: var(--e-global-typography-accent-line-height);
    border-radius: 23px;
    padding: 15px 28px 15px 28px;
    text-align: center;
    border: none !important;

    background-color: rgba(204,0,102);
    color: #fff !important;

    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;

    min-height: 70px;
}

.codepay-payment-button__ideal-button a.codepay-payment-button__ideal-button__link:hover, .codepay-payment-button__ideal-button a.codepay-payment-button__ideal-button__link:focus {
   background-color: rgba(233,34,134); 
   outline: none;
}

.codepay-payment-button__ideal-button a img {
    height: 40px;
    width: auto;
    border-radius: 0;
}

.codepay-payment-button__ideal-button a span {
    margin-bottom: -2px;
}

/* Disabled */
.cursus-configurator__step-1.disabled,
.cursus-configurator__step-2.disabled,
.cursus-configurator__step-3.disabled,
.cursus-configurator__step-4.disabled,
.cursus-configurator__step-5.disabled {
    pointer-events: none;
    user-select: none;
    opacity: .65;
}

.cursus-configurator__pricing-table td {
    background-color: #fff !important;
    padding: 7px 10px;
    padding-top: 10px;
    vertical-align: middle;
    border: 1px solid var(--e-global-color-056c33f);
}