.student-profile {
    max-width: 44rem;
    padding: clamp(1.1rem, 3.5vw, 2rem);
    border: 1px solid #d9e4d9;
    border-radius: 1rem;
    background: #f7fbf6;
}

.student-profile > p:first-child {
    margin-block-start: 0;
}

.student-profile-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.student-profile-fields label {
    display: grid;
    align-content: start;
    gap: .35rem;
    font-weight: 700;
}

.student-profile-fields .student-profile-goal {
    grid-column: 1 / -1;
}

.student-profile-goal span,
.student-profile .student-profile-privacy {
    font-size: .9rem;
    font-weight: 400;
    color: #485e50;
}

.student-profile-fields input,
.student-profile-fields select {
    min-width: 0;
    min-height: 2.85rem;
    box-sizing: border-box;
    padding: .55rem .65rem;
    font: inherit;
    font-weight: 500;
    border: 1px solid #849e89;
    border-radius: .55rem;
    color: inherit;
    background: #fff;
}

.student-profile-consent {
    display: flex;
    align-items: flex-start;
    gap: .7rem;
    margin-top: 1.25rem;
}

.student-profile-consent input {
    flex: 0 0 1.15rem;
    width: 1.15rem;
    height: 1.15rem;
    margin: .15em 0 0;
    accent-color: #244e37;
}

.student-profile :focus-visible {
    outline: 2px solid #245b40;
    outline-offset: 2px;
}

.student-profile .student-profile-success,
.student-profile .student-profile-error {
    padding: .8rem 1rem;
    margin-block: 0 1rem;
    border-inline-start: .25rem solid;
    border-radius: .3rem;
}

.student-profile .student-profile-success {
    margin: 0;
    color: #17472d;
    background: #e8f5e8;
}

.student-profile .student-profile-error {
    color: #782719;
    background: #fff0eb;
}

.student-profile-error ul {
    margin-block: .35rem 0;
}

@media (max-width: 32rem) {
    .student-profile-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}
