.formGroup {
    display: grid;
    grid-template-columns: 1fr;
    // gap: 1rem;
    max-width: 302px;
    margin-inline: auto;
}

.formRow {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;

    label {
        display: block;
        margin-bottom: 5px;
        font-weight: 400;
        text-align: left;

        padding-left: 7px;
        font-size: 16px;
        max-width: 302px;
    }
}

.input {
    background-color: #F0F5FF;
    border: 0.5px solid #CDCDCD;
    border-radius: 11px;
    overflow: hidden;
    transition: border-color 0.2s;
    padding: 16px;
    height: 52px;
    width: 100%;
    max-width: 302px;

    &:focus-within {
        border-color: #3b82f6;
    }

    &.invalid {
        border-color: #dc3545;
    }
}

.fieldContainer {
    background-color: #F0F5FF;
    border: 0.5px solid #CDCDCD;
    border-radius: 11px;
    overflow: hidden;
    transition: border-color 0.2s;
    padding: 2px;
    height: 52px;
    width: 100%;

    &:focus-within {
        border-color: #3b82f6;
    }

    &.invalid {
        border-color: #dc3545;
    }
}

.errorMessage {
    color: #dc3545;
    font-size: 12px;
    margin-top: 4px;
}

@media (max-width: 280px) {
    .formGroup {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .formRow {
        &:nth-child(2) {
            margin-left: 0 !important;
        }
    }
}