/* ALGEMENE BOX-SIZING */

.oms-register-data__container,
.oms-register-data__container *,
.oms-register__form,
.oms-register__form * {
    box-sizing: border-box;
}


/* PAGINACONTAINERS */

.oms-register-data__container,
.oms-register__form {
    width: calc(100% - 64px);
    max-width: var(--umbraco-container-max-width, 1440px);
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 60px;
}

.oms-register-data__container {
    padding-top: 230px;
    padding-bottom: 2rem;
}


/* OPLEIDINGSGEGEVENS */

.oms-register-data {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    width: 100%;
}

.oms-register-data__title {
    margin: 0;
    padding-bottom: 2rem;
    color: var(--umbraco-body-primary-color);
    font-size: clamp(1.5rem, 1.8vw, 2rem) !important;
    font-weight: 700;
}

.oms-register-data__row {
    display: grid;
    grid-template-columns: minmax(140px, 0.5fr) minmax(0, 1fr);
    gap: 10px;
    padding: 4px 0;
}

.oms-register-data__row > * {
    min-width: 0;
}


/* PLANNINGSLIJST */

.oms-register-data__schedule-list {
    width: 100%;
    max-height: 160px;
    margin: 0;
    padding-left: 0;
    overflow: hidden;
    border: 0;
    list-style: none;
    transition: max-height 0.4s ease;
}

.oms-register-data__schedule-list li {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr)
        minmax(max-content, auto);
    gap: 15px;
    align-items: center;
    padding: 4px 0;
}

.oms-register-data__schedule-list li > * {
    min-width: 0;
}

.oms-register-data__schedule-list li div:last-child {
    justify-self: end;
}

.oms-register-data__schedule-list li:nth-child(n + 4) {
    display: none;
}

.oms-register-data__schedule-list.expanded {
    max-height: 1000px;
}

.oms-register-data__schedule-list.expanded li {
    display: grid;
}

.oms-register-data__schedule .read-more-btn {
    display: inline-block;
    float: right;
    margin-top: -0.5rem;
    padding: 0;
    border: 0;
    color: var(--umbraco-body-secondary-color);
    cursor: pointer;
    user-select: none;
}


/* FORMULIER */

.oms-register__form {
    display: block;
    padding: 30px;
    overflow: hidden;
    border: 1px solid #e5e5e5;
    border-radius: var(--umbraco-border-radius);
    background: #fff;
    box-shadow: var(--umbraco-card-box-shadow);
}

.oms-register__title {
    margin: 0 0 12px;
    font-weight: 800;
}

.oms-register__loginHint {
    display: inline-block;
    margin: 0 0 14px;
    text-decoration: underline;
}

.oms-register__warning {
    width: 100%;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #ffe0a8;
    border-radius: var(--umbraco-border-radius);
    background: #fff6e5;
}

.oms-register__sectionTitle {
    margin: 18px 0 12px;
    font-weight: 800;
}


/* FORMULIERGRID */

.oms-register__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
    width: 100%;
    min-width: 0;
}

.oms-field {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    gap: 6px;
}

.oms-field--full {
    grid-column: 1 / -1;
}

.oms-field__label {
    width: 100%;
    font-weight: 700;
}

.oms-field__req {
    margin-left: 2px;
    font-weight: 800;
}


/* INVOERVELDEN */

.oms-field__input,
.oms-field__select,
.oms-field__textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 1px solid #ddd;
    border-radius: var(--umbraco-input-border-radius-xs);
    background: #fff;
}

.oms-field__input,
.oms-field__select {
    height: 42px;
    padding: 0 12px;
}

.oms-field__textarea {
    min-height: 120px;
    height: auto;
    padding: 10px 12px;
    resize: vertical;
}

.oms-field__file {
    width: 100%;
    max-width: 100%;
    padding: 8px 0;
}

.oms-field__help {
    margin-top: 6px;
    color: #666;
    font-size: 0.95rem;
}


/* TOESTEMMINGEN */

.oms-register__consents {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: 18px;
    gap: 12px;
}

.oms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.oms-check input {
    margin-top: 4px;
}


/* ACTIES */

.oms-register__actions {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.oms-register__submit {
    width: auto;
    min-width: 220px;
    height: 46px;
    margin-top: 60px !important;
    padding: 0 20px;
    align-self: flex-start;

    border: 0;
    border-radius: 999px;
    background: var(--umbraco-body-secondary-color);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.oms-register__submit::before {
    display: inline-block;
    width: 13px;
    height: 50%;
    margin-right: 10px;
    font-family: var(--umbraco-body-fontawsome-family), sans-serif;
    font-size: 90%;
    line-height: 100%;
    content: "";
    outline: 0 !important;
}

.oms-register__waitListSubmit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 55px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: center;
    text-decoration: underline;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}


/* VALIDATIE */

.oms-validationSummary {
    width: 100%;
    margin: 0 0 14px;
    color: #b00020;
    font-weight: 700;
}

.oms-validation {
    width: 100%;
    color: #b00020;
    font-size: 0.95rem;
}

.oms-register__success {
    width: 100%;
    margin: 0 0 14px;
    padding: 12px 14px;
    border: 1px solid #cfe9cf;
    border-radius: var(--umbraco-border-radius);
    background: #f1fbf1;
    font-weight: 800;
}

/* Alleen op de registratiepagina */
body:has(.oms-register__form) #header,
body:has(.oms-register__form) #header .main-navbar {
    background-color: #757576 !important;
    background-image: none !important;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 992px) {
    .oms-register-data__container,
    .oms-register__form {
        width: calc(100% - 32px);
    }

    .oms-register-data {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .oms-register-data__row {
        grid-template-columns: minmax(140px, 0.5fr) minmax(0, 1fr);
    }

    .oms-register__grid {
        grid-template-columns: 1fr;
    }

    .oms-field--full {
        grid-column: auto;
    }
}


/* =========================================================
   MOBIEL
   ========================================================= */

@media screen and (max-width: 768px) {
    .oms-register-data__container,
    .oms-register__form {
        width: calc(100% - 24px);
    }

    .oms-register-data__container {
        padding-top: 120px;
    }

    .oms-register-data__row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .oms-register-data__schedule-list li {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 10px 0;
    }

    .oms-register-data__schedule-list li div:last-child {
        justify-self: start;
    }

    .oms-register__form {
        padding: 20px 16px;
        
    }

    .oms-register__submit {
        width: 100% !important;
    }
}


/* =========================================================
   KLEIN MOBIEL
   ========================================================= */

@media screen and (max-width: 480px) {
    .oms-register-data__container,
    .oms-register__form {
        width: calc(100% - 20px);
    }

    .oms-register__form {
        padding: 18px 12px;
    }

    .oms-register__submit {
        margin-top: 40px !important;
    }
}