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

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

%grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: v-space(2);
}

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

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

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

    &__course-id-input,
    &__student-num-input {
        input {
            letter-spacing: 0.135rem !important;
            font-variant-ligatures: none !important;
            font-family: $numeric-font-family !important;
            text-align: center !important;
            color: $grey-40;
        }
    }
    &__student-num-input {
        input {
            padding-left: v-space(4) !important;
        }
        &::after {
            content: '#';
            position: absolute;
            left: v-space(2);
            top: 1.2rem;
            font-size: v-space(2);
            color: $grey-80;
        }
    }
    &__course-id-input {
        input {
            &::placeholder {
                position: relative;
                bottom: -0.8rem;
            }
        }
    }

    &__approach,
    &__section {
        @extend %section;
    }

    &__section {
        @extend %grid;
        margin: v-space(4) 0;
    }

    &__label {
        @extend %label;
        height: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        span {
            display: inline-block;
            padding-right: v-space(2); // Aligning with SelectInput down icon
        }
    }

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

    &__icon {
        height: auto;
        margin-left: v-space(1);
        width: v-space(2);
        vertical-align: -0.4rem;
        color: $grey-70;
    }

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

    &__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;
    }
}
