/*section register page size */
.oms-register {
    padding: 24px 16px;
}

.oms-register-data__container{
    padding-top: 180px;
    padding-bottom: 2rem;
}
.oms-register-data__container,
.oms-register-tabs {
    max-width: var(--umbraco-container-max-width);
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 2rem;
}

/*section register schedule  */
.oms-register-data{
    display: grid;
    grid-template-columns: 45% 45%;
    grid-template-rows: 1fr;
    column-gap: 120px;
}

.oms-register-data__row{
    display: grid;
    grid-template-columns: 0.5fr 1fr; /* Defines two equal columns */
    gap: 10px; 
    padding: 4px 0 4px;
}

.oms-register-data__schedule-list li{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px 0 4px;
}

.oms-register-data__schedule-list {
    max-height: 160px; /* enough for ~3 items */
    overflow: hidden;
    transition: max-height 0.4s ease;
    padding-left: 0px;
    border: unset;
    
    li div:nth-last-child(2){
        align-items: center;
    }

    li div:last-child {
    justify-self: end;
    }

}

.oms-register-data__schedule-list.expanded {
  max-height: 1000px; /* will be overridden dynamically */
}

.oms-register-data__schedule-list li:nth-child(n+4) {
  display: none;
}

.oms-register-data__schedule-list.expanded li {
  display: grid;
}
/* Read more button */
.oms-register-data__schedule{
    .read-more-btn {
        cursor: pointer;
        margin-top: -.5rem;
        display: inline-block;
        color: var(--umbraco-body-secondery-color);
        user-select: none;
        border: unset;
        background-color: unset;
        float: right;
    }

}

@media screen and (max-width: 992px){
    .oms-register-data{
      grid-template-columns: repeat(1, 1fr);
    }
    .oms-register-data__container,
    .oms-register-tab{
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .oms-register-data__row{
            grid-template-columns: 1fr;
    }
    .oms-register-data__schedule-list li{
        grid-template-columns: repeat(3, fit-content(390px));
        gap: 15px;

        padding: 4px 0 4px;
    }

}

.oms-register-data__container{

    .oms-register-data__title {
        font-size: clamp(1.5rem, 1.8vw, 2rem) !important;
        font-weight: 700;
        color: var(--umbraco-body-primary-color);
        padding-bottom: 2rem
    }
}


/*section register  */
.oms-register-tabs__header {
    padding-bottom: 20px;
    .btn{
        margin-bottom: 20px;
        margin-right: 20px;
    }
}

.oms-register__title {
    margin: 0 0 12px 0;
    font-weight: 800;
}

.oms-register__loginHint {
    display: inline-block;
    margin: 0 0 14px 0;
    text-decoration: underline;
}

.oms-register__warning {
    background: #fff6e5;
    border: 1px solid #ffe0a8;
    border-radius: var(--umbraco-border-radius);
    padding: 12px 14px;
    margin-bottom: 18px;
}

.oms-register__form {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: var(--umbraco-border-radius);
    padding: 30px;
    box-shadow: var(--umbraco-card-box-shadow);
}

.oms-register__sectionTitle {
    margin: 18px 0 12px 0;
    font-weight: 800;
}

.oms-register__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 16px;
}

@media (max-width: 860px) {
    .oms-register__grid {
        grid-template-columns: 1fr;
    }
}

.oms-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.oms-field--full {
    grid-column: 1 / -1;
}

.oms-field__label {
    font-weight: 700;
}

.oms-field__req {
    margin-left: 2px;
    font-weight: 800;
}

.oms-field__input,
.oms-field__select,
.oms-field__textarea {
    height: 42px;
    border-radius: var(--umbraco-input-border-radius-xs);
    border: 1px solid #ddd;
    padding: 0 12px;
    background: #fff;
}

.oms-field__textarea {
    height: auto;
    padding: 10px 12px;
}

.oms-field__file {
    padding: 8px 0;
}

.oms-field__help {
    color: #666;
    font-size: 0.95rem;
    margin-top: 6px;
}

.oms-register__consents {
    margin-top: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.oms-check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

    .oms-check input {
        margin-top: 4px;
    }

.oms-register__submit {
    margin-top: 60px !important;
    width: 100%;
    height: 46px;
    border-radius: 999px;
    border: 0;
    background: var(--umbraco-body-secondery-color);
    color: #fff;
    font-weight: 800;
}

    .oms-register__submit::before {
        content: "";
        font-family: var(--umbraco-body-fontawsome-family), sans-serif;
        display: inline-block;
        margin-right: 10px;
        line-height: 100%;
        font-size: 90%;
        width: 13px;
        height: 50%;
        outline: 0 !important;
    }

.oms-validationSummary {
    margin: 0 0 14px 0;
    color: #b00020;
    font-weight: 700;
}

.oms-validation {
    color: #b00020;
    font-size: 0.95rem;
}

.oms-register__success {
    border: 1px solid #cfe9cf;
    background: #f1fbf1;
    border-radius: var(--umbraco-border-radius);
    padding: 12px 14px;
    margin: 0 0 14px 0;
    font-weight: 800;
}

.oms-register__waitListSubmit {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    width: 100%;
    text-align: center;
    display: block;
}

.oms-register__actions .oms-register__submit,
.oms-register__actions .oms-register__waitListSubmit {
    flex: 0 0 auto;
}

.oms-register__actions .oms-register__waitListSubmit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 55px;

    text-decoration: underline;
}


@media (max-width: 991px) {
    .oms-register__submit {
        width: 100% !important;
        left: unset;
    }

    .oms-validation {
        width: 100%;
    }

    .oms-field__input, .oms-field__select, .oms-field__textarea, .oms-register__consents {
        width: 100%;
    }

    .oms-field__label {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .oms-register__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .oms-register-tabs__header {
        text-align: center;
        .btn{
            width: 80%;
        }
    }

    .oms-register__actions .oms-register__submit,
    .oms-register__actions .oms-register__waitListSubmit {
        width: 100%;
        margin-left: 0;
    }
}
