@import '~@equitysim/react-uikit/dist/styles/styleguide';

%section {
    padding-left: v-space(7);
    padding-right: v-space(7);
}

%grid {
    display: grid;
    grid-template-columns: ($h-gap-size + $h-block-size * 2) 1fr;
    grid-gap: v-space(2);
}

.c-class-creation {
    &__name {
        @extend %section;
        padding-top: v-space(3);
        padding-bottom: v-space(3);
        background-color: $grey-30;

        label {
            size: 1.2rem;
            line-height: v-space(2);
            color: $grey-92;
        }
    }

    &__name-input {
        input {
            font-size: 2.4rem;
            padding: 0;
            font-weight: $font-weight-bold;
        }
    }

    &__course-code {
        @extend %section;
        @extend %grid;
    }

    &__course-code {
        margin: v-space(4) 0;
    }

    &__course-code-label {
        @extend %label;
        height: 100%;

        display: flex;
        align-items: center;

        span {
            display: inline-block;
            padding-right: v-space(2); // Aligning with SelectInput down icon
        }
    }

    &__class-duration {
        @extend %section;

        &-input {
            @extend %input;
            @extend %input--small;
            @extend %input__border;
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-gap: v-space(2);
            padding: 0 1.2rem; // To match input-text size small (not inlcuded in _forms.scss styleguid
        }
    }

    &__hr {
        @extend %horizontal-line;
        margin: 0;
        margin-bottom: 0.1rem; // Compensate for 0.1rem border
        width: 100%;
    }

    &__message {
        @extend %section;
    }

    &__label {
        @extend %label;
        display: block;
        margin-top: v-space(3);
        margin-bottom: v-space(1);
    }

    &__description {
        @extend %section;
        margin-top: v-space(0.5); // Compensating relative position
        label {
            @extend %label;
            display: block;
            margin-bottom: v-space(1);
            position: relative;
            top: v-space(3);
        }

        textarea {
            min-height: v-space(14);
        }
    }

    &__button {
        margin-top: v-space(6);
        height: v-space(8);
        box-shadow: none;
        border-radius: 0 !important;
        font-size: 1.4rem !important;
    }
}
