:root {
    --oc_yellow: #f3c435;
    --oc_black: #222E39;
    --oc_text: #222E39;
    --oc_gray: rgba(34, 46, 57, 0.4);
    --oc_white: #fff;
    --oc_error: rgb(239, 64, 73);
}

/** OpenClass Form Container **/
.openclass-form-container {

}

.openclass-form-container > .openclass-form-wrapper {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
}

.openclass-form-container > .openclass-form-wrapper > .openclass-form-cols {
    width: 100%;
    overflow: hidden;
    gap: 24px;
}

.openclass-form-container > .openclass-form-wrapper > .openclass-form-cols h3 {
    margin: 0;
}

.openclass-form {
    width: 100%;
    overflow: hidden;
}

@media (min-width: 320px) and (max-width: 767px) {

    .openclass-form {
        display: flex!important;
        flex-direction: column;
    }

    .openclass-form > .steps {
        display: flex!important;
        justify-content: center;
        width: 100% !important;
        margin-bottom: 1rem;
    }

    .openclass-form > .steps > ul {
        display: flex;
        flex-direction: row!important;
        justify-content: center;
        gap: 16px;
        flex-grow: 1;
    }

    .openclass-form > .content {
        display: flex!important;
        flex-direction: column;
        width: 100% !important;
    }

}

/** Steps **/
.openclass-form > .steps {
    display: inline;
    float: left;
    width: 12%;
}

.openclass-form > .steps > ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.openclass-form > .steps > ul > li {
    list-style-type: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 16px;
    justify-content: center;
}

.openclass-form > .steps > ul > li > a:focus {
    outline: none;
}

.openclass-form > .steps > ul > li > a {

    border-radius: 100%;
    height: 2rem;
    width: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border: 1px solid var(--oc_gray);
    color: var(--oc_gray);
    text-decoration: none;
}

.openclass-form > .steps > ul > li.current > a {
    background-color: var(--oc_black);
    border: 1px solid var(--oc_black);
}

.openclass-form > .steps > ul > li.current > a > span {
    color: var(--oc_white);
    font-size: 0.9rem;
}

.openclass-form > .steps > ul > li.done > a {
    background-color: var(--oc_black);
    content: url("./done.svg");
}

.openclass-form > .steps > ul > li.done > a > span {
    content: "";
}

.openclass-form > .steps > ul > li.disable > a {
    background-color: var(--oc_black);
    border-radius: 100%;
    border: 1px solid var(--oc_black);
}

/** Content **/
.openclass-form > .content {
    display: inline;
    float: left;
    width: 88%;
    min-height: 100px;
}

.openclass-form > .content > tab {
    display: block;
    width: 100%;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--oc_gray);
    line-height: 1.5rem;
}

.openclass-form > .content > tab:not(.current) {
    margin-bottom: .8rem;
}

.openclass-form > .content > tab.current {
    color: var(--oc_black);
    margin-top: 0.8rem;
}

.openclass-form > .content > section p {
    margin: 0;
}

.openclass-form > .content > section.current {
    margin-bottom: 1rem;
}

.openclass-form > .content > section > .section {
    margin: 0.8rem 0;
}

.openclass-form > .content > section > .section-loading {
    display: flex;
    margin-top: 1rem;
    margin-bottom: 1rem ;

}

.openclass-form > .content > section > .section-loading {
    display: flex;
    margin-top: 1rem;
    margin-bottom: 1rem ;

}

.openclass-form > .content > section > .section-field-wrapper {
    display: flex;
    flex-direction: row;
    padding: 0.5rem 1rem 0.8rem 0px;
}

.openclass-form > .content > section > .section-field-wrapper > select {
    border: 1px solid var(--oc_black);
    padding: 1rem 10px;
    border-radius: 2rem;
    font-size: 1rem;
}

/**
* Radio Container
*/

.openclass-form > .content > section > .section-field-wrapper.sede > .radio-group {

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    width: 100%;

}

@media (min-width: 320px) and (max-width: 767px) {


    .openclass-form > .content > section > .section-field-wrapper.sede > .radio-group {

        display: flex;
        flex-direction: column;

    }

}

.openclass-form > .content > section > .section-field-wrapper > .radio-group > .radio-container {
    display: flex;
    padding: 0.5rem 1rem 0.8rem 0px;
    cursor: pointer;
    border: 2px solid var(--oc_black);
    margin-bottom: 1rem;
    padding: 1rem;
    transition: border-color 0.2s ease-in-out;
    z-index: 0;
}

.openclass-form > .content > section > .section-field-wrapper > .radio-group > .radio-container.checked,
.openclass-form > .content > section > .section-field-wrapper > .radio-group > .radio-container:hover {
    border: 2px solid var(--oc_yellow);
}

.openclass-form > .content > section > .section-field-wrapper > .radio-group > .radio-container > input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    /* For iOS < 15 to remove gradient background */
    background-color: transparent;
    /* Not removed via appearance */
    margin: 0;
    font: inherit;
    color: currentColor;
    min-width: 2rem;
    width: 2rem;
    height: 2rem;
    border: 2px solid var(--oc_black);
    border-radius: 50%;
    align-self: flex-end;
    z-index: -1;
}

.openclass-form > .content > section > .section-field-wrapper > .radio-group > .radio-container > input[type="radio"]:checked {
    background-color: var(--oc_yellow);
    border: 2px solid var(--oc_yellow);
}

.openclass-form > .content > section > .section-field-wrapper > .radio-group > .radio-container > input[type="radio"]::before {
    content: "";
    display: block;
    height: 100%;
    width: 100%;
    border-radius: 100%;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    transform: scale(1.5);
}

.openclass-form > .content > section > .section-field-wrapper > .radio-group > .radio-container > input[type="radio"]:checked::before {
    background-image: url(./done.svg);
}

.openclass-form > .content > section > .description-wrapper {
    border: 2px solid var(--oc_black);
    padding: 1rem;
    display: none;
}

.openclass-form > .content > section > .section-field-wrapper > .radio-group > .radio-container > .radio-description {
    z-index: 0;
    flex-grow: 1;
}

.openclass-form > .content > section > .section-field-wrapper > .radio-group > .radio-container > .radio-description > h4 {
    margin-top: 0px;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--oc_gray);
    font-weight: 700;
}

.openclass-form > .content > section > .section-field-wrapper > .radio-group > .radio-container > .radio-description > p {
    margin-bottom: 0.5rem;
}

/** termini e condizioni **/
.openclass-form > .content > section > .section-field-wrapper.termini-condizioni {
    border: 2px solid var(--oc_black);
    background-color: var(--oc_white);
    padding: 1rem;
    flex-direction: column;
    height: 550px;
    overflow-y: scroll;
}

/** termini e condizioni **/
.openclass-form > .content > section > .section-field-wrapper.termini-condizioni > .terms-container:nth-child(n+2) {
    margin-top: 1rem;
}

/** calendario **/
/** termini e condizioni **/
.openclass-form > .content > section > .section-field-wrapper.calendario-iframe {
    border: 2px solid var(--oc_black);
    padding: 1rem;
}

.openclass-form .current-info {
    display: none;
}

/** Actions **/

.openclass-form .actions {

}

/** media query for mobile **/
@media (min-width: 320px) and (max-width: 767px) {

    .openclass-form .actions {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        right: 0;
        z-index: 99;
        background-color: var(--oc_white);
    }

    .openclass-form .actions > ul {
        display: flex;
        flex-direction: row;
        justify-content: center!important;
        padding: 0.8rem !important;
        margin-block: 0px !important;
        padding-inline: 0px !important;
    }

    .openclass-form .actions > ul > li {
        width: 80%;
        display: block;
    }

    .openclass-form .actions > ul > li > a {
        display: block;
        width: auto!important;
        text-align: center;
    }

}

    .openclass-form .actions > ul {
        display: flex;
        justify-content: flex-end;
        list-style: none;
        padding-top: 30px;
    }

    .openclass-form .actions > ul > li {
    }

    .openclass-form .actions > ul > li.disabled {
        pointer-events: none;
        display: none;
    }


    .openclass-form .actions > ul > li > a {
        background-color: var(--oc_yellow);
        padding: 10px 20px;
        color: var(--oc_black);
        text-decoration: none;
    }

    /** Hide previous button **/
    .openclass-form .actions > ul > li:nth-child(1) {
        /*display: none;*/
    }

    .openclass-form .actions > ul > li > a[href="#next"] {
        width: 100%;
    }

    /** first child **/
.openclass-form .actions > ul > li:nth-child(1) > a {
    background-color: var(--oc_white);
    padding: 10px 20px;
    text-decoration: none;
}


.openclass-form-container section .error {
    border: 2px solid var(--oc_error);
    color: var(--oc_error);
    padding: 1rem;
}


/**
Loading spinner
 */
@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

.spinner::before {
    content: '';
    box-sizing: border-box;
    display: block;
    width: 20px;
    height: 20px;
    margin-right: 8px;
    border-radius: 50%;
    border: 2px solid #ccc;
    border-top-color: #000;
    animation: spinner .6s linear infinite;
}
